Al-Qurtas-Islamic-bank-The-.../src/pshinter
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 Position Independent Code (PIC) support in pshinter module. 2009-04-05 18:20:16 +03:00
module.mk FT_USE_MODULE declares things as: 2008-12-21 10:29:30 +00:00
pshalgo.c Don't use stdlib.h and friends directly. 2009-01-13 17:34:48 +00:00
pshalgo.h Cosmetic code changes. 2008-05-28 22:17:28 +00:00
pshglob.c formatting, copyright years 2006-02-27 18:25:22 +00:00
pshglob.h Avoid overwriting of numeric font dictionary entries for synthetic 2003-05-30 09:12:50 +00:00
pshinter.c Position Independent Code (PIC) support in pshinter module. 2009-04-05 18:20:16 +03:00
pshmod.c Position Independent Code (PIC) support in pshinter module. 2009-04-05 18:20:16 +03:00
pshmod.h Position Independent Code (PIC) support in pshinter module. 2009-04-05 18:20:16 +03:00
pshnterr.h * src/tools/glnames.py: Updated to AGL 2.0. 2003-06-23 19:26:53 +00:00
pshpic.c Position Independent Code (PIC) support in pshinter module. 2009-04-05 18:20:16 +03:00
pshpic.h Position Independent Code (PIC) support in pshinter module. 2009-04-05 18:20:16 +03:00
pshrec.c Use 16.16 format while parsing Type 1 charstrings. 2009-06-22 16:56:47 +02:00
pshrec.h Cosmetic code changes. 2008-05-28 22:17:28 +00:00
rules.mk * src/winfonts/winfnt.c (FNT_Load_Glyph): Use first_char in 2003-06-22 15:33:53 +00:00