1. 17 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · e847caa3
      Werner Lemberg authored
      * include/freetype/ftglyph.h (ft_glyph_bbox_unscaled,
      ft_glyph_bbox_subpixels, ft_glyph_bbox_gridfit,
      ft_glyph_bbox_truncate, ft_glyph_bbox_pixels): Replaced with
      FT_GLYPH_BBOX_UNSCALED, FT_GLYPH_BBOX_SUBPIXELS,
      FT_GLYPH_BBIX_GRIDFIT, FT_GLYPH_BBOX_TRUNCATE, FT_GLYPH_BBOX_PIXELS.
      The lowercase variants are now (deprecated aliases) to the uppercase
      versions.
      Updated all other files.
      
      * include/freetype/ftmodule.h (ft_module_font_driver,
      ft_module_renderer, ft_module_hinter, ft_module_styler,
      ft_module_driver_scalable, ft_module_driver_no_outlines,
      ft_module_driver_has_hinter): Replaced with FT_MODULE_FONT_DRIVER,
      FT_MODULE_RENDERER, FT_MODULE_HINTER, FT_MODULE_STYLER,
      FT_MODULE_DRIVER_SCALABLE, FT_MODULE_DRIVER_NO_OUTLINES,
      FT_MODULE_DRIVER_HAS_HINTER.
      The lowercase variants are now (deprecated aliases) to the uppercase
      versions.
      Updated all other files.
      
      * src/base/ftglyph.c (FT_Glyph_Get_CBox): Handle bbox_mode better
      as enumeration.
      
      * src/pcf/pcfdrivr.c (pcf_driver_class), src/winfonts/winfnt.c
      (winfnt_driver_class), src/bdf/bdfdrivr.c (bdf_driver_class): Add
      the FT_MODULE_DRIVER_NO_OUTLINES flag.
      e847caa3
  2. 14 Jun, 2003 2 commits
    • Werner Lemberg's avatar
      · 09752876
      Werner Lemberg authored
      Minor documentation typos.
      09752876
    • Werner Lemberg's avatar
      · 29f8e355
      Werner Lemberg authored
      * src/pfr/pfrobjs.c (pfr_slot_load): Apply font matrix.
      
      * src/cid/cidload.c: Remove parse_font_bbox code (already enclosed
      with #if 0 ... #endif).
      
      * src/type1/t1tokens.h: Handle /FontName.
      * src/type1/t1load.c (parse_font_name): Removed.
      Remove parse_font_bbox code (already enclosed with #if 0 ...
      #endif).
      
      * src/type42/t42parse.c (t42_parse_font_name): Removed.
      Remove t42_parse_font_bbox code (already enclosed with #if 0 ...
      #endif).
      (t42_keywords): Handle /FontName with T1_FIELD_KEY.
      29f8e355
  3. 13 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 142d6f35
      Werner Lemberg authored
      * builds/dos/detect.mk: Test not only for `Dos' but for `DOS' also.
      
      * builds/dos/dos-emx.mk, builds/compiler/emx.mk: New files for
      EMX gcc compiler.
      * builds/dos/detect.mk: Add target `emx'.
      
      * builds/compiler/watcom.mk (LINK_LIBRARY): GNU Make for DOS doesn't
      like a trailing semicolon; add a dummy command.
      142d6f35
  4. 12 Jun, 2003 3 commits
    • Werner Lemberg's avatar
      · 8934eb01
      Werner Lemberg authored
      * include/freetype/internal/psaux.h (T1_FieldType): Add
      T1_FIELD_TYPE_KEY.
      (T1_FIELD_KEY): New macro.
      * src/psaux/psobjs.c (ps_parser_load_field): Handle
      T1_FIELD_TYPE_KEY.
      
      * src/cid/cidtoken.h: Use T1_FIELD_KEY for /CIDFontName.
      
      
      * src/cache/ftlru.c (FT_LruList_Remove_Selection): Decrease
      number of nodes.
      (FT_LruList_Lookup): Fix assertion for out-of-memory case.
      8934eb01
    • Werner Lemberg's avatar
      · 3064272c
      Werner Lemberg authored
      * src/cid/cidload.c (cid_decrypt): Removed.
      (cid_read_subrs): Use t1_decrypt from psaux module.
      * src/cid/cidload.h: Updated.
      * src/cid/cidgload.c (cid_load_glyph): Use t1_decrypt from psaux
      module.
      3064272c
    • Werner Lemberg's avatar
      · e398340d
      Werner Lemberg authored
      * src/cid/cidobjs.c: Apply change 2003-05-31 from <Ron.Dev@gmx.de>.
      Compute style flags.
      Fix computation of root->height.
      * src/cid/cidtoken.h: Handle FontBBox.
      * src/cid/cidload.c (cid_load_keyword): Handle
      T1_FIELD_LOCATION_BBOX.
      (parse_font_bbox): Commented out.
      (cid_field_record): Comment out element for parsing FontBBox.
      
      * src/type42/t42parse.c (t42_parse_font_bbox): Commented out.
      (t42_keywords): Handle FontBBox with T1_FIELD_BBOX, not with
      T1_FIELD_CALLBACK.
      (t42_parse_font_bbox): Commented out.
      (t42_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
      * src/type42/t42objs.c (T42_Face_Init): Apply change 2003-05-31
      from <Ron.Dev@gmx.de>.
      e398340d
  5. 10 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · edb31ca7
      Werner Lemberg authored
      * src/truetype/ttinterp.c (SetSuperRound) <0x30>: Follow Apple's
      TrueType specification.
      (Ins_MDRP, Ins_MIRP): Fix single width cut-in test.
      edb31ca7
  6. 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
      NO_INFLATE_MASK.
      4e9526d6
    • Werner Lemberg's avatar
      · 02b2fa64
      Werner Lemberg authored
      * src/gzip/ftgzip.c (ft_gzip_file_fill_output): Handle Z_STREAM_END
      correctly.
      
      * 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
      problems.
      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.
      02b2fa64
    • 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
      <ali@avrc.city.ac.uk>.
      * 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.
      0f19a8b5
  7. 08 Jun, 2003 1 commit
  8. 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.
      a2a1a66d
    • 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:
      Updated.
      
      * 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.
      63ce99a0
  9. 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__)'.
      1f6cbfd6
    • 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
      blue_scale.
      31d783b1
  10. 05 Jun, 2003 2 commits
    • Werner Lemberg's avatar
      · 3c63bf28
      Werner Lemberg authored
      * include/freetype/internal/ftdriver.h,
      include/freetype/internal/ftobjs.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.
      3c63bf28
    • 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.
      0dbd2658
  11. 04 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 124d3334
      Werner Lemberg authored
      * src/truetype/ttgload.c (load_truetype_glyph)
      [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Call
      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
      TT_CONFIG_OPTION_BYTECODE_INTERPRETER,
      TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING, and
      TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING to make it the new
      default.
      124d3334
  12. 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.
      1c524796
    • 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.
      Unused.
      
      * 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.
      375da610
  13. 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
      encoding).
      
      * 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.
      7df5ed77
    • Werner Lemberg's avatar
      · 34700b54
      Werner Lemberg authored
      * src/winfonts/winfnt.c (FNT_Load_Glyph): Revert change from
      2003-03-20.
      34700b54
  14. 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.
      802be207
  15. 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_TYPE_BOOL_P, T1_FIELD_TYPE_INTEGER_P, and
      T1_FIELD_TYPE_FIXED_P.
      (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
      pointers.
      * 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.
      Formatting.
      e7d4fea8
  16. 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.
      s/PSH3/PSH/.
      s/psh3/psh/.
      s/ps3/ps/.
      
      * 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
      out.
      
      * tests/gview.c: Remove code for pshalgo1 and pshalgo2.
      Updated.
      9484a94d
    • 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.
      134fecab
    • Werner Lemberg's avatar
      · de1b6e14
      Werner Lemberg authored
      * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Activate code for
      handling `origin'.
      de1b6e14
    • 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.
      71d5b74f
  17. 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
      if-clause.
      834dd305
    • 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]:
      s/strlen/ft_strlen/.
      s/strcat/ft_strcat/.
      s/strcpy/ft_strcpy/.
      * src/gzip/zutil.h: s/memset/ft_memset/.
      s/memcmp/ft_memcmp/.
      
      * 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.
      22d661dd
  18. 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.
      1766aa47
    • 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.
      5a95127a
    • 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.
      ca4ed22d
  19. 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.
      94ed132e
    • Werner Lemberg's avatar
      · c38306a7
      Werner Lemberg authored
      Add comment to #ifdef section in #ifndef.
      c38306a7
    • 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.
      0e6bdd96
  20. 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
      platforms.
      
      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').
      9e47f219
  21. 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.
      6d2bb49e
  22. 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
      (FT_HAS_FIXED_SIZES).
      de465e40