Al-Qurtas-Islamic-bank-The-.../src/type1
Werner Lemberg 11cb8c36ed Use 16.16 format while parsing Type 1 charstrings.
This fixes Savannah bug #26867.

Previously, only integers have been used which can lead to serious
rounding errors.

However, fractional values are only used internally; after the
charstrings (of either Type 1 or 2) have been processed, the
resulting coordinates get rounded to integers currently -- before
applying scaling.  This should be fixed; at the same time a new load
flag should be introduced, to be used in combination with
FT_LOAD_NO_SCALE, which indicates that font units are returned in
16.16 format.  Similarly, the incremental interface should be
extended to allow fractional values for metrics.

* include/freetype/internal/psaux.h (T1_BuilderRec): Remove `shift'
field.
* include/freetype/internal/pshints.h (T1_Hints_SetStemFunc,
T1_Hints_SetStem3Func): Use FT_Fixed for coordinates.

* src/psaux/psobjs.c: Include FT_INTERNAL_CALC_H.
(t1_build_add_point): Always convert fixed to integer.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings):
Use 16.16 format everywhere (except for large integers followed by a
`div').
[CAN_HANDLE_NON_INTEGRAL_T1_OPERANDS]: Remove #ifdef and activate
code uncoditionally.
Add support for random numbers and update remaining code
accordingly; this should work now.
(t1_operator_seac): Updated.
* src/psaux/pshrec.c: Include FT_INTERNAL_CALC_H.
(ps_hints_t1stem3, t1_hints_stem): Updated.

* src/cid/cidgload.c: Include FT_INTERNAL_CALC_H.
(cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL],
(cid_face_compute_max_advance, cid_slot_load_glyph): Updated.

* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
[FT_CONFIG_OPTION_INCREMENTAL], (T1_Get_Advances, T1_Load_Glyph):
Updated.
* src/type1/t1load.c: Include FT_INTERNAL_CALC_H.
* src/type1/t1objs.c (T1_Face_Init): Updated.
2009-06-22 16:56:47 +02:00
..
Jamfile Add license. 2005-06-04 23:04:30 +00:00
module.mk FT_USE_MODULE declares things as: 2008-12-21 10:29:30 +00:00
rules.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
t1afm.c * src/type/t1afm.c (compare_kern_pairs), src/pxaux/afmparse.c 2008-08-23 19:54:06 +00:00
t1afm.h * src/autofit/afwarp.c: simple #ifdef to prevent compilation when 2006-01-27 12:11:22 +00:00
t1driver.c Formatting, copyright years. 2009-03-03 21:35:32 +00:00
t1driver.h Add #error to modules and files that do not support PIC yet. 2009-04-05 18:25:14 +03:00
t1errors.h Formatting. 2001-06-19 23:03:41 +00:00
t1gload.c Use 16.16 format while parsing Type 1 charstrings. 2009-06-22 16:56:47 +02:00
t1gload.h * autogen.sh, builds/unix/configure.raw, 2008-09-12 16:27:48 +00:00
t1load.c Use 16.16 format while parsing Type 1 charstrings. 2009-06-22 16:56:47 +02:00
t1load.h Spelling fixes from Alexei. 2007-01-26 22:18:56 +00:00
t1objs.c Use 16.16 format while parsing Type 1 charstrings. 2009-06-22 16:56:47 +02:00
t1objs.h Remove trailing whitespace. From Alexei. 2007-01-16 06:11:27 +00:00
t1parse.c Remove redundant header inclusions. 2009-03-21 08:51:44 +01:00
t1parse.h * src/type1/t1parse.h (T1_ParserRec): Make `base_len' and 2008-06-09 20:49:29 +00:00
t1tokens.h Formatting, copyright years. 2009-03-03 21:35:32 +00:00
type1.c finishing function header formatting 2001-06-28 17:49:10 +00:00