* src/truetype/ttgload.c (compute_glyph_metrics): Fix compiler

warnings.
This commit is contained in:
Werner Lemberg 2004-06-03 07:56:21 +00:00
parent e9920c6972
commit 56a4d87cb2
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-06-02 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (compute_glyph_metrics): Fix compiler
warnings.
2004-06-01 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (tt_face_get_name): Make sure that an English

View File

@ -1677,13 +1677,13 @@
FT_Pos top; /* scaled vertical top side bearing */
FT_Pos advance; /* scaled vertical advance height */
/* Get the unscaled top bearing and advance height. */
if ( face->vertical_info &&
face->vertical.number_Of_VMetrics > 0 )
{
advance_height = loader->pp4.y - loader->pp3.y;
top_bearing = loader->pp3.y - bbox.yMax;
advance_height = (FT_UShort)( loader->pp4.y - loader->pp3.y );
top_bearing = (FT_Short)( loader->pp3.y - bbox.yMax );
}
else
{