nanogui: displaying latin1, latin2 or european Unicode characters.
Subject:
Re: displaying latin1, latin2 or european Unicode characters.
From:
"Greg Haerr" ####@####.####
Date:
17 Jan 2001 02:49:14 -0000
Message-Id: <01b501c0802f$c235d520$15320cd0@gregh>
: I would like to ask whether UNICODE support in microwindows (nanoX) covers
: European latin1, latin2 and russian characters? We have used the atached
: patch to get latin1 support with T1-1.0/Fonts/enc/IsoLatin1.enc but how to
: get also latin2 and other characters in the same program/window ?
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.
:
: 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.
Regards,
Greg
:
: diff -bur microwin-0.88pre11/src/engine/devfont.c
../microwindows-0.88pre11/src/engine/devfont.c
: --- microwin-0.88pre11/src/engine/devfont.c Tue May 23 20:16:11 2000
: +++ ../microwindows-0.88pre11/src/engine/devfont.c Thu Dec 21 16:09:02 2000
: @@ -583,6 +583,7 @@
: t1lib_init(PSD psd)
: {
: static int inited = 0;
: + char **encoding;/* m.r.*/
:
: if (inited)
: return 1;
: @@ -590,6 +591,13 @@
: T1_SetBitmapPad(8);
: if (!T1_InitLib(0))
: return 0;
: +
: + /* m.r. */
: + encoding = T1_LoadEncoding ("IsoLatin1.enc");
: + T1_SetDefaultEncoding (encoding);
: + /* end m.r. */
: +
: +
: #ifdef T1LIB_USE_AA_HIGH
: T1_AASetLevel(T1_AA_HIGH);
: #else
:
: I have tried to add latin2 characters to ftdemo.txt and run it in
: microwindows-0.89pre6b but unfortunately it did not work - only latin1
: characters were displaied. I have edited the file with "yudit" using
: "european" font selection.
:
: Best regards,
: --
: Tomasz Motylewski
: BFAD GmbH & Co.KG http://www.bfad.de/
:
:
--------------------------------------------------------------------------------
: gEût été ôté de là ...aÄ?Ä?aÄ.Ä?ŹÅsÅ>żŻÄTÄ~Å,Å�
:
--------------------------------------------------------------------------------
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####