freetype-devel
[Top][All Lists]
Advanced

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

[Devel] Re: Character mapping - HELP?


From: Tom Kacvinsky
Subject: [Devel] Re: Character mapping - HELP?
Date: Mon, 5 Mar 2001 11:40:28 -0500 (EST)

Hi,

>
> I want to render strings that normally get passed to the ExtTextOut
> function in Windows. All works well until I come across the Symbol.ttf font
> in conjunction with the 'ft_encoding_symbols' character map encoding.
>
> Windows renders a 'theta' symbol when ExtTextOut is passed (BYTE)113. I
> want to mimic this behaviour. But freetype 2 renders an 'empty' character.
> I've looked at the charactermap translation but can't find anything quirky.
> I must admit that I don't know a lot about this...
>
> I've tried bypassing the translation to see if Windows directly uses the
> character code as a glyph index but that doesn't work. There seems to be a
> +32 offset.
>
> I use FT_Select_Charmap() to change the current mapping. But whichever
> mapping I use, it renders an in correct or empty glyph.
>

The empty glyph rendering is indicitive that there is no glyph index for the
char code you passed.  The incorrect glyph rendering is indictive of the fact
that there is a glyph index for the char code you passed, but it is not the
glyph index for the desired glyph.

If you know you have the correct char map selected, the most likely culprit is
that you are not passing the correct char code.

We would need to see sample code to see what is wrong.  Can you pass on to us
a minimal code snippet that exhibits the problem?

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]