1. 09 Jun, 2003 3 commits
    • Werner Lemberg's avatar
      · 4e9526d6
      Werner Lemberg authored
      * src/gzip/ftgzip.c: (inflate_mask): Replaced with...
      (NO_INFLATE_MASK): This.
      * src/gzip/infutil.h: Declare `inflate_mask' conditionally by
    • Werner Lemberg's avatar
      · 02b2fa64
      Werner Lemberg authored
      * src/gzip/ftgzip.c (ft_gzip_file_fill_output): Handle Z_STREAM_END
      * src/pshinter/pshglob.c (psh_globals_new): Change calculation of
      dim->stdw.count to avoid compiler problem.
      * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Move the block
      variables to the beginning of the function to avoid compiler
      Add casts necessary for 16bit compilers.
      * src/pfr/rules.mk (PFR_DRV_SRC): Add pfrsbit.c.
      (PFR_DRV_H): Add pfrtypes.h.
      * include/freetype/config/ftconfig.h: s/__MWKS__/__MWERKS__/.
      * src/pfr/pfrsbit.c (pfr_bitwriter_init): Change type of third
      argument to FT_Bool.
      (pfr_lookup_bitmap_data): Change type of third and fourth argument
      to FT_UInt.  Updated caller.
      (pfr_load_bitmap_bits): Change type of fourth argument to FT_Bool.
    • Werner Lemberg's avatar
      · 0f19a8b5
      Werner Lemberg authored
      Completely revised FreeType's make management.
      . In all makefiles `/' is used as the path separator.  The
        conversion to the real path separators is done as late as
        possible using $(subst ...).
      . $(HOSTSEP) no longer exists.  Now, $(SEP) gives the path separator
        for the operating system, and the new $(COMPILER_SEP) the path
        separator for the compiler tools.
      . $(BUILD) has been renamed to $(BUILD_DIR).  In general, all
        directory variables end with `_DIR'.  The variants ending in `_'
        (like `BASE_' have been removed).
      The following ChangeLog entries only describe changes which are
      not related to the redesign.
      * builds/beos/beos-def.mk (BUILD_DIR): Fix typo.
      * builds/compiler/watcom.mk (LINK_LIBRARY): Fix linker call to avoid
      overlong arguments as suggested by J. Ali Harlow
      * builds/dos/dos-wat.mk: New file.
      * builds/freetype.mk (FREETYPE_H): Include header files from the
      `devel' subdirectory.
      * builds/os2/os2-dev.mk, builds/unix/unixddef.mk,
      builds/unix/unixddef.mk, builds/win32/w32-bccd.mk,
      builds/win32/w32-dev.mk (BUILD_DIR): Fix path.
      * builds/unix/configure.ac, builds/unic/configure: Updated.
      * builds/unix/unix-def.in (DISTCLEAN): Add `freetype2.pc'.
      * devel/ftoption.h: Updated.
  2. 08 Jun, 2003 1 commit
  3. 07 Jun, 2003 2 commits
    • Werner Lemberg's avatar
      · a2a1a66d
      Werner Lemberg authored
      * src/base/ftmac.c (FT_New_Face_From_SFNT): s/rlen/sfnt_size/ to
      make it compile.
      * include/freetype/internal/psaux.h, src/truetype/ttgload.h:
      s/index/idx/ to fix compiler warnings.
      * src/sfnt/ttcmap0.c (tt_face_build_cmaps): Use more `volatile' to
      fix compiler warning.
      * src/gzip/ftgzip.c (BUILDFIXED): Removed.
      * src/gzip/inftrees.c (inflate_trees_fixed) [!BUILDFIXED]: Use
      FT_UNUSED to remove compiler warning.
    • Werner Lemberg's avatar
      · 63ce99a0
      Werner Lemberg authored
      * include/freetype/ftstroker.h: Renamed to...
      * include/freetype/ftstroke.h: This.
      * src/base/ftstroker.c: Renamed to...
      * src/base/ftstroke.c: This.
      * include/freetype/config/ftheader.h (FT_STROKER_H): Updated.
      * src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk:
      * src/pcf/pcfdriver.c: Renamed to...
      * src/pcf/pcfdrivr.c: This.
      * src/pcf/pcfdriver.h: Renamed to...
      * src/pcf/pcfdrivr.h: This.
      * src/pcf/Jamfile, src/pcf/rules.mk: Updated.
  4. 06 Jun, 2003 2 commits
    • Werner Lemberg's avatar
      · 1f6cbfd6
      Werner Lemberg authored
      * src/base/ftmac.c (file_spec_from_path) [TARGET_API_MAC_CARBON]:
      Add `#if !defined(__MWERKS__)'.
    • 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
  5. 05 Jun, 2003 2 commits
    • 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.
    • Werner Lemberg's avatar
      · 0dbd2658
      Werner Lemberg authored
      * include/freetype/config/ftoption.h: Defining
      TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING by default is a bad idea
      since some fonts (e.g. Arial) produce worse results than without
      hinting.  Reverted.
  6. 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
  7. 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.
  8. 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
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. 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').
  16. 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.
  17. 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
  18. 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__.
  19. 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.
  20. 03 May, 2003 2 commits
  21. 02 May, 2003 2 commits
  22. 29 Apr, 2003 1 commit