nanogui: Supporting open type fonts
Subject:
Re: [nanogui] Supporting open type fonts
From:
####@####.####
Date:
6 Apr 2004 19:06:19 +0100
Message-Id: <OF3DC2520B.E9EB051E-ON80256E6E.005F8223-80256E6E.006377F5@philips.com>
Hi,
>I used the following code.
>
>font_d = GrCreateFont ("latha", 30, NULL);
>GrSetGCFont (gc, font_d);
>GrText (wid, gc, 20, 100, "\340\256\262", 3,
>GR_TFUTF8);
>
>I placed latha.ttf file in the correct folder and it
>is open type file.
>But nano-x is not displaying anything. What might be
>the problem?
Please can you do a simple test using English letters (i.e.
7-bit ASCII) and a well-known font that definitely contains these
characters? We need to know if your problem is:
- Getting TrueType rendering running at all
- Unicode support
- Broken font
- Complex script support (known missing feature in Microwindows)
Did you enable FreeType 2 support in the config file (and disable FreeType
1 support)?
I don't know if the Microwindows FreeType 1 driver supports Unicode. The
FreeType 2 driver definitely does - I use it to render UTF-8.
Also, Microwindows doesn't do any of the fancy OpenType layout that some
languages need. Only simple TrueType glyph rendering
Kind regards,
Jon Foster
--