1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
      `FT_MACINTOSH'.
      * src/base/ftbase.c: Include `ftmac.c' conditionally.
      * src/base/ftmac.c: Handle __GNUC__.
      8a32f50a
  10. 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.
      a8e38093
    • 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
      `segment->link'.
      (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.
      70b09d4b
  11. 03 May, 2003 2 commits
  12. 02 May, 2003 2 commits
  13. 29 Apr, 2003 1 commit
  14. 28 Apr, 2003 2 commits
  15. 25 Apr, 2003 7 commits
  16. 24 Apr, 2003 3 commits
  17. 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
      `plast'.
      
      * 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
      `format_tag'.
      
      * 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
      unused.
      
      * src/type1/t1objs.c (T1_Face_Init): Remove unused variable
      `pshinter'.
      
      * src/type1/t1gload.c (T1_Load_Glyph): Use `glyph_data_loaded'
      only for FT_CONFIG_OPTION_INCREMENTAL.
      c23ce7db
    • 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.
      15dd049a
    • Werner Lemberg's avatar
      * src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid · dae373bc
      Werner Lemberg authored
      `get_interface'.
      dae373bc
    • Werner Lemberg's avatar