Hi,

"Manhart Matthias" <[EMAIL PROTECTED]> writes:

>    i need small bitmap fonts (non-scalable, 8pixel and up) for my
>    application. How can i use bitmap fonts in DirectFB 0.9.18 ?
>
>    I made some tests with a ttf-font, but small fonts are
>    unreadable.

Did you compile freetype with the bytecode interpreter enabled? It
usually improves the results for small fonts. Of course you also need
a well-hinted font. Most TTF fonts that are freely available are not
hinted at all.

> I tried to use "modern.fon" from a windows-system, but i got
> DFB_NOIMPL with CreateFont". I use FreeType 2.1.4 and in the
> features i saw, that windows bitmap fonts are supported (FNT or
> FON).

The freetype2 driver in DirectFB asks freetype2 to open the file. If
you get DFB_NOIMPL with CreateFont, that means that freetype2 doesn't
support the font file format. I had a short look at the freetype
web-pages and I didn't find anything that would imply that the .FON
format would be supported at all.

Alternatively you can use the default DirectFB font loader. It reads a
very simple bitmap font format. You could change the bitmap and tweak
the code to handle your (smaller) font.


Sven


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to