nanogui: displaying latin1, latin2 or european Unicode characters.
Subject:
displaying latin1, latin2 or european Unicode characters.
From:
Tomasz Motylewski ####@####.####
Date:
16 Jan 2001 17:43:52 -0000
Message-Id: <Pine.LNX.3.96.1010110115955.27074G-200000@linserv.intern.bfad.de>
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 can accept the need to write all input text in unicode, but how to match
unicode characters to the fonts?
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ąĆŹŚśżŻęĘł�