1. 06 May, 2004 1 commit
  2. 03 May, 2004 1 commit
  3. 05 Apr, 2004 7 commits
  4. 06 Mar, 2004 1 commit
  5. 05 Mar, 2004 4 commits
    • Werner Lemberg's avatar
      *** empty log message *** · 79edf077
      Werner Lemberg authored
    • Werner Lemberg's avatar
      LZW support · 39c55c2f
      Werner Lemberg authored
    • Werner Lemberg's avatar
      Initial revision · d464139d
      Werner Lemberg authored
    • Werner Lemberg's avatar
      · 7110f214
      Werner Lemberg authored
      * Jamfile, vms_make.com, builds/win32/visualc/freetype.dsp,
      builds/win32/visualc/freetype/vcproj, include/freetype/ftmoderr.h:
      Add LZW module.
      * Jamfile.in: Removed.
      * docs/CHANGES: Updated.
      * include/freetype/internal/ftobjs.h: s/MIN/FT_MIN/, s/MAX/FT_MAX/,
      s/ABS/FT_ABS/.  Updated all callers.
      * src/type1/t1load.c (parse_dict), src/pcf/pcfdrivr.c
      (PCF_Face_Init): Use FT_ERROR_BASE.
      Add support for PCF fonts compressed with LZW (extension .pcf.Z,
      created with `compress').
      * include/freetype/config/ftoption.h, devel/ftoption.h
      (FT_CONFIG_OPTION_USE_LZW): New macro.
      * include/freetype/ftlzw.h: New file.
      * include/freetype/config/ftheader.h (FT_LZW_H): New macro for
      * src/lzw/*: New files.
      * src/pcf/pcfdrivr.c: Include FT_LZW_H.
      (PCF_Face_Init): Try LZW also.
      * src/gzip/ftgzip.c: s/0/Gzip_Err_Ok/ where appropriate.
  6. 03 Mar, 2004 2 commits
    • Werner Lemberg's avatar
      · f5c26739
      Werner Lemberg authored
      * src/pshinter/pshalgo.c (psh_hint_table_init): Simplify code.
    • Werner Lemberg's avatar
      · 92831e3d
      Werner Lemberg authored
      Add embedded bitmap support to CFF driver.
      * src/cff/cffobjs.h (CFF_SizeRec): New structure.
      * src/cff/cffgload.c (cff_builder_init): Updated.
      (cff_slot_load): Updated.
      * src/cff/cffobjs.c (sbit_size_reset)
      (cff_size_get_globals_funcs, cff_size_done, cff_size_init): Updated.
      (cff_size_reset): Updated.
      [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Call sbit_size_reset.
      * src/cff/cffdrivr.c (Load_Glyph): Updated.
      (cff_driver_class): Use CFF_SizeRec.
      * docs/CHANGES: Updated.
  7. 02 Mar, 2004 1 commit
    • Werner Lemberg's avatar
      · bbca5932
      Werner Lemberg authored
      * src/pshinter/pshglob.c (psh_globals_scale_widths): Don't use
      FT_RoundFix but FT_PIX_ROUND.
      (psh_blues_snap_stem): Don't use blue_shift but blue_threshold.
      *src/pshinter/pshalgo.c (PSH_STRONG_THRESHOLD_MAXIMUM): New macro.
      (psh_glyph_find_string_points): Use PSH_STRONG_THRESHOLD_MAXIMUM.
      (psh_glyph_find_blue_points): New function.  Needed for fonts like
      p052003l.pfb (URW Palladio L Roman) which have flex curves at the
      base line within blue zones, but the flex curves aren't covered by
      (ps_hints_apply): Use psh_glyph_find_blue_points.
  8. 28 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · 62d8db05
      Werner Lemberg authored
      * builds/unix/configure.ac: Fix compiler flags for
      * builds/unix/configure: Regenerated.
      * src/base/ftmac.c: s/TARGET_API_MAC_CARBON/!TARGET_API_MAC_OS8/.
      (FT_New_Face_From_Resource): New function.
      (FT_New_Face): Use FT_New_Face_From_Resource.
      (FT_New_Face_From_FSSpec): Use FT_New_Face_From_Resource.
      [__MWERKS__]: Don't include FSp_fopen.h.
  9. 27 Feb, 2004 2 commits
    • Werner Lemberg's avatar
      *** empty log message *** · a5e9f1d9
      Werner Lemberg authored
    • Werner Lemberg's avatar
      · 21d8ccb1
      Werner Lemberg authored
      * src/pshinter/pshglob.c (psh_globals_new): Fix value of
      Don't assign default values to blue scale and blue shift.
  10. 26 Feb, 2004 2 commits
    • Werner Lemberg's avatar
      · bdeff4ba
      Werner Lemberg authored
      * docs/CHANGES: Updated.
      Improve MacOS fond support.  Provide a new API
      `FT_New_Face_From_FSSpec' similar to `FT_New_Face'.
      * src/base/ftmac.c [__MWERKS__]: Include FSp_fpopen.h.
      STREAM_FILE [__MWERKS__]: New macro.
      (ft_FSp_stream_close, ft_FSp_stream_io) [__MWERKS__]: New functions.
      (file_spec_from_path) [__MWERKS__]: Updated #if statement.
      (get_file_type, make_lwfn_spec): Use `const' for argument.
      (is_dfont) [TARGET_API_MAC_CARBON]: Removed.
      (count_face_sfnt, count_faces): New functions.
      (parse_fond): Do some range checking.
      (read_lwfn): Change type of second argument.
      No longer call FSpOpenResFile.
      (OpenFileAsResource): New function.
      (FT_New_Face_From_LWFN): Use `const' for second argument.
      Use OpenFileAsResource.
      (FT_New_Face_From_Suitcase): Change type of second argument.
      No longer call FSpOpenResFile.
      Loop over all resource indices.
      (FT_New_Face_From_dfont) [TARGET_API_MAC_CARBON]: Removed.
      (FT_GetFile_From_Mac_Name): Use `const' for first argument.
      (ResourceForkSize): Removed.
      (FT_New_Face): Updated to use new functions.
      (FT_New_Face_From_FSSpec): New function.
      * include/freetype/ftmac.h: Updated.
    • Werner Lemberg's avatar
      · 11392317
      Werner Lemberg authored
      * src/autohint/ahhint.c (ah_hinter_load) <FT_GLYPH_FORMAT_OUTLINE>:
      Handle case where outline->num_vedges is zero while computing hinted
      * src/cff/cffcmap.c (cff_cmap_unicode_init): Provide correct value
      for `count'.
  11. 25 Feb, 2004 2 commits
    • Werner Lemberg's avatar
      · f85a2c39
      Werner Lemberg authored
      * include/freetype/t1tables.h (PS_PrivateRec): Add
      * src/pshinter/pshglob (psh_blues_scale_zones): Fix computation
      of blues->no_overshoots -- `blues_scale' is stored with a
      magnification of 1000, and `scale' returns fractional pixels.
      * src/type1/t1load.c (T1_Open_Face): Initialize `blue_shift',
      `blue_fuzz', `expansion_factor', and `blue_scale' according to the
      Type 1 specification.
      * src/type1/t1tokens.h: Handle `ExpansionFactor'.
      * docs/CHANGES: Updated.
    • Werner Lemberg's avatar
      · 67dcd4bc
      Werner Lemberg authored
      Provide generic access to MacOS resource forks.
      * src/base/ftrfork.c, include/freetype/internal/ftrfork.h: New
      * src/base/ftobjs.c: Include FT_INTERNAL_RFORK_H.
      (Mac_Read_POST_Resource, Mac_Read_sfnt_Resource): Remove arguments
      `resource_listoffset' and `resource_data' and adapt code
      accordingly.  These values are calculated outside of the function
      Add new argument `offsets'.
      (IsMacResource): Use `FT_Raccess_Get_HeaderInfo' and
      (load_face_in_embedded_rfork): New function.
      (load_mac_face): Use load_face_in_embedded_rfork.
      (ft_input_stream_new): Renamed to...
      (FT_Stream_New): This.  Use FT_BASE_DEF.  Updated all callers.
      (ft_input_stream_free): Renamed to...
      (FT_Stream_Free): This.  Use FT_BASE_DEF.  Updated all callers.
      * src/base/ftbase.c: Include ftrfork.c.
      * src/base/rules.mk (BASE_SRC), src/base/Jamfile: Updated.
      * include/freetype/internal/internal.h (FT_INTERNAL_RFORK_H):
      New macro.
      * include/freetype/internal/fttrace.h: Added `rfork' as a new
      trace definition.
      * include/freetype/internal/ftstream.h: Declare FT_Stream_New and
      * include/freetype/config/ftoption.h, devel/ftoption.h
      * include/freetype/config/ftstdlib.h (ft_strrchr): New macro.
  12. 24 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · b35d6d69
      Werner Lemberg authored
      * docs/CHANGES: Updated.
      * include/freetype/internal/ftdebug.h: Include FT_FREETYPE_H.
      Provide a simple API to control FreeType's tracing levels.
      * include/freetype/internal/ftdebug.h (FT_Trace_Get_Count,
      FT_Trace_Get_Name): New declarations.
      * src/base/ftdebug.c (FT_Trace_Get_Count, FT_Trace_Get_Name): New
  13. 23 Feb, 2004 3 commits
  14. 21 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · a6498eff
      Werner Lemberg authored
      * src/pshinter/pshrec.c (ps_mask_table_set_bits): Don't call
      ps_mask_table_alloc but ps_mask_table_last.
      (ps_hints_t2mask): Use correct position and number for vertical
      and horizontal hinter mask bits.
      * docs/CHANGES: Updated.
  15. 20 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · 14671816
      Werner Lemberg authored
      * src/base/ftstroke.c (FT_Glyph_StrokeBorder): Fix enum handling.
      * src/cff/cffdrivr.c (cff_get_cmap_info): Remove compiler warning.
  16. 19 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · 55b639b8
      Werner Lemberg authored
      * include/freetype/freetype.h: Document FT_LOAD_TARGET_XXX properly.
      * src/base/ftglyph.c (ft_bitmap_glyph_class,
      ft_outline_glyph_class): Tag with FT_CALLBACK_TABLE_DEF.
      * src/smooth/ftsmooth.c (ft_smooth_render): Handle
  17. 17 Feb, 2004 2 commits
    • Werner Lemberg's avatar
      · 037bbe66
      Werner Lemberg authored
      Fix callback functions in cache module.
      * src/cache/ftccback.h: New file for callback declarations.
      * src/cache/ftcbasic.c (ftc_basic_family_compare,
      ftc_basic_family_init, ftc_basic_family_get_count,
      ftc_basic_family_load_bitmap, ftc_basic_family_load_glyph,
      ftc_basic_gnode_compare_faceid): Use FT_CALLBACK_DEF.
      (ftc_basic_image_family_class, ftc_basic_image_cache_class,
      ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class):
      Use FT_CALLBACK_TABLE_DEF and local wrapper functions.
      * src/cache/ftccache.c: Include ftccback.h.
      (ftc_cache_init, ftc_cache_done): New wrapper functions which use
      * src/cache/ftccmap.c: Include ftccback.h.
      (ftc_cmap_cache_class): Use local wrapper functions.
      * src/cache/ftcglyph.c: Include ftccback.h.
      (ftc_gnode_compare, ftc_gcache_init, ftc_gcache_done): New wrapper
      functions which use FT_LOCAL_DEF.
      * src/cache/ftcimage.c: Include ftccback.h.
      (ftc_inode_free, ftc_inode_new, ftc_inode_weight): New wrapper
      functions which use FT_LOCAL_DEF.
      * src/cache/ftcmanag.c (ftc_size_list_class, ftc_face_list_class):
      * src/cache;/ftcsbits.c: Include ftccback.h.
      (ftc_snode_free, ftc_snode_new, ftc_snode_weight,
      ftc_snode_compare): New wrapper functions which use FT_LOCAL_DEF.
      * src/cache/rules.mk (CACHE_DRV_H): Add ftccback.h.
    • Werner Lemberg's avatar
      · b4dfab0d
      Werner Lemberg authored
      * include/freetype/ftmac.h (FT_GetFile_From_Mac_Name): Fix a typo
      * include/freetype/ftxf86.h (FT_Get_X11_Font_Format): Ditto.
  18. 16 Feb, 2004 2 commits
    • Werner Lemberg's avatar
      · 33fef092
      Werner Lemberg authored
      * src/base/ftobjs.c (FT_Set_Char_Size): Fix typo.
    • Werner Lemberg's avatar
      · 0aa11f20
      Werner Lemberg authored
      * builds/unix/ftsystem.c: Include errno.h.
      (ft_close_stream): Renamed to...
      (ft_close_stream_by_munmap): This.
      (ft_close_stream_by_free): New function.
      (FT_Stream_Open): Use fallback method if mmap fails.
      Use proper function for closing the stream.
      * src/type1/t1load.c (parse_dict): Initialize `start_binary'.
  19. 14 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · 4e3d2f8c
      Werner Lemberg authored
      * src/type42/t42objs.c (T42_Face_Init), src/type1/t1objs.c
      (T1_Face_Init), src/cid/cidobjs.c (cid_face_init): Fix computation
      of underline_position and underline_thickness.
  20. 13 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · 0be012db
      Werner Lemberg authored
      * src/base/ftobjs.c (FT_Set_Char_Size): Return immediately if
      ppem values don't change.  Suggested by Graham Asher.
  21. 12 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · a9ad67bb
      Werner Lemberg authored
      * src/cid/cidload.c (cid_face_open): Always allocate
      face->cid_stream so that we can deallocate it safely.
      Make the PS parser more tolerant w.r.t. non-standard font data.  In
      general, an error is only reported in case of a syntax error; a
      wrong type is now simply ignored (if possible).  To be independent
      of the order of various MM-specific keywords, the parse_shared_dict
      routine has been removed -- the PS parser is now capable to skip
      this data.  It no longer fails on parsing e.g.
        dup /WeightVector exch def
      Since the token following /WeightVector isn't `[' (starting an
      array) it is simply ignored.
      * include/freetype/fterrdef.h: Define `FT_Err_Ignore' (0xA2) as a
      new internal error value.
      * src/type1/t1load.c (parse_blend_axis_types,
      parse_blend_design_positions, parse_blend_design_map): Return
      T1_Err_Ignore if no proper array is following the keyword.
      (parse_weight_vector): Use T1_ToTokenArray, initializing `blend'
      structure, if necessary.
      Return T1_Err_Ignore if no proper array is following the keyword.
      (parse_shared_dict): Removed.
      (parse_encoding): Set parser->root.error to return T1_Err_Ignore
      if no result can be obtained.
      Check for errors before accessing `elements' array.
      (t1_keywords): Remove /shareddict.
      (parse_dict): Reset error if t1_load_keyword returns T1_Err_Ignore.
      Set keyword_flag only in case of success.
      Check error code if skipping an unrecognized token.
      (T1_Open_Face) [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: Call T1_Done_Blend
      if blend commands haven't set up a proper MM font.
      * src/psaux/psobjs.c (ps_parser_load_field_table): Remove special
      code for synthetic fonts.
      Return PSaux_Err_Ignore if no proper value has been found.
  22. 10 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · 6ec7ba8a
      Werner Lemberg authored
      * src/cff/cffgload.c (cff_decoder_parse_charstrings)
      <cff_op_endchar>: Preserve glyph width before calling
      * src/cff/cffgload.c (cff_decoder_parse_charstrings): Handle special
      first argument for `hintmask' and `cntrmask' operators also.
  23. 08 Feb, 2004 1 commit
    • Werner Lemberg's avatar
      · d59c9330
      Werner Lemberg authored
      * builds/unix/configure.in: Call AC_SUBST for `enable_shared',
      `hardcode_libdir_flag_spec', and `wl'.
      * builds/unix/configure: Regenerated.
      * builds/unix/freetype-config.in: Make --prefix and --exec-prefix
      actually work.
      Report a proper --rpath (or -R) value for --libs argument if a
      shared library has been built.
      * docs/CHANGES: Updated.