nanogui: fonts


Previous by date: 13 Jul 2004 03:27:58 +0100 Re: Is it possible to port MicroWindows to other OS(like Nucleus)?, Greg Haerr
Next by date: 13 Jul 2004 03:27:58 +0100 Re: GrGetGCTextSize bug with .ttf fonts?, Greg Haerr
Previous in thread: 13 Jul 2004 03:27:58 +0100 Fonts, Curtis Nelson
Next in thread: 13 Jul 2004 03:27:58 +0100 Fonts, Yan Seiner

Subject: Re: [nanogui] Fonts
From: "Greg Haerr" ####@####.####
Date: 13 Jul 2004 03:27:58 +0100
Message-Id: <009401c46880$eac68d80$3aba46a6@xmission.com>

> Can anyone please provide some sample code showing how to display some
> Chinese/Japanese/Korean text on a button or in a listbox using the Win32 interface?

The win32 support for the new DBCS and UC16 fonts is not as easy
as the nano-X API, since we had to stay compatible with existing win32
API.  If you check out the ExtTextOut implementation in src/mwin,
you'll see that the MWTF_xxx flags value in the GdText call needs
to change to match the encoding of the font you're using.  The
font is selected in the standard win32 fashion using CreateFont,
and specifying the full path to the .ttf file.

Regards,

Greg


Previous by date: 13 Jul 2004 03:27:58 +0100 Re: Is it possible to port MicroWindows to other OS(like Nucleus)?, Greg Haerr
Next by date: 13 Jul 2004 03:27:58 +0100 Re: GrGetGCTextSize bug with .ttf fonts?, Greg Haerr
Previous in thread: 13 Jul 2004 03:27:58 +0100 Fonts, Curtis Nelson
Next in thread: 13 Jul 2004 03:27:58 +0100 Fonts, Yan Seiner


Powered by ezmlm-browse 0.20.