nanogui: displaying latin1, latin2 or european Unicode characters.
Subject:
Re: displaying latin1, latin2 or european Unicode characters.
From:
Tomasz Motylewski ####@####.####
Date:
25 Jan 2001 17:53:49 -0000
Message-Id: <Pine.LNX.3.96.1010125184858.15176A-100000@linserv.intern.bfad.de>
On Tue, 16 Jan 2001, Greg Haerr wrote:
> I assume that you're running using GrText(..., MWTF_UC16);
> It seems we may need to load various truetype/T1 fonts w/separate
> decoding .enc files, something that we might need an additional API
> for. Try loading a different .enc file for each of the fonts that
> you are trying to display.
OK, this is second step. First step is that if I want to use GrText(...,
MWTF_ASCII) Latin1 encoding is not loaded. May I do direct T1lib calls
from the client?
> : I can accept the need to write all input text in unicode, but how to match
> : unicode characters to the fonts?
>
> Isn't that what the .enc file does? It's my understanding that you
> ask T1lib for a glyph using a unicode index. Certainly Microwindows
> carries the unicode index down to that level.
The problem is T1lib does not accept unicode indices. It accepts 0-255
index and uses currently loaded encoding to display it. So to do it
correctly Microwindows would need to have a map of "unicode-index : font
and encoding to use in T1" and reconfigure T1 dynamically. Or just load
fonts with different encoding as different fonts.
Best regards,
--
Tomasz Motylewski
BFAD GmbH & Co.KG http://www.bfad.de/
P.S. I have seen GdConvertEncoding
I would not call
*ostr8++ = (unsigned char)ch;
a "UNICODE suport".