Nick Ing-Simmons <nick@xxxxxxxxxxxxxxx> writes:
> Ondrej Koala Vacha <koala@xxxxxx> writes:
>>Hi,
>>
>>Is there some way to detect:
>>
>>- version Tk, such Tk804.026
>
> $Tk::VERSION
>
>>
>>- compile time option XFT=1
>
> This isn't so easy.
>
> The C code can see this:
>
> ./pTk/tkConfig.h:13: #define USE_XFT_FONTS 1
>
> There isn't a perl API to that yet. You are not supposed to need to know.
Well it's not that pessimistic. You could find out with this:
use Tk::Config;
if ($Tk::Config::xlib =~ /-lXft/) {
# we have XFT
} else {
# we don't
}
> What are you trying to achieve?
Just guessing: maybe you would use different font settings without XFT
for better display?
-- Petr
pgpNfqj53OLWd.pgp
Description: PGP signature
|