Home > Archive > PerlTk > April 2004 > version Tk and XFT
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
version Tk and XFT
|
|
| Ondrej Koala Vacha 2004-04-05, 6:34 am |
|
Hi,
Is there some way to detect:
- version Tk, such Tk804.026
- compile time option XFT=1
?
regards
--
Ondrej Koala Vacha
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
| |
| Nick Ing-Simmons 2004-04-05, 1:36 pm |
| Ondrej Koala Vacha <koala@vju.cz> 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.
What are you trying to achieve?
>
>?
>
>regards
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
| |
| Petr Pajas 2004-04-05, 3:46 pm |
| --=-=-=
Content-Transfer-Encoding: quoted-printable
Nick Ing-Simmons <nick@ing-simmons.net> writes:
> Ondrej Koala Vacha <koala@vju.cz> writes:
>
> $Tk::VERSION
>
>
> 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 =3D~ /-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?
=2D- Petr
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQBAcX9UQfxdLDi03+IRAppZAKCVzWTNJlzw
2fPXNKhL2j/1rmIs2wCggmQC
+Nv74W+XWf6bq6seM+SIQKA=
=uLB9
-----END PGP SIGNATURE-----
--=-=-=--
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
| |
| Ondrej Koala Vacha 2004-04-10, 6:31 am |
| On Mon, 5 Apr 2004, Nick Ing-Simmons wrote:
> 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.
> What are you trying to achieve?
>
If XFT=1 is set then true type fonts (in fontconfig notation) is better
choice instead selection of bitmap fonts:
....
-font => $XFT ? 'B&H LucidaTypewriter:style=Regular:pixelsize
=12'
: "-b&h-lucidatypewriter-medium-r-normal-sans-24-*-*-*-*-*-*-2"
....
--
Ondrej Koala Vacha
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
|
|
|
|
|