|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
/* */ |
|
|
|
|
/* Type 1 Glyph Loader (body). */ |
|
|
|
|
/* */ |
|
|
|
|
/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2008 by */ |
|
|
|
|
/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 by */ |
|
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
|
|
|
|
/* */ |
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */ |
|
|
|
@ -295,8 +295,16 @@ |
|
|
|
|
if ( load_flags & FT_LOAD_NO_RECURSE ) |
|
|
|
|
load_flags |= FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING; |
|
|
|
|
|
|
|
|
|
glyph->x_scale = size->root.metrics.x_scale; |
|
|
|
|
glyph->y_scale = size->root.metrics.y_scale; |
|
|
|
|
if ( size ) |
|
|
|
|
{ |
|
|
|
|
glyph->x_scale = size->root.metrics.x_scale; |
|
|
|
|
glyph->y_scale = size->root.metrics.y_scale; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
glyph->x_scale = 0x10000L; |
|
|
|
|
glyph->y_scale = 0x10000L; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
glyph->root.outline.n_points = 0; |
|
|
|
|
glyph->root.outline.n_contours = 0; |
|
|
|
@ -430,8 +438,8 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* Then scale the metrics */ |
|
|
|
|
metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); |
|
|
|
|
metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); |
|
|
|
|
metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); |
|
|
|
|
metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* compute the other metrics */ |
|
|
|
|