[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] Re: [Render] OpenType support in Pango
From: |
Keith Packard |
Subject: |
[Freetype] Re: [Render] OpenType support in Pango |
Date: |
Wed, 20 Dec 2000 08:55:30 -0800 |
> So, I needed both the charmap table set and the ability to
> render using raw glyph codes. What I did was load up the
> font using Xft unencoded by the "glyphs-unencoded" encoding,
> and then called FT_Set_Charmap myself.
That seems fine; you want Xft to use no charmap which this will do.
However, realize that I just fixed Xft to share faces and fonts so that
multiple fonts referencing the same face will share the underlying
FreeType data structures; if you open more than one font, you'll need to
be careful to set the encoding and sizes with the (soon to be exported)
Bool
XftFreeTypeSetFace (FT_Face face, FT_F26Dot6 size, int charmap)
interface instead. The 'charmap' is the index into the list of supported
encodings for that face (face->charmaps[charmap]). You can search that
list to make sure an iso10646 encoding exists for your application. This
is independent of the charmap used by a particular font.
> An alternate method would have been to load the font with
> the "iso10646-1" encoding via Xft and then do:
>
> font->u.ft.font.encoded = 0;
That won't work any longer...
address@hidden XFree86 Core Team SuSE, Inc.
[Freetype] Re: [Render] OpenType support in Pango, Werner LEMBERG, 2000/12/20
Re: [Freetype] Re: [Render] OpenType support in Pango, Roozbeh Pournader, 2000/12/20