ref: 56a4d87cb2935339e970d0743c250389fc4706c8
parent: e9920c6972f72f188d2029ca13f69eede4022ea5
author: Werner Lemberg <[email protected]>
date: Thu Jun 3 03:56:21 EDT 2004
* src/truetype/ttgload.c (compute_glyph_metrics): Fix compiler warnings.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-02 Werner Lemberg <[email protected]>
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Fix compiler
+ warnings.
+
2004-06-01 Werner Lemberg <[email protected]>
* src/sfnt/sfobjs.c (tt_face_get_name): Make sure that an English
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -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
{