freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] Fix for FontMatrix xy swaps


From: Detlef Würkner
Subject: Re: [Devel] Fix for FontMatrix xy swaps
Date: Thu, 27 Jun 2002 08:13:56 +0200

Hello David,

address@hidden (David Turner) wrote:

> Detlef Würkner wrote:
> 
> > All FontMatrix parsing routines had xy and
> > yx swapped since old FT_Vector_Transform() did swap it back...
> 
> Actually, FT_Vector_Transform wasn't buggy at all, which is why I'm not
> going to commit your fix to the CVS. I have fixed the TrueType composite
> loader instead and reset the transformation routine to its correct
> state...

Fine, since this will keep FreeType compatible to existing applications.
Then there is only this fix to apply to the docs:

----8<----
--- freetype-2.1.2/docs/tutorial/step2.html.ori Fri May 31 04:16:15 2002
+++ freetype-2.1.2/docs/tutorial/step2.html     Thu Jun 27 05:55:40 2002
@@ -319,8 +319,8 @@
     <font color="gray">// transform glyph2 (horizontal shear)
     //</font>
     matrix.xx = 0x10000;
-    matrix.xy = 0;
-    matrix.yx = 0.12 * 0x10000;
+    matrix.xy = 0.12 * 0x10000;
+    matrix.yx = 0;
     matrix.yy = 0x10000;
 
     FT_Glyph_Transform( glyph2, &matrix, 0 );
----8<----

Btw, the PFR driver parses the FontMatrix (log_font->matrix[]) but does
not apply it to the font. But didnt find a PFR font with a matrix
different from [256, 0, 0, 256] (read [1.0 0 0 1.0]) anyway...

Ciao, Detlef
-- 
_ // address@hidden
\X/  Detlef Wuerkner, Langgoens/Germany



reply via email to

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