From 16d9ed721161338f0f701d044fbdb0efcc600f56 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 21 Dec 2014 08:32:09 -0800 Subject: [PATCH] return truetype test code to old path --- tests/test_truetype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_truetype.c b/tests/test_truetype.c index c151533..1ace8b2 100644 --- a/tests/test_truetype.c +++ b/tests/test_truetype.c @@ -35,6 +35,7 @@ int main(int argc, char **argv) // @TODO: why is minglui.ttc failing? fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/mingliu.ttc", "rb")); +#if 0 stbtt_BakeFontBitmap(ttf_buffer,stbtt_GetFontOffsetForIndex(ttf_buffer,0), 40.0, temp_bitmap[0],BITMAP_W,BITMAP_H, 32,96, cdata); // no guarantee this fits! stbi_write_png("fonttest1.png", BITMAP_W, BITMAP_H, 1, temp_bitmap, 0); @@ -67,6 +68,7 @@ int main(int argc, char **argv) stbi_write_png("fonttest3.png", BITMAP_W, BITMAP_H, 1, temp_bitmap, 0); } return 0; +#endif stbtt_InitFont(&font, ttf_buffer, stbtt_GetFontOffsetForIndex(ttf_buffer,0)); bitmap = stbtt_GetCodepointBitmap(&font, 0,stbtt_ScaleForPixelHeight(&font, (float)s), c, &w, &h, 0,0);