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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to