summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjenglish <jenglish@noemail.net>2004-10-08 16:16:53 (GMT)
committerjenglish <jenglish@noemail.net>2004-10-08 16:16:53 (GMT)
commit87c018fba5244d215d44b9110dd00a4687ee3d5f (patch)
tree07cc905c01e42f42a28586423d93321b51e026a9 /unix
parent89f5e80471927fbc8cb0ab72740c937b0f8da714 (diff)
downloadtk-87c018fba5244d215d44b9110dd00a4687ee3d5f.zip
tk-87c018fba5244d215d44b9110dd00a4687ee3d5f.tar.gz
tk-87c018fba5244d215d44b9110dd00a4687ee3d5f.tar.bz2
TIP #205 "Use pkgconfig Database to Register Xft Support".
(xref: patch #971980) FossilOrigin-Name: 12ea6256b6431711c6c03c7c3afb71015eaae807
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixRFont.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index cf45c7c..fdf9ebd 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixRFont.c,v 1.6 2003/11/17 23:48:47 dkf Exp $
+ * RCS: @(#) $Id: tkUnixRFont.c,v 1.7 2004/10/08 16:16:54 jenglish Exp $
*/
#include "tkUnixInt.h"
@@ -37,10 +37,27 @@ typedef struct _UnixFtFont {
XftColor color;
} UnixFtFont;
+
+/*
+ * Package initialization:
+ * Nothing to do here except register the fact that we're using Xft
+ * in the TIP 59 configuration database.
+ */
+
+#ifndef TCL_CFGVAL_ENCODING
+#define TCL_CFGVAL_ENCODING "ascii"
+#endif
+
+static Tcl_Config cfg[] = {
+ { "fontsystem", "xft" },
+ { 0,0 }
+};
+
void
TkpFontPkgInit(mainPtr)
TkMainInfo *mainPtr; /* The application being created. */
{
+ Tcl_RegisterConfig(mainPtr->interp, "tk", cfg, TCL_CFGVAL_ENCODING);
}
static XftFont *