nanogui: Cyrillic font buit-in


Previous by date: 9 May 2008 18:39:12 -0000 Re: Cyrillic font buit-in, Cristian Chiarello
Next by date: 9 May 2008 18:39:12 -0000 Re: NANO-X,, FLTK 1.1.8, ARM-Linux TARGET - Clarification, Greg Haerr
Previous in thread: 9 May 2008 18:39:12 -0000 Re: Cyrillic font buit-in, Cristian Chiarello
Next in thread: 9 May 2008 18:39:12 -0000 Re: Cyrillic font buit-in, Cristian Chiarello

Subject: Re: [nanogui] Cyrillic font buit-in
From: "Greg Haerr" ####@####.####
Date: 9 May 2008 18:39:12 -0000
Message-Id: <0b6801c8b203$f27c0840$0300a8c0@RDP>

: 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?

The encoding member in the built-in MWFONTPROCS struct
must be something that lets nano-X know that the font is 
larger than 256 characters.  I usually use MWTF_UC16 in
the struct, and then specify the text encoding passed to GrText
as whatever your application is using.  Nano-X will convert
between the formats.  The UC16 allows 16-bit access to
the font glyphs.

I don't understand your statement about GdCreateFont.

Regards,

Greg

Previous by date: 9 May 2008 18:39:12 -0000 Re: Cyrillic font buit-in, Cristian Chiarello
Next by date: 9 May 2008 18:39:12 -0000 Re: NANO-X,, FLTK 1.1.8, ARM-Linux TARGET - Clarification, Greg Haerr
Previous in thread: 9 May 2008 18:39:12 -0000 Re: Cyrillic font buit-in, Cristian Chiarello
Next in thread: 9 May 2008 18:39:12 -0000 Re: Cyrillic font buit-in, Cristian Chiarello


Powered by ezmlm-browse 0.20.