1. 17 Aug, 2003 1 commit
    • David Turner's avatar
      * include/freetype/config/ftoption.h, devel/ftoption.h, · 7ea3d3e3
      David Turner authored
              include/freetype/internal/ftobjs.h, include/freetype/internal/tttypes.h,
              src/truetype/ttinterp.c, src/truetype/ttobjs.c, src/truetype/ttobjs.h:
      
              changed the name of TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING to
              the simpler TT_CONFIG_OPTION_UNPATENTED_HINTING
      
              removed the macro TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING. Instead,
              the same effect can be used by setting a debug-hook with
              FT_DEBUG_HOOK_UNPATENTED_HINTING globally with FT_Set_Debug_Hook()
      7ea3d3e3
  2. 23 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 1d5cb2c4
      Werner Lemberg authored
      * src/tools/glnames.py: Updated to AGL 2.0.
      * src/psnames/pstables.h: Regenerated.
      
      
      * include/freetype/cache/ftcglyph.h, include/freetype/ttnameid.h,
      src/base/ftcalc.c, src/base/fttrigon.c, src/cff/cffgload.c,
      src/otlayout/otlgsub.c, src/pshinter/pshrec.c,
      src/psnames/psmodule.c, src/sfnt/sfobjs.c, src/truetype/ttdriver.c:
      Decorate constants with `U' and `L' if appropriate.
      
      * include/freetype/ftmoderr.h: Updated to include recent module
      additions.
      
      * src/pshinter/pshnterr.h (FT_ERR_BASE): Define as
      `FT_Mod_Err_PShinter'.
      * src/type42/t42error.h (FT_ERR_BASE): Define as
      `FT_Mod_Err_Type42'.
      
      * src/pshinter/pshrec.h (PS_HINTS_MAGIC): Removed.  Not used.
      
      
      * include/freetype/config/ftconfig.h [__MWERKS__]: Define FT_LONG64
      and FT_INT64.
      1d5cb2c4
  3. 22 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 949bca55
      Werner Lemberg authored
      * src/winfonts/winfnt.c (FNT_Load_Glyph): Use first_char in
      computation of glyph_index.
      (FNT_Size_Set_Pixels): To find a strike, first check pixel_height
      only, then try to find a better hit by comparing pixel_width also.
      Without this fix it isn't possible to access all strikes.
      Also compute metrics.max_advance to be in sync with other bitmap
      drivers.
      
      * src/base/ftobjs.c (FT_Set_Char_Size): Remove redundant code.
      (FT_Set_Pixel_Size): Assign value to `metrics' after validation of
      arguments.
      
      
      Synchronize computation of height and width for bitmap strikes.  The
      `width' field in the FT_Bitmap_Size structure is now only useful to
      enumerate different strikes.  The `max_advance' field of the
      FT_Size_Metrics structure should be used to get the (maximum) width
      of a strike.
      
      * src/bdf/bdfdrivr.c (BDF_Face_Init): Don't use AVERAGE_WIDTH for
      computing `available_sizes->width' but make it always equal to
      `available_sizes->height'.
      
      * src/pcf/pcfread.c (pcf_load_font): Don't use RESOLUTION_X for
      computing `available_sizes->width' but make it always equal to
      `available_sizes->height'.
      
      * src/truetype/ttdriver.c (Set_Pixel_Sizes): Pass only single
      argument to function.
      
      * src/psnames/psmodule.c (ps_unicode_value): Handle `.' after
      `uniXXXX' and `uXXXX[X[X]]'.
      
      
      * src/bdf/bdfdrivr.c: s/FT_Err_/BDF_Err/.
      * src/cache/ftccache.c, src/cache/ftcsbits.c, src/cache/ftlru.c:
      s/FT_Err_/FTC_Err_/.
      * src/cff/cffcmap.c: s/FT_Err_/CFF_Err_/.
      * src/pcf/pcfdrivr.c: s/FT_Err_/PCF_Err_/.
      * src/psaux/t1cmap.c: Include psauxerr.h.
      s/FT_Err_/PSaux_Err_/.
      * src/pshinter/pshnterr.h: New file.
      * src/pshinter/rules.mk: Updated.
      * src/pshinter/pshalgo.c, src/pshinter/pshrec.c: Include pshnterr.h.
      s/FT_Err_/PSH_Err_/.
      * src/pfr/pfrdrivr.c, src/pfr/pfrobjs.c, src/pfr/pfrsbit.c:
      s/FT_Err_/PFR_Err_/.
      * src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
      src/sfnt/ttload.c: s/FT_Err_/SFNT_Err_/.
      * src/truetype/ttgload.c: s/FT_Err_/TT_Err_/.
      * src/gzip/ftgzip.c: Load FT_MODULE_ERRORS_H and define
      FT_ERR_PREFIX and FT_ERR_BASE.
      s/FT_Err_/Gzip_Err_/.
      949bca55
  4. 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
  5. 14 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 09752876
      Werner Lemberg authored
      Minor documentation typos.
      09752876
  6. 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
  7. 09 Jun, 2003 2 commits
    • 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
  8. 07 Jun, 2003 1 commit
    • 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
  9. 05 Jun, 2003 1 commit
    • 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
  10. 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
  11. 03 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 1c524796
      Werner Lemberg authored
      * src/truetype/ttinterp.c (Free_Project, CUR_Func_freeProj):
      Removed.  Unused.
      Updated all callers.
      1c524796
  12. 21 May, 2003 1 commit
    • 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
  13. 29 Apr, 2003 1 commit
  14. 25 Apr, 2003 1 commit
  15. 23 Apr, 2003 1 commit
  16. 15 Mar, 2003 1 commit
  17. 14 Mar, 2003 1 commit
  18. 13 Mar, 2003 1 commit
    • David Turner's avatar
      * src/base/ftdbgmem.c, docs/DEBUG.TXT: added new environment variables · ad1ceca2
      David Turner authored
          to control memory debugging with FreeType. See the description of
          "FT2_DEBUG_MEMORY", "FT2_ALLOC_TOTAL_MAX" and "FT2_ALLOC_COUNT_MAX"
          in DEBUG.TXT
      
          * src/cache/ftccache.c, src/cache/ftccmap.c, src/cache/ftcsbits.c,
          ftlru.c: fixed the cache sub-system to correctly deal with out-of-memory
          conditions.
      
          * src/pfr/pfrobjs.c, src/pfr/pfrsbits.c: fixing compiler warnings and a
          small memory leak
      
          * src/psaux/psobjs.c (t1_reallocate_table): fixed a bug (memory leak) that
          only happened when trying to resize an array would end in an OOM.
      
          * src/smooth/ftgrays.c: removed compiler warnings / volatile bug
      
          * src/truetype/ttobjs.c: removed segmentation fault that happened in
          tight memory environments.
      ad1ceca2
  19. 25 Feb, 2003 1 commit
  20. 18 Feb, 2003 1 commit
  21. 13 Feb, 2003 1 commit
  22. 30 Jan, 2003 1 commit
  23. 12 Jan, 2003 1 commit
    • David Turner's avatar
      2003-01-11 David Chester <davidchester@qmx.net> · 7f0c4e9c
      David Turner authored
              * include/freetype/config/ftoption.h, src/autohint/ahglobal.h,
              src/autohint/ahglobal.c, src/autohint/ahglyph.c,
              src/autohint/ahtypes.h:
      
                included David Chester's patches to the auto-hinter in order to
                slightly improve the output. Note that everything is controlled
                through the new FT_CONFIG_OPTION_CHESTER_HINTS defined at the
                end of "ftoption.h", there are also individual FT_CONFIG_CHESTER_XXX
                macros to control individual "features".
      
                Note that all improvements are enabled by default, but can be
                tweaked for optimization and testing purpose. The configuration
                macros will most likely disappear in the short future.
      
      2003-01-11  David Turner  <david@freetype.org>
      
              * include/freetype/internal/fnttypes.h: fixed a structure field
              definition to avoid memory overwrites
      7f0c4e9c
  24. 08 Jan, 2003 1 commit
  25. 06 Nov, 2002 1 commit
    • David Turner's avatar
      2002-11-05 David Turner <david@freetype.org> · 6c993554
      David Turner authored
              * include/freetype/config/ftoption.h, src/gzip/ftgzip.c: added
              support for the FT_CONFIG_OPTION_SYSTEM_ZLIB option, used to specify
              the use of system-wide zlib.
      
              Note that this macro, as well as FT_CONFIG_OPTION_BYTECODE_INTERPRETER,
              is not #undef-ed anymore. This allows the build system to define them
              depending on the configuration (typically by adding -D flags at
              compile time).
      
              * src/sfnt/ttcmap0.c (tt_face_build_cmaps): removed compiler warnings
              in optimized mode relative to the "volatile" local variables. This was
              not a compiler bug after all, but the fact that a pointer to a volatile
              variable is not the same than a volatile pointer to a variable :-)
      
              the fix was to change  "volatile FT_Byte*  p"
              into                   "FT_Byte* volatile  p"
      
              * src/pfr/pfrload.c, src/pfr/pfrdrivr.c, src/gzip/inftrees.c: removed
              compiler warnings in optimized modes
      
              * src/gzip/*.[hc]: modified our ZLib copy in order to prevent exporting
              any zlib function names outside of the component. This prevents linking
              problems on some platforms, when applications want to link FreeType
              _and_ ZLib together.
      
      
      2002-11-05  Juliusz  <jch@pps.jussieu.fr>
      
              * src/psaux/psobjs.c (ps_table_add): modified increment loop in
              order to implement exponential behaviour
      6c993554
  26. 21 Sep, 2002 1 commit
    • Werner Lemberg's avatar
      · 065b2614
      Werner Lemberg authored
      * src/truetype/ttdriver.c (Load_Glyph): Fourth parameter must be
      FT_Int32.
      * src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph):
      Ditto.
      065b2614
  27. 09 Sep, 2002 1 commit
    • David Turner's avatar
      * src/cache/ftccache.i: fixed a bug that prevented compilation in · 8bea7d26
      David Turner authored
              debug mode of template instantiation
      
              * src/cff/cffparse.c: fixed the CFF table loader. It didn't accept
              empty arrays, and this prevented the loading of certain fonts.
      
              * src/pshinter/pshalgo2.c, src/pshinter/pshalgo3.c: adding fix to
              prevent seg fault when hints are provided in an empty glyph !!
      
              * include/freetype/ftimage.h: removed incorrect "zft_" definitions
              and updated constants documentation comments
      
              * include/freetype/freetype.h (FT_FaceRec): updating documentation
              comment. The "descender" value is always *negative*, not positive !
      8bea7d26
  28. 05 Sep, 2002 1 commit
    • Werner Lemberg's avatar
      · d6f74d3b
      Werner Lemberg authored
      * src/cid/cidobjs.c (CID_Size_Init): Renamed to...
      (cid_size_init): This.
      * src/psaux/psobjs.c (T1_Builder_Add_Point1): Renamed to...
      (t1_builder_add_point1): This.
      
      Updated all affected code.
      
      * src/pshinter/pshalgo3.c (psh3_hint_align): Fix compiler warnings.
      * src/type1/t1gload.c (T1_Compute_Max_Advance): Ditto.
      
      Formatting, minor doc fixes.
      d6f74d3b
  29. 27 Aug, 2002 1 commit
    • David Turner's avatar
      * massive re-formatting changes to many, many source files. I don't · b16ccfc5
      David Turner authored
          want to list them all here. The operations performed were all logical
          transformations of the sources:
      
            - trying to convert all enums and constants to CAPITALIZED_STYLE, with
              #define definitions like
      
                #define  my_old_constants   MY_NEW_CONSTANT
      
            - big, big update of the documentation comments
      
          * include/freetype/freetype.h, src/base/ftobjs.c, src/smooth/ftsmooth.c,
          include/freetype/ftimage.h: adding support for LCD-optimized rendering
          though the new constants/enums:
      
            FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
            FT_PIXEL_MODE_LCD,  FT_PIXEL_MODE_LCD_V
      
          this is still work in progress, don't expect everything to work correctly
          though most of the features have been implemented.
      
          * adding new FT_LOAD_XXX flags, used to specify both hinting and rendering
          targets:
      
            FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
            FT_LOAD_TARGET_MONO   :: monochrome bitmaps
            FT_LOAD_TARGET_LCD    :: horizontal RGB/BGR decimated hinting & rendering
            FT_LOAD_TARGET_LCD_V  :: vertical RGB/BGR decimated hinting & rendering
      
          note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
          behaviour of the font engine is _unchanged_.
      b16ccfc5
  30. 21 Aug, 2002 1 commit
    • Werner Lemberg's avatar
      · 8cb11c96
      Werner Lemberg authored
      * src/truetype/ttgload.c (TT_Get_Metrics): Add guard for k = 0.
      8cb11c96
  31. 16 Aug, 2002 1 commit
    • Werner Lemberg's avatar
      · b4816762
      Werner Lemberg authored
      Add support for Apple composite glyphs.
      
      * include/freetype/config/ftoption.h
      (TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED): New macro.
      
      * src/truetype/ttgload.c (OVERLAP_COMPOUND, SCALED_COMPONENT_OFFSET,
      UNSCALED_COMPONENT_OFFSET): New macros for additional OpenType
      glyph loading flags.
      (load_truetype_glyph): Implement it.
      b4816762
  32. 06 Aug, 2002 1 commit
    • Werner Lemberg's avatar
      · cbfc9791
      Werner Lemberg authored
      Some formatting.
      
      * src/cff/cffcmap.c: Remove compiler warnings.
      * src/cache/ftccache.c, src/cache/ftccache.i,
      src/pfr/pfrload.c, src/pfr/pfrgload.c: s/index/idx/.
      * src/cff/cffload.c: s/select/fdselect/.
      * src/raster/ftraster.c: s/wait/waiting/.
      cbfc9791
  33. 01 Aug, 2002 1 commit
  34. 28 Jul, 2002 1 commit
    • Werner Lemberg's avatar
      · 5e6cd65d
      Werner Lemberg authored
      s/ft_memset/FT_MEM_SET/.
      s/FT_MEM_SET/FT_MEM_ZERO/ where appropriate.
      5e6cd65d
  35. 26 Jul, 2002 1 commit
    • Werner Lemberg's avatar
      · c5f6cd72
      Werner Lemberg authored
      Fixing ChangeLog entries.
      Some formatting.
      
      * src/truetype/ttgload.c (load_truetype_glyph)
      [FT_CONFIG_OPTION_INCREMENTAL]: s/memset/ft_memset/.
      
      * src/autohint/ahhint.c (ah_hint_edges_3): Fix compiler warning.
      * src/cff/cffload.c (cff_encoding_load): Remove `memory' variable.
      * src/cff/cffcmap.c (cff_cmap_encoding_init): Remove `psnames'
      variable.
      * src/truetype/ttgload.c (load_truetype_glyph): Remove statement
      without effect.
      * src/truetype/ttdriver (Get_Char_Index, Get_Next_Char): Removed.
      c5f6cd72
  36. 24 Jul, 2002 1 commit
  37. 18 Jul, 2002 1 commit
  38. 17 Jul, 2002 1 commit
  39. 26 Jun, 2002 1 commit