1. 06 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 31d783b1
      Werner Lemberg authored
      * include/freetype/internal/psaux.h (T1_FieldType): Add
      T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
      (T1_FIELD_FIXED_1000, T1_FIELD_FIXED_1000_P): New macros.
      * src/psaux/psobjs.c (ps_parser_load_field): Handle
      T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
      * src/cff/cffparse.c (cff_kind_fixed_thousand): New enumeration.
      (CFF_FIELD_FIXED_1000): New macro.
      (cff_parser_run): Handle cff_kind_fixed_thousand.
      * src/cff/cfftoken.h: Use CFF_FIELD_FIXED_1000 for blue_scale.
      * src/cff/cffload (cff_subfont_load): Fix default values of
      expansion_factor and blue_scale.
      * src/cif/cidtoken.h, src/type1/t1tokens.h: Use T1_FIELD_FIXED_1000
      for blue_scale.
      * src/pshinter/pshglob.c (psh_globals_new): Fix default value of
  2. 05 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 3c63bf28
      Werner Lemberg authored
      * include/freetype/internal/ftdriver.h,
      include/freetype/internal/psaux.h, src/cid/cidgload.c,
      src/psaux/psobjs.c, src/psaux/t1decode.c, src/psaux/psobjs.h,
      src/pshinter/pshrec.c, src/pshinter/pshalgo.c,
      src/psnames/psmodule.c, src/raster/ftraster.c, src/sfnt/sfobjs.c,
      src/smooth/ftgrays.c, src/smooth/ftsmooth.c, src/truetype/ttobjs.c,
      src/truetype/ttdriver.c, src/truetype/ttgload.c, src/type1/t1afm.c,
      src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1load.c,
      src/type1/t1objs.c, src/type42/t42parse.c, src/type42/t42parse.h:
      Many casts and slight argument type changes to make it work with
      a 16bit compiler.
  3. 04 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 124d3334
      Werner Lemberg authored
      * src/truetype/ttgload.c (load_truetype_glyph)
      FT_GlyphLoader_CheckPoints before adding phantom points.  This fixes
      a segfault bug with fonts (e.g. htst3.ttf) which have nested
      subglyphs more than one level deep.  Reported by Anthony Fok.
      * include/freetype/config/ftoption.h: Define
  4. 03 Jun, 2003 2 commits
    • Werner Lemberg's avatar
      · 1c524796
      Werner Lemberg authored
      * src/truetype/ttinterp.c (Free_Project, CUR_Func_freeProj):
      Removed.  Unused.
      Updated all callers.
    • Werner Lemberg's avatar
      · 375da610
      Werner Lemberg authored
      * src/autohint/ahhint.c (ah_hinter_hint_edges): Removed.  Just a
      wrapper for ah_hint_edges.
      (ah_hint_edges): Renamed to...
      (ah_hinter_hint_edges): This.
      * src/base/ftobjs.c (FT_Set_Hint_Flags): Removed.  Unused.
      * include/freetype/internal/ftobjs.h (FT_Face_InternalRec),
      include/freetype/internal/psaux.h (T1_DecoderRec),
      src/cff/cffgload.h (CFF_Builder): Remove `hint_flags' field.
      * src/cff/cffgload.c (cff_builder_init): Updated.
      (cff_decoder_parse_charstrings) <cff_op_endchar>: Call hinter->apply
      with decoder->hint_mode instead of builder->hint_flags.
      * src/psaux/t1decode.c (t1_decoder_init): Updated.
      * src/base/ftstroker.c (ft_stroke_border_export): s/index/idx/.
      * src/sfnt/sfobjs.c (sfnt_load_face): Commented out code which
      increased root->height by 15% if the line gap was zero.  There exist
      fonts (containing e.g. form drawing characters) which intentionally
      have a zero line gap value.
  5. 02 Jun, 2003 2 commits
    • Werner Lemberg's avatar
      · 7df5ed77
      Werner Lemberg authored
      * src/cff/cffobjs.c (cff_face_init): Use symbolic names for
      Adobe specific encoding IDs (there was a wrong EID value for custom
      * src/cff/cffcmap.h (CFF_CMapStdRec): Remove `count'.
      * src/cff/cffcmap.c (cff_cmap_encoding_init,
      cff_cmap_encoding_done): Updated.
      (cff_cmap_encoding_char_index, cff_cmap_encoding_char_next): Use
      256 as limit for character code.
    • Werner Lemberg's avatar
      · 34700b54
      Werner Lemberg authored
      * src/winfonts/winfnt.c (FNT_Load_Glyph): Revert change from
  6. 01 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 802be207
      Werner Lemberg authored
      * include/freetype/fttrigon.h (FT_Vector_Normalize): Removed.
      * src/type1/t1objs.c (T1_Face_Init): Improve algorithm for guessing
      the font style by ignoring spaces and hyphens.
      * builds/unix/freetype2.in: Fix `Version' field.
  7. 30 May, 2003 1 commit
    • Werner Lemberg's avatar
      · e7d4fea8
      Werner Lemberg authored
      Avoid overwriting of numeric font dictionary entries for synthetic
      fonts. Additionally, some entries were handled as `integer' instead
      of `number'.
      * include/freetype/internal/psaux.h (T1_FieldType): Add
      (T1_FIELD_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P): New macros.
      * src/psaux/psobjs.c (ps_parser_load_field): Handle new field types.
      * include/freetype/internal/cfftypes.h (CFF_FontRecDict),
      src/cff/cfftoken.h: Change type of underline_position and
      underline_thickness to FT_Fixed.
      * src/cff/cffload.c (cff_subfont_load): Fix default values of
      underline_position and underline_thickness.
      * src/cff/cffobjs.c (cff_face_init): Set underline_position
      and underline_thickness in `root'.
      * include/freetype/internal/t1types.h (T1_Font): Change point_type
      and stroke_width to pointers.
      * include/freetype/t1tables.h (PS_FontInfo): Change italic_angle,
      is_fixed_pitch, underline_position, and underline_thickness to
      * src/type1/t1tokens.h: Change italic_angle, is_fixed_pitch,
      underline_position, and underline_thickness to pointers.  Change
      the type of the latter two to `fixed'.
      Change type of stroke_width to `fixed' and make it a pointer.
      Change paint_type to pointer.
      * src/type1/t1objs.c (T1_Face_Done): Updated.
      (T1_Face_Init): Updated.
      Fix assignment of underline_position and underline_thickness.
      * src/cid/cidtoken.h: Change italic_angle, is_fixed_pitch,
      underline_position, and underline_thickness to pointers.  Change
      the type of the latter two to `fixed'.
      Change type of stroke_width to `fixed'.
      * src/cid/cidobjs.c (cid_face_done): Updated.
      (cid_face_init): Updated.
      Fix assignment of underline_position and underline_thickness.
      * src/type42/t42parse.c: Change italic_angle, is_fixed_pitch,
      underline_position, and underline_thickness to pointers.  Change the
      type of the latter two to `fixed'.
      Change type of stroke_width to `fixed' and make it a pointer.
      Change paint_type to pointer.
      * src/type42/t42objs.c (T42_Face_Init): Updated.
      Fix assignment of underline_position and underline_thickness.
      (T42_Face_Done): Updated.
      * src/base/ftobjs.c (open_face_from_buffer): Fix compiler warning.
      * src/pshinter/pshglob.c, src/pshinter/pshglob.h
      (psh_globals_set_scale): Make it a local function.
      * test/gview.c: Fix remaming ps3->ps typo.
  8. 28 May, 2003 4 commits
    • Werner Lemberg's avatar
      · 9484a94d
      Werner Lemberg authored
      * src/pshinter/pshalgo1.[ch], src/pshinter/pshalgo2.[ch]: Removed.
      * src/pshinter/pshalgo.h: Removed.
      * src/pshinter/pshalgo3.[ch]: Renamed to...
      * src/pshinter/pshalgo.[ch]: New files.
      * src/pshinter/pshrec.c, src/pshinter/pshinter.c: Updated.
      * src/pshinter/rules.mk, src/pshinter/Jamfile: Updated
      * src/pshinter/pshglob.[ch] (psh_dimension_snap_width): Commented
      * tests/gview.c: Remove code for pshalgo1 and pshalgo2.
    • Werner Lemberg's avatar
      · 134fecab
      Werner Lemberg authored
      * vms_make.com: Reworked support for shareable images on VMS.  The
      first version was kind of a hack; the current implementation of the
      procedure to extract the required symbols is much cleaner.
      Reworked creation of MMS files, avoiding a number of temporary files
      which were created in the previous version.
      Further work on creating descrip.mms files on the fly.
      * builds/vms/descrip.mms, src/autohint/descrip.mms,
      src/type1/descrip.mms: Removed.
    • Werner Lemberg's avatar
      · de1b6e14
      Werner Lemberg authored
      * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Activate code for
      handling `origin'.
    • Werner Lemberg's avatar
      · 71d5b74f
      Werner Lemberg authored
      * src/pshinter/pshalgo3.c (psh3_glyph_compute_extrema): Skip
      contours with only a single point to avoid segfault.
      * src/autohint/ahtypes.h (AH_OPTION_NO_STRONG_INTERPOLATION):
      Removed since unused.
  9. 21 May, 2003 2 commits
    • Werner Lemberg's avatar
      · 834dd305
      Werner Lemberg authored
      * src/gzip/ftgzip.c (ft_gzip_fil_io): Revert change from yesterday;
      it has already been fixed differently.
      * src/truetype/ttinterp.c (DO_SFVTL): Add missing braces around
    • Werner Lemberg's avatar
      · 22d661dd
      Werner Lemberg authored
      * include/freetype/config/ftstdlib.h (ft_strcat): New wrapper macro
      for strcat.
      * src/base/ftmac.c (create_lwfn_name): s/isupper/ft_isupper/.
      (parse_font): s/memcpy/ft_memcpy/.
      (is_dfont) [TARGET_API_MAC_CARBON]: s/memcmp/ft_memcmp/.
      * src/base/ftobjs.c (load_mac_face) [FT_MACINTOSH]:
      * src/gzip/zutil.h: s/memset/ft_memset/.
      * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdriver.c
      (PCF_Face_Init): Test for charset registry case-insensitively.
      * t1load.c (parse_blend_axis_types): Fix compiler warning.
      * descrip.mms: Removed.  Now created by...
      * vms_make.com: New file.
  10. 20 May, 2003 3 commits
    • Werner Lemberg's avatar
      · 1766aa47
      Werner Lemberg authored
      * t1load.c (parse_blend_axis_types): Fix compiler warning.
      * src/gzip/ftgzip.c (ft_gzip_file_io): Avoid zero value of `delta'
      to prevent infinite loop.
      * docs/VERSION.DLL: Provide better autoconf snippet to check
      FreeType version.
      * src/base/ftobjs.c (open_face): Free `internal' not
      `face->internal' in case of error to avoid possible segfault.
      * src/pshinter/pshalgo3.c (ps3_hints_apply): Check whether we
      actually have an outline.
    • Werner Lemberg's avatar
      · 5a95127a
      Werner Lemberg authored
      * src/pshinter/pshalgo3.c (ps3_hints_apply): Try to optimize
      y_scale so that the top of non-capital letters is aligned on a pixel
      boundary whenever possible.
      * src/autohint/ahhint.c (ah_hint_edges): Make sure that lowercase
      m's maintain their symmetry.
    • Werner Lemberg's avatar
      · ca4ed22d
      Werner Lemberg authored
      * src/autohint/ahhint.c (ah_hinter_load_glyph): Oops!  David's
      patch from yesterday has been resolved already in a different
      way.  Reverted.
  11. 19 May, 2003 3 commits
    • Werner Lemberg's avatar
      · 94ed132e
      Werner Lemberg authored
      * src/autohint/ahhint.c (ah_hinter_load_glyph): Don't scale
      y_scale locally but face->size->metrics.y_scale.
    • Werner Lemberg's avatar
      · c38306a7
      Werner Lemberg authored
      Add comment to #ifdef section in #ifndef.
    • Werner Lemberg's avatar
      · 0e6bdd96
      Werner Lemberg authored
      * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start
      value for `hi' to avoid infinite loop.
  12. 18 May, 2003 1 commit
    • Werner Lemberg's avatar
      · 9e47f219
      Werner Lemberg authored
      * src/raster/ftraster.c (Insert_Y_Turn): Fix overflow test.
      * include/freetype/config/ftoption.h [FT_CONFIG_OPTION_MAC_FONTS]:
      New macro.
      * src/base/ftobjs.c: Use it to control mac font support on non-mac
      Implement partial support of Mac fonts on non-Mac platforms.
      * src/base/ftobjs.c (memory_stream_close, new_memory_stream,
      open_face_from_buffer, Mac_Read_POST_Resource,
      Mac_Read_sfnt_Resource, IsMacResource, IsMacBinary, load_mac_face)
      [!FT_MACINTOSH]: New functions.
      (FT_Open_Face) [!FT_MACINTOSH]: Use load_mac_face.
      * src/base/ftobjs.c (FT_Load_Glyph): Scale linear advance width only
      if FT_FACE_FLAG_SCALABLE is set (otherwise we have a division by
      zero since FNT and friends don't define `face->units_per_EM').
  13. 17 May, 2003 1 commit
    • Werner Lemberg's avatar
      · 6d2bb49e
      Werner Lemberg authored
      * src/base/fttrigon.c (FT_Vector_Rotate): Avoid rounding errors
      for small values.
      * src/autohint/ahtypes.h (AH_PointRec): Remove unused `in_angle'
      and `out_angle' fields.
  14. 15 May, 2003 1 commit
    • Werner Lemberg's avatar
      · de465e40
      Werner Lemberg authored
      * src/base/ftmac.c (FT_New_Face_From_SFNT): Handle CFF files also.
      * include/freetype/freetype.h: Fix typo in comment
  15. 11 May, 2003 1 commit
    • Werner Lemberg's avatar
      * builds/unix/aclocal.m4: Comment out definition of · 8a32f50a
      Werner Lemberg authored
      `allow_undefined_flag' for Darwin 1.3.
      * builds/unix/configure.ac: Add option --with-old-mac-fonts.
      * builds/unix/ltmain.sh: Fix version numbering for Darwin 1.3.
      * builds/unix/configure: Regenerated.
      * include/freetype/config/ftconfig.h: Fix conditions for defining
      * src/base/ftbase.c: Include `ftmac.c' conditionally.
      * src/base/ftmac.c: Handle __GNUC__.
  16. 07 May, 2003 2 commits
    • Werner Lemberg's avatar
      * src/cid/cidload.c (is_alpha): Removed. · a8e38093
      Werner Lemberg authored
      (cid_parse_dict): Use `cid_parser_skip_alpha' instead of `is_alpha'.
      * src/autohint/ahoptim.c, src/autohint/ahoptim.h: Obsolete, removed.
    • Werner Lemberg's avatar
      * src/autohint/ahglyph.c (ah_setup_uv): Exchange `for' loop and · 70b09d4b
      Werner Lemberg authored
      `switch' statement to make it run faster.
      (ah_outline_compute_segments): Reset `segment->score' and
      (ah_outline_link_segments): Provide alternative code which does
      the same but runs much faster.
      Handle major direction also.
      (ah_outline_compute_edges): Scale `edge_distance_threshold' down
      after rounding instead of scaling comparison value in loop.
      * src/autohint/ahhint.c (ah_hinter_align_stong_points): Provide
      alternative code which runs faster.
      Handle `before->scale == 0'.
      * src/autohint/ahtypes.h (AH_SegmentRec): Move some fields down.
      (AH_EdgeRec): Move some fields in structure.
      New field `scale'.
      * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Use binary search.
  17. 03 May, 2003 2 commits
  18. 02 May, 2003 2 commits
  19. 29 Apr, 2003 1 commit
  20. 28 Apr, 2003 1 commit
  21. 25 Apr, 2003 2 commits
    • Graham Asher's avatar
      Added the unpatented hinting system, which is compiled only if · 4850f66c
      Graham Asher authored
      in ftoption.h
    • Werner Lemberg's avatar
      * src/bdf/bdflib.c (hash_bucket, hash_lookup): Use `const' for first · ead81ae2
      Werner Lemberg authored
      (bdf_get_font_property): Use `const' for third argument.
      Updated all callers.
      * src/bdf/bdfdrivr.c (BDF_Face_Init): Set pixel width and height
      similar to the PCF driver.
      * src/bdf/bdf.h (_hashnode): Use `const' for `key'.
      * src/gzip/ftgzip.c: C++ doesn't like that the array `inflate_mask'
      is declared twice.  It is perhaps better to modify the zlip source
      files directly instead of this hack.
      (zcalloc, zfree, ft_gzip_stream_close, ft_gzip_stream_io): Add casts
      to make build with g++ successful.
  22. 24 Apr, 2003 1 commit
  23. 23 Apr, 2003 4 commits
    • Werner Lemberg's avatar
      Fixing bugs reported by Nelson Beebe. · c23ce7db
      Werner Lemberg authored
      * src/base/ftstroker.c (FT_Stroker_ParseOutline): Remove unused
      variable `in_path'.
      * src/base/ftobjs (ft_glyphslot_set_bitmap): Change type of
      second argument to `FT_Byte*'.
      * include/freetype/internal/ftobjs.h: Updated.
      * src/bdf/bdflib.c (_bdf_readstream): Remove unused variable `res'.
      (_bdf_parse_glyphs): Remove unused variable `next'.
      Mark `call_data' as unused.
      * src/cache/ftlru.c (FT_LruList_Lookup): Remove unused variable
      * src/pcf/pcfread.c (pcf_seek_to_table_type): Slight recoding to
      actually use `error'.
      (pcf_load_font): Remove unused variable `avgw'.
      * src/pfr/pfrobjs.c (pfr_face_get_kerning): Change return type
      to `void'.
      Mark `error' as unused.
      * src/pfr/pfrobjs.h: Updated.
      * src/pfr/pfrdrivr.c (pfr_get_kerning): Updated.
      * src/sfnt/ttload.c (sfnt_dir_check): Remove unused variable
      * src/sfnt/ttcmap0.c (tt_cmap6_validate, tt_cmap10_validate): Remove
      unused variable `start'.
      (tt_cmap10_char_next): Remove unused variable `result'
      * src/sfnt/sfobjs.c (tt_face_get_name): Mark `error' as unused.
      * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Mark `error' as
      * src/type1/t1objs.c (T1_Face_Init): Remove unused variable
      * src/type1/t1gload.c (T1_Load_Glyph): Use `glyph_data_loaded'
    • Werner Lemberg's avatar
      * src/sfnt/ttcmap0.c (tt_cmap4_validate): Provide a weak variant · 15dd049a
      Werner Lemberg authored
      of the glyph ID bounding check if FT_VALIDATE_TIGHT is not active.
      Without this change, many CJK fonts from Dynalab are rejected.
    • Werner Lemberg's avatar
      * src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid · dae373bc
      Werner Lemberg authored
    • Werner Lemberg's avatar