freetype/src
Werner Lemberg 77c39b1deb [cff] Make Adobe CFF engine work correctly on 64bit hosts.
Reported by numerous people on the `freetype-devel' list.  Without
this fix, glyphs aren't properly aligned on a common baseline.

On 64bit systems, `FT_Pos' expands to `long int', having a width of
64bit.  `CF2_Fixed' expands to `int' which is normally 32bit wide on
64bit hosts also.  Wrong casts filled up the blues arrays with
incorrect values.  Note that all blues values are accessed with the
`cf2_blueToFixed' macro which handles the 64bit to 32bit conversion.

* src/cff/cf2ft.h (cf2_getBlueValues, cf2_getOtherBlues,
cf2_getFamilyBlues, cf2_getFamilyOtherBlues): Use `FT_Pos' for
`data', not `CF2_Fixed'.
* src/cff/cf2ft.c (cf2_getBlueValues, cf2_getOtherBlues,
cf2_getFamilyBlues, cf2_getFamilyOtherBlues): Updated.
* src/cff/cf2blues.c (cf2_blues_init): Updated.
2013-05-04 18:04:07 +02:00
..
autofit Whitespace. 2013-03-23 14:25:43 +01:00
base More fixes for clang's `sanitize' feature. 2013-05-04 16:40:12 +02:00
bdf Fix Savannah bug #38589. 2013-04-03 07:37:56 +02:00
bzip2 */*: Use FT_Err_Ok only. 2013-03-14 11:21:17 +01:00
cache */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
cff [cff] Make Adobe CFF engine work correctly on 64bit hosts. 2013-05-04 18:04:07 +02:00
cid More fixes for clang's `sanitize' feature. 2013-05-04 16:40:12 +02:00
gxvalid */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
gzip */*: Use FT_Err_Ok only. 2013-03-14 11:21:17 +01:00
lzw */*: Use FT_Err_Ok only. 2013-03-14 11:21:17 +01:00
otvalid */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
pcf */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
pfr */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
psaux More fixes for clang's `sanitize' feature. 2013-05-04 16:40:12 +02:00
pshinter Whitespace. 2013-03-17 08:14:46 +01:00
psnames Whitespace. 2013-03-17 08:14:46 +01:00
raster Typo. 2013-03-24 08:37:12 +01:00
sfnt Whitespace. 2013-03-17 08:14:46 +01:00
smooth Whitespace. 2013-03-17 08:14:46 +01:00
tools */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
truetype More fixes for clang's `sanitize' feature. 2013-05-04 16:40:12 +02:00
type1 */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
type42 */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
winfonts */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
Jamfile Add license. 2005-06-04 23:04:30 +00:00