Re: [UFO-devel] Can't set a font
Status: Beta
Brought to you by:
schmidtjf
From: Johannes S. <sch...@us...> - 2005-07-09 10:24:07
|
On Friday 08 July 2005 19:39, Mark Robson wrote: > I've got a CVS snapshot, ufo-20050621.tar.gz > > This seems to work a lot better, at least I can set the font without > it crashing. However, no font settings I make seem to make any > difference. Well, there aren't many fonts you can actually select. There is only the builtin font renderer which has: sans-serif font with point size 10,12 serif font with point size 10 mono spaced font with point size 8 and three textured fonts. Furthermore, in older releases there was an X11/GLX font renderer which can use all fonts visible to your X server. If you are interested, I can fix it for current releases. > Could you suggest a method to determine what fonts are available. UToolkit->listFonts() should work ... ATM, I am making some internal changes to font handling so it might be broken ... > Also, I tried to use texture fonts setting UFO_FONT and UFO_FONT_DIR, > but the appearance is very poor (labels don't work at all, and buttons > appear with the text displaced and off-centre). Is this a known bug? Hmm, I thought that I have already fixed this ... Possible values for UFO_FONT are: builtin_font gl_texture_font texture_font > Is there any reasonable way which I can set a custom font without > writing my own font renderer? > > You have provided three font files, Arial_10.tga etc. Have you got the > source code of the program which created these? Did it use Freetype or > something to convert Truetype fonts? If so, can I have it so that I > can use custom fonts in my app? The texture fonts are created via UFO, SDL_ttf and truetype fonts. The builtin fonts are created using plain X11. I can give you source code and binaries. Please be patient for one or two weeks as I have to pass some important exams next week. Regards, Johannes |