nanogui: Cyrillic font buit-in
Subject:
Re: [nanogui] Cyrillic font buit-in
From:
Cristian Chiarello ####@####.####
Date:
9 May 2008 10:03:45 -0000
Message-Id: <482421B7.6000604@fimm.com>
Hi Greg,
thank you very much for your suggestion.
For ttf to bdf conversion I have used otf2bdf (an evolution of ttf2bdf).
Then, have created the .c with convbdf that have converted all symbols
(.c is more than 8Mb).
Now I have another problem: I'm not read the correct symbol on the screen.
My application read a UTF-8 file and show it on a text area.
When I use the .ttf file, all work correctly (but is very slow).
With the same font converted as explained above, I see latin symbols
like ", ?, !, space...
I have read devfont.c source and I have seen PMWFONTPROCS struct have
"encoding" member: if I set it to MWTF_UTF8 in GdCreateFont function
when the built-in font is loaded, can be the right way?
Still thank.
Regards, Cristian C.
Greg Haerr ha scritto:
> : I need to embedded cyrillic font support on microwindows. Actually, we
> : use built-in font generated by convfnt32 and ttf fonts.
> : I have found the dejavu project on sourceforge that have ttf font with
> : cyrillic simbols.
> : How can I extract this ones?
>
> Nano-X includes a font converter, convbdf, which will create
> a .c file from a .bdf file. This file is then easily included as a built-in
> font, of the fixed size specified by the .bdf file. I'm pretty sure
> there is a .ttf -> .bdf conversion program somewhere that will
> create a .bdf of a specified fixed raster size from the .ttf file.
> This .bdf could then be used to create a .c file.
>
> Regards,
>
> Greg
>
>
>