GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Jun-2006, 07:19
Corvin Corvin is offline
New Member
 
Join Date: Jun 2006
Location: Ukraine, Kharkov
Posts: 1
Corvin is on a distinguished road

Load and display .ttf fonts


Hello,

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  
Old 24-Aug-2006, 07:45
MatthiasWM MatthiasWM is offline
VIP
 
Join Date: Nov 2004
Posts: 62
MatthiasWM will become famous soon enough

Re: Load and display .ttf fonts


On "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 GIDBlogHalfway done! by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 05:52.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.