XftFontOpen fails to open a specified file
Bastien Nocera <[email protected]>
| Newsgroups | gmane.comp.xfree86.render |
|---|---|
| Message-ID | <1019440066.7094.259.camel@dozo> |
Hi, I'm trying to port my lame utility "fontcarton" (a font viewer for TTF and Type1 fonts for gnome 1.4) to Gnome2. And I was told that Xft could open an arbitrary file as a font pattern. However, the following snippets fail to work: xftfont = XftFontOpen(display, screen_num, XFT_FILE, XftTypeString, "/usr/X11R6/lib/X11/fonts/TrueType/Comic_Sans_MS.ttf", XFT_INDEX, XftTypeInteger, 0, 0); ^ That gives me the default Xft font that I get when it can't find any matching (is there a way to change it btw...) xftfont = XftFontOpen(display, screen_num, XFT_FILE, XftTypeString, "/usr/X11R6/lib/X11/fonts/TrueType/Comic_Sans_MS.ttf", XFT_INDEX, XftTypeInteger, 0, XFT_PIXEL_SIZE, XftTypeDouble, 30, 0); ^ that gives me a NULL xftfont. I'm using the patched HelloX from eax.com/render as the test case. Owen Taylor tells me it used to work, but doesn't work anymore for him either. Both of us are using X 4.2. vendor release number: 40200000 Any ideas ? Cheers PS: Please do CC: me, as I'm not subscribed to this list -- /Bastien Nocera http://hadess.net
signature.asc
(application/pgp-signature, 232 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8w2vBJ4ZuIYMGqDYRAnufAJ9PDIX837aYjbDIMnNgkRA77czr9QCbB14D Tix2rIfeGD4Ch0xwqWAfYTM= =KO0e -----END PGP SIGNATURE-----