freetype
[Top][All Lists]
Advanced

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

[ft] FreeType 2.3.0/2.3.1 problems with Thai Language


From: Chanon Sajjamanochai
Subject: [ft] FreeType 2.3.0/2.3.1 problems with Thai Language
Date: Sun, 11 Feb 2007 02:07:06 +0700

Hi,

I've been integrating FreeType with my game engine, and since I'm Thai, I've been trying Thai fonts/text with it. Since Thai is such a complicated language (3 levels of characters) it is a pretty good test case for a Font system.

I've been comparing my text output with that of PTK (a game library) which also uses FreeType.

What I found was when using PTK, the Thai text came out correctly, but in my engine it comes out with additional spacing between characters when there shouldn't be any.

I thought maybe PTK was using a different version of FreeType and so I tried changing the version of FreeType back to 2.2.1

Here is the difference:

In 2.2.1 you can see that the characters are close together as they should be.
http://www.viquasoft.com/chanon/freetype2.2.1.png

But in 2.3.1 the characters (especially the "floating" vowels and tone indicators in the Thai language) seem to have additional spacing when they shouldn't have any. This is unacceptable Thai text.
http://www.viquasoft.com/chanon/freetype2.3.1.png

This is using CordiaUPC which is a standard Thai/English font.

The only thing I changed in the above two versions is I linked to freetype231MT_D.lib instead of freetype221MT_D.lib, the rest of the code is exactly the same.

I'm not sure if I'm doing anything wrong, or if any of the rendering code needs to be changed for FreeType 2.3.1 so that it outputs text correctly.

Anyone have any ideas?

Thank you!,
Chanon





reply via email to

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