[teklib-general] teklib: test directfb font handling

Franciska Schulze fschulze at neoscientists.org
Thu May 15 21:52:54 CEST 2008


details:   http://hg.teklib.org/teklib/rev/7428f9b8f026
changeset: 187:7428f9b8f026
user:      Franciska Schulze <fschulze at neoscientists.org>
date:      Thu May 15 14:58:50 2008 +0000
description:
test directfb font handling

diffs (34 lines):

diff -r 2b246e5f6959 -r 7428f9b8f026 src/visual/tests/fonts.c
--- a/src/visual/tests/fonts.c	Thu May 15 14:53:14 2008 +0000
+++ b/src/visual/tests/fonts.c	Thu May 15 14:58:50 2008 +0000
@@ -50,7 +50,7 @@ void fonttest(TAPTR v, TVPEN *pentab)
 #if 1
 		/* query fonts */
 		ftags[0].tti_Tag = TVisual_FontName;
-		ftags[0].tti_Value = (TTAG) "utopia,arial";
+		ftags[0].tti_Value = (TTAG) "times";
 		ftags[1].tti_Tag = TVisual_FontPxSize;
 		ftags[1].tti_Value = (TTAG) 48;
 
@@ -118,6 +118,7 @@ void fonttest(TAPTR v, TVPEN *pentab)
 		init_done = TTRUE;
 	}
 
+#if 1
 	{
 		TTAGITEM stags[2];
 		TVPEN penarray[6];
@@ -157,9 +158,10 @@ void fonttest(TAPTR v, TVPEN *pentab)
 		TVisualDrawStrip(v, a1, 3, stags);
 		TVisualDrawStrip(v, a2, 4, stags);
 
-		TVisualDrawFan(v, fan, 6, stags);
-		TVisualDrawFArc(v, 100, 200, 120, 100, 90, -360, pentab[3]);
-	}
+		//TVisualDrawFan(v, fan, 6, stags);
+		//TVisualDrawFArc(v, 100, 200, 120, 100, 90, -360, pentab[3]);
+	}
+#endif
 
 	TVisualText(v, 10, 10+fh, buf, TStrLen(buf), pentab[0], TVPEN_UNDEFINED);
 }


More information about the teklib-general mailing list