freetype
[Top][All Lists]
Advanced

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

Re: [ft] outline get cropped when render chinese simkai.ttf font


From: Werner LEMBERG
Subject: Re: [ft] outline get cropped when render chinese simkai.ttf font
Date: Sat, 15 Jan 2011 10:59:26 +0100 (CET)

> [...] the chinese character '全',I think the outline get cropped,
> while the other fonts like 'simsun.ttf' doesn't have this problem。
> the freetype version i used is 2.4.4,thank you。

Thanks for the font link.

However, I can't repeat the problem with the current git version of
FreeType.  Applying the change below, then calling the compiled
program with

  ./example2 simkai.ttf example2.tga

I get the attached output.  Zooming in with gimp (attached also) you
can clearly see that the outlines are not cropped.

My conclusion is that your problem is somewhere else.


    Werner


======================================================================

--- example2.cpp.orig       2010-10-05 10:03:01.000000000 +0200
+++ example2.cpp        2011-01-15 10:43:40.000000000 +0100
@@ -380,9 +380,9 @@
     // Dump out a single glyph to a tga.
     WriteGlyphAsTGA(library,
                     argv[2],
-                    L'B',
+                    L'全',
                     face,
-                    100,
+                    64,
                     Pixel32(255, 90, 30),
                     Pixel32(255, 255, 255),
                     3.0f);

PNG image

Attachment: example2.tga.bz2
Description: Binary data


reply via email to

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