Hello, everybody. I have question on using 'XLoadFont ()' funtion.

Consider the following XLFD, "-*-*-*-*-*-*-*-*-*-*-*-*-iso8859-1", is it a valid XLFD.

By the way, I can query a list of font name with this;
font_list = XListFonts (display, "-*-*-*-*-*-*-*-*-*-*-*-*-iso8859-1", 30, &num_retd);

So far, it is far, and a list of matching font name is reterned. But, when i do 
this....

font = XLoadFont (display, "-*-*-*-*-*-*-*-*-*-*-*-*-iso8859-1");

A BadError is appeared. (Named color or font does not exist).

Why?? Also the return value, i.e. font, is not NULL, even though the BadError is 
really occur.

I have write a piece of code, so that I can easier to learn about these function.
And the result is, most probably, XListFonts will return me a list, as long as the 
parameter is in XLFD. While, XLoadFont are not.

Another question, if I specified a XLFD with wildcard to Load a Font, and how can I 
know the exact fontname I have opened??

Zenith (zl)
_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts

Reply via email to