[teklib-general] changeset in /hg/teklib/current: test basic xft support
Franciska Schulze
fschulze at neoscientists.org
Mon Nov 26 16:23:23 CET 2007
changeset 8e4ef9341550 in /hg/teklib/current
details: http://teklib.org:8001/hg/teklib/current?cmd=changeset;node=8e4ef9341550
description:
test basic xft support
diffs (35 lines):
diff -r 9544c679baad -r 8e4ef9341550 src/visual/tests/fonts.c
--- a/src/visual/tests/fonts.c Mon Sep 17 18:49:57 2007 +0200
+++ b/src/visual/tests/fonts.c Mon Sep 17 18:50:26 2007 +0200
@@ -47,6 +47,7 @@ TVOID fonttest(TAPTR v, TVPEN *pentab)
ftags[1].tti_Tag = TTAG_DONE;
dfont = TVisualOpenFont(v, ftags);
+#if 0
/* query fonts */
ftags[0].tti_Tag = TVisual_FontName;
ftags[0].tti_Value = (TTAG) "helvetica,utopia,fixed";
@@ -79,12 +80,12 @@ TVOID fonttest(TAPTR v, TVPEN *pentab)
/* destroy font handle */
TDestroy(fq);
}
-#if 0
+#else
/* open custom font */
ftags[0].tti_Tag = TVisual_FontName;
- ftags[0].tti_Value = (TTAG) "helvetica";
+ ftags[0].tti_Value = (TTAG) "utopia";
ftags[1].tti_Tag = TVisual_FontPxSize;
- ftags[1].tti_Value = (TTAG) 20;
+ ftags[1].tti_Value = (TTAG) 32;
ftags[2].tti_Tag = TVisual_FontItalic;
ftags[2].tti_Value = (TTAG) TFALSE;
ftags[3].tti_Tag = TVisual_FontBold;
@@ -92,6 +93,7 @@ TVOID fonttest(TAPTR v, TVPEN *pentab)
ftags[4].tti_Tag = TTAG_DONE;
cfont = TVisualOpenFont(v, ftags);
#endif
+
if (dfont && cfont)
{
TUINT ul = 0;
More information about the teklib-general
mailing list