<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TIP SYSTEM "http://www.tcl.tk/cgi-bin/tct/tip/tipxml.dtd">
<!-- Converted at Fri May 24 21:34:07 GMT 2013 -->
<!-- TIP AutoGenerator - written by Donal K. Fellows -->

<TIP number='205'>
<header><title>Use pkgconfig Database to Register Xft Support</title><author address="mailto:jenglish@users.sourceforge.net">Joe English</author><status type='project' state='final' tclversion="8.5" vote='after'>$Revision: 1.5 $</status><history></history><created day='23' month='jun' year='2004' /></header>
<abstract>This TIP proposes to use Tcl&apos;s package configuration database (see <tipref type="text" tip="59"/>) to register whether Tk was compiled with support for Xft.</abstract>
<body><section title="Rationale">
<para>As of version 8.5, Tk has optional support for Xft (the modern replacement for server-side fonts in X11). However, at present application code has no way to determine whether or not Xft support was enabled when Tk was built. The package configuration database facility introduced in <tipref type="text" tip="59"/> seems like an ideal place to record this information.</para>
</section>
<section title="Proposal">
<para>If Tk was configured with <emph style="italic">--enable-xft</emph>, the command</para>
<verbatim><vline encoding='base64'>IHRrOjpwa2djb25maWcgZ2V0IGZvbnRzeXN0ZW0=</vline></verbatim>
<para>shall return the value <emph style="bold">xft</emph>.</para>
</section>
<section title="Notes">
<para>The change as currently proposed is the minimum necessary to satisfy the requirement listed in the Rationale. In particular: nothing else in Tk currently calls <emph style="italic">Tcl_RegisterConfig()</emph>, so if Xft support is not enabled the <emph style="bold">tk::pkgconfig</emph> command will remain undefined.</para>
<para>This TIP (or something like it) is a prerequisite for a script-level implementation of <tipref type="text" tip="145"/>, which will need to distinguish whether or not Xft is in use.</para>
</section>
<section title="Implementation">
<para>See Tk Patch #976520[<url ref="http://sourceforge.net/support/tracker.php?aid=976520"/>]</para>
</section>
<section title="Copyright">
<para>This document has been placed in the public domain.</para>
</section>
</body></TIP>
