![]() |
|
#1
|
|||
|
|||
Load and display .ttf fontsHello,
I'm working on an embedded project, that brings FLTK+nxlib+nano-X graphics on ARM processor board. Recently we decided to use .ttf fonts on our device. I have built freetype2 library, linked it with nano-X and ensured that it works with nano-x. However, FLTK doesnt load .ttf fonts. In FLTK, AFAIK, all fonts are loaded during a call to Fl::set_fonts, and then you just get the index of the needed font by comparing its name with names stored in FLTK (Fl::get_font_name). However, in its X-window code, FLTK loads only fonts that are listed in fonts.dir files that are stored in fonts directory, specified by nxlib. TTf fonts AFAIK, don't need fonts.dir files to be built for them, so FLTK doesn't load them. The question is: how do I load a .ttf font? Maybe I'm doing something wrong? |
|
#2
|
|||
|
|||
Re: Load and display .ttf fontsOn "big" systems, you can use --enable-xft at configuration time which uses Xft instead of X11 to load fonts. Xft should load both tt and pixmap fonts for you.
|
Recent GIDBlog
Halfway done! by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to display chinese? | minifang | FLTK Forum | 18 | 14-May-2006 01:10 |
| fedora display problem | machinated | Computer Software Forum - Linux | 1 | 22-Aug-2005 21:03 |
| Fl_Help_View does not display images | jflisjak | FLTK Forum | 15 | 08-Jul-2005 05:37 |
| Unable to load any games after BIOS update | lizard- | Computer Hardware Forum | 6 | 07-Jan-2004 08:23 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The