summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Wazurkar <parthwazurkar@gmail.com>2018-08-02 00:55:08 +0530
committerParth Wazurkar <parthwazurkar@gmail.com>2018-08-02 00:55:08 +0530
commit383752cd9863f2791b15966d0d1ad2a8cd13683a (patch)
treef13014f6efcf663d5df3bfac99a5a413bb469a19
parent3d5f300f0ccdbdcdf4e101757f06d6201856fd02 (diff)
downloadfreetype2-383752cd9863f2791b15966d0d1ad2a8cd13683a.tar.gz
[tfm] Fixes.
-rw-r--r--include/freetype/internal/tfm.h2
-rw-r--r--src/tfm/tfmobjs.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/freetype/internal/tfm.h b/include/freetype/internal/tfm.h
index 895786e8a..7462e01ee 100644
--- a/include/freetype/internal/tfm.h
+++ b/include/freetype/internal/tfm.h
@@ -48,7 +48,7 @@ FT_BEGIN_HEADER
/* Font Info */
FT_Long cs; /* Check Sum */
/* Metrics */
- FT_ULong ds; /* Design Size */
+ FT_ULong ds, fs; /* Design Size */
FT_UInt design_size;
FT_UInt slant;
FT_UInt begin_char, end_char;
diff --git a/src/tfm/tfmobjs.c b/src/tfm/tfmobjs.c
index 69ec22e16..35c8ff4af 100644
--- a/src/tfm/tfmobjs.c
+++ b/src/tfm/tfmobjs.c
@@ -167,6 +167,7 @@
return error;
lf = (FT_ULong)READ_UINT2( stream );
+ fi->fs = 4*lf - 1 ;
#if 0
if ((lf == 11) || (lf == 9))