shithub: freetype+ttf2subf

Download patch

ref: b0962ac34e66052ccfee7996e5468f30d4bd5a72
parent: 143799d4a95e38eab1e49c761d3c6f116fd80349
author: Steven Chu <[email protected]>
date: Sat Jul 16 05:12:42 EDT 2011

[truetype] Fix metrics on size request for scalable fonts.

* src/truetype/ttdriver.c (tt_size_request): Fix copying metrics
from TT_Size to FT_Size if scalable font.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-16  Steven Chu  <[email protected]>
+
+	[truetype] Fix metrics on size request for scalable fonts.
+
+	* src/truetype/ttdriver.c (tt_size_request): Fix copying metrics
+	from TT_Size to FT_Size if scalable font.
+
 2011-07-14  Matthias Drochner  <[email protected]>.
 
 	[psaux] Fix potential sign extension problems.
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -246,7 +246,10 @@
     FT_Request_Metrics( size->face, req );
 
     if ( FT_IS_SCALABLE( size->face ) )
+    {
       error = tt_size_reset( ttsize );
+      ttsize->root.metrics = ttsize->metrics;
+    }
 
     return error;
   }