Gtk1.2, font names and Win32



Hi:

I've written a Gtk+ program which works really nicely on Linux. When
I port it to Win32, however, all the fonts are wrong.

In Linux I'm using these two fonts:

"-*-helvetica-medium-r-normal-*-140-*"
"-*-helvetica-medium-r-normal-*-100-*"

These fonts don't exist on Windows, but I can write strings such as
"helvetica", "helvetica 14", "tahoma", etc. These work, but the fonts
produced are all the same size, and so not much use.

So my question is how are fonts named on Windows?

I also tried:

"-*-tahoma-medium-r-normal-*-140-*"

but there are no other sized "tahoma" fonts I can find for the small
font (is there a way to list all fonts on Windows, as in 'xlsfonts'?)

I'm drawing strings into a drawing_area.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
 All new technology is irrelevant until it is taken up by the public.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]