Re: [Render] OpenType support in Pango



> 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...

keithp keithp com	 XFree86 Core Team		SuSE, Inc.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]