[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.
This commit is contained in:
Steven Chu 2011-07-16 09:12:42 +02:00 committed by Werner Lemberg
parent 143799d4a9
commit b0962ac34e
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2011-07-16 Steven Chu <steven.f.chu@gmail.com>
[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 <M.Drochner@fz-juelich.de>.
[psaux] Fix potential sign extension problems.

View File

@ -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;
}