1. 18 Feb, 2003 1 commit
  2. 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
  3. 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
  4. 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
  5. 01 Aug, 2002 1 commit
  6. 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
  7. 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
  8. 24 Jul, 2002 1 commit
  9. 18 Jul, 2002 1 commit
  10. 01 Apr, 2002 1 commit
    • Werner Lemberg's avatar
      · 546305fd
      Werner Lemberg authored
      * src/truetype/ttgload.c: 16bit fixes.
      (TT_Load_Simple_Glyph): Improve debug messages.
      (load_truetype_glyph): Remove dead code.
      * src/truetype/ttinterp.c: 16bit fixes.
      * src/truetype/ttobjs.c: Ditto.
      
      * include/freetype/ftsnames.h, include/freetype/internal/sfnt.h,
      src/cff/cffload.h, src/psaux/psobjs.h, src/truetype/ttinterp.[ch],
      src/sfnt/ttpost.h: s/index/idx/.
      
      formatting, copyright updates.
      546305fd
  11. 31 Mar, 2002 1 commit
    • Werner Lemberg's avatar
      · 9bba0634
      Werner Lemberg authored
      * src/truetype/ttobjs.c (TT_Size_Init): Fix typo.
      
      * src/otlayout/otlcommn.c, src/otlayout/otlcommn.h: s/index/idx/.
      9bba0634
  12. 30 Mar, 2002 1 commit
    • Werner Lemberg's avatar
      · f387e07c
      Werner Lemberg authored
      * src/cff/cffdrivr.c (cff_get_glyph_name): Fix debug message.
      
      * src/cff/cffobjs.c (CFF_Driver_Init, CFF_Driver_Done)
      [TT_CONFIG_OPTION_EXTEND_ENGINE]: Removed.
      * src/cff/sfobjs.c (SFNT_Load_Face)
      [TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
      * src/truetype/ttobjs.c (TT_Init_Driver, TT_Done_Driver)
      [TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
      
      * src/truetype/ttdriver.c, src/truetype/ttobjs.c,
      src/truetype/ttobjs.h: Renaming driver functions to the
      FT_<Subject>_<Action> scheme:
      
        TT_Init_Driver => TT_Driver_Init
        TT_Done_Driver => TT_Driver_Done
        TT_Init_Face   => TT_Face_Init
        TT_Done_Face   => TT_Face_Done
        TT_Init_Size   => TT_Size_Init
        TT_Done_Size   => TT_Size_Done
        TT_Reset_Size  => TT_Size_Reset
      f387e07c
  13. 22 Mar, 2002 1 commit
    • David Turner's avatar
      * include/freetype/internal/ftmemory.h, and a lot of other files !!: · d8021097
      David Turner authored
                  changed the names of memory macros. Examples:
      
                    MEM_Set   => FT_MEM_SET
                    MEM_Copy  => FT_MEM_COPY
                    MEM_Move  => FT_MEM_MOVE
      
                    ALLOC     => FT_ALLOC
                    FREE      => FT_FREE
                    REALLOC   = >FT_REALLOC
      
                  FT_NEW was introduced to allocate a new object from a _typed_
                  pointer..
      
                  note that ALLOC_ARRAY and REALLOC_ARRAY have been replaced
                  by FT_NEW_ARRAY and FT_RENEW_ARRAY which take _typed_ pointer
                  arguments.
      
                  This results in _lots_ of sources being changed, but makes the
                  code more generic and less error-prone..
      d8021097
  14. 20 Mar, 2002 1 commit
  15. 14 Mar, 2002 2 commits
    • David Turner's avatar
      no message · 0a86d632
      David Turner authored
      0a86d632
    • David Turner's avatar
      * include/freetype/internal/psglobals.h (removed), · ad4597ba
      David Turner authored
                include/freetype/internal/pshints.h,
                src/pshinter/pshglob.h: removing obsolete file
      
              * include/freetype/internal/tttypes.h,
                include/freetype/internal/sfnt.h,
                src/base/ftnames.c, src/cff/cffdrivr.c,
                src/sfnt/*.c, src/truetype/*.c: updated SFNT/TrueType type
                definitions
      ad4597ba
  16. 01 Mar, 2002 1 commit
  17. 28 Feb, 2002 1 commit
  18. 28 Jun, 2001 2 commits
    • Werner Lemberg's avatar
      · 08146ba1
      Werner Lemberg authored
      finishing function header formatting
      
      updating copyrights
      08146ba1
    • Werner Lemberg's avatar
      · 3544916a
      Werner Lemberg authored
      formatting
      3544916a
  19. 06 Jun, 2001 1 commit
    • Werner Lemberg's avatar
      Complete redesign of error codes. Please check ftmoderr.h for more · 442b0910
      Werner Lemberg authored
      details.
      
      * include/freetype/internal/cfferrs.h,
      include/freetype/internal/tterrors.h,
      include/freetype/internal/t1errors.h: Removed.  Replaced with files
      local to the module.  All extra error codes have been moved to
      `fterrors.h'.
      
      * src/sfnt/ttpost.h: Move error codes to `fterrors.h'.
      
      * src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h,
      src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h,
      src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
      src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
      src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the
      error names for the module it belongs to.
      
      * include/freetype/ftmoderr.h: New file, defining the module error
      offsets.  Its structure is similar to `fterrors.h'.
      
      * include/freetype/fterrors.h (FT_NOERRORDEF): New macro.
      (FT_ERRORDEF): Redefined to use module error offsets.
      All internal error codes are now public; unused error codes have
      been removed, some are new.
      
      * include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New
      macro.
      * include/freetype/config/ftoption.h
      (FT_CONFIG_OPTION_USE_MODULE_ERRORS): New macro.
      
      All other source files have been updated to use the new error codes;
      some already existing (internal) error codes local to a module have
      been renamed to give them the same name as in the base module.
      
      All make files have been updated to include the local error files.
      
      
      * src/cid/cidtokens.h: Replaced with...
      * src/cid/cidtoken.h: This file for 8+3 consistency.
      
      * src/raster/ftraster.c: Use macros for header file names.
      442b0910
  20. 02 Apr, 2001 1 commit
    • Werner Lemberg's avatar
      * README: Formatting. · 005b8b99
      Werner Lemberg authored
      * Jamfile: Fix typo.
      
      * src/cff/cffparse.c: Move error code #defines to...
      * include/freetype/internal/cfferrs.h: This file.
      * src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffload.c: Replaced
      `FT_Err_*' with `CFF_Err_*'.
      * src/cid/cidparse.c: Replaced `FT_Err_*' with `T1_Err_*'.
      * src/psaux/psobjs.c, src/psaux/t1decode.c: Ditto.
      * src/sfnt/sfobcs.c, src/sfnt/ttload.c: Replaced `FT_Err_*' with
      `TT_Err_*'.
      * src/truetype/ttgload.c, src/truetype/ttobjs.c: Ditto.
      * src/type1/t1gload.c, src/type1/t1load.c, src/type1/t1objs.c,
      src/type1/t1parse.c: Replaced `FT_Err_*' with `T1_Err_*'.
      
      * include/freetype/internal/cfferrs.h: Add
      `CFF_Err_Unknown_File_Format'.
      * include/freetype/internal/t1errors.h: Add
      `T1_Err_Unknown_File_Format'.
      * include/freetype/internal/tterrors.h: Add
      `TT_Err_Unknown_File_Format'.
      
      * src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset'
      references.
      * src/psaux/psobjs.c: Include `FT_INTERNAL_TYPE1_ERRORS_H'.
      
      * src/cff/cffobjs.c (CFF_Init_Face, CFF_Done_Face): Use
      FT_LOCAL_DEF.
      * src/cid/cidobjs.c (CID_Done_Driver): Ditto.
      * src/trutype/ttobjs.c (TT_Init_Face, TT_Done_Face, TT_Init_Size):
      Ditto.
      * src/type1/t1objs.c (T1_Done_Driver): Ditto.
      * src/pcf/pcfdriver.c (PCF_Done_Face): Ditto.
      * src/pcf/pcf.h: Use FT_LOCAL for `PCF_Done_Face'.
      005b8b99
  21. 20 Mar, 2001 2 commits
    • David Turner's avatar
      * include/freetype/config/ftheader.h, include/freetype/ftsnames.h: · dd9291c5
      David Turner authored
      	renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to FT_SFNT_NAMES_H
      
      	* docs/docmaker.py: added generation of INDEX link in table of contents
      dd9291c5
    • David Turner's avatar
      * builds/*/*-def.mk: changed the objects directory from "obj" to "objs" · 7dca898c
      David Turner authored
      	* include/freetype/config/ftheader.h: removed obsolete macros like
      	FT_SOURCE_FILE, etc.. and added cache-specific macro definitions that
      	were previously defined in <freetype/ftcache.h>. Added comments to be
      	included in a new API Reference section.
      
      	* src/*/*: removed the use of FT_SOURCE_FILE, etc.. now, each component
      	needs to added its own directory to the include path at compile time.
      	Modified all "rules.mk" and "descrip.mms" accordingly..
      7dca898c
  22. 13 Dec, 2000 1 commit
    • David Turner's avatar
      * include/freetype/config/ft2build.h, · 10038668
      David Turner authored
      	include/freetype/internal/internal.h: fixed header inclusion macros
      	to use direct definitions. This is the only way to do these things
      	in a portable way :-( The rest of the code should follow shortly
      	though everything compiles now..
      
      	* builds/compiler/intelc.mk, builds/compiler/watcom.mk,
      	builds/win32/detect.mk: added support for the Intel C/C++ compiler,
      	as well as _preliminary_ (read: doesn't work !!) support for Watcom.
      	Also added a new setup target. Type "make setup list" for a list
      	of supported command-line compilers on Win32..
      10038668
  23. 12 Dec, 2000 1 commit
    • Werner Lemberg's avatar
      * include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT): · 0f4d90d2
      Werner Lemberg authored
      Removed.  ANSI C doesn't (explicitly) allow macro expansion in
      arguments using `##'.
      (FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
      names directly.  Make them configurable.  Use `##' to strip leading
      and trailing spaces from arguments.
      
      * builds/unix/ft2unix.h: Adapted.
      
      * src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
      ft_close_stream): Use FT_CALLBACK_DEF.
      
      * builds/unix/ftsystem.c: Use new header scheme.
      (FT_Done_Memory): Use free() from FT_Memory structure.
      
      * src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
      
      * include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
      FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
      FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
      0f4d90d2
  24. 08 Dec, 2000 2 commits
  25. 30 Nov, 2000 1 commit
    • David Turner's avatar
      - added support for the free command-line Borland C++ compiler · 9b9a5ffb
      David Turner authored
        in the "builds" directory
      
      - modified a few files because BCC32 didn't like certain comparisons
        (UInt compared with a UShort, apparently the UShort is promoted to
        an Int)
      
      - updated the INSTALL file to include IDE compilation, prevent against
        BSD Make, and clarify the use of "make setup" (instead of "make")
        for build configuration
      9b9a5ffb
  26. 29 Nov, 2000 1 commit
  27. 07 Nov, 2000 1 commit
    • Werner Lemberg's avatar
      · ee166f01
      Werner Lemberg authored
      Complementing David's changes with formatting, adding documentation, etc.
      
      More `*'-convention formatting, adding the `a' resp. `an' prefix to
      variables.
      ee166f01
  28. 06 Nov, 2000 1 commit
    • David Turner's avatar
      integrated Yamano-Uchi changes to the base source code. However, · be574d81
      David Turner authored
      I've made a few modifications:
      
        - there is no new field named "driver" in "FT_SizeRec"
      
        - the new fields in "TT_SizeRec" are:
      
             strike_index   :: value 0xFFFF means "no sbit strike selected"
             strike_metrics :: the FT_Size_Metrics structure corresponding to
                               the currently selected strike
      
        - the code in "ttload.c" has been somewhat cleaned up too
      
      thanks a lot, Y-U !!
      
      - David
      be574d81
  29. 04 Nov, 2000 1 commit
    • David Turner's avatar
      major reformatting of the sources: · d2d17013
      David Turner authored
        FT_EXPORT_DEF    => FT_EXPORT
        FT_EXPORT_FUNC => FT_EXPORT_DEF
        BASE_DEF               => FT_BASE
        BASE_FUNC            => FT_BASE_DEF
        LOCAL_DEF             => FT_LOCAL
        LOCAL_FUNC          => FT_LOCAL_DEF
        LOCAL_FUNC_X     => FT_CALLBACK_DEF
        LOCAL_DEF_X       => FT_CALLBACK_TABLE
        FT_CPLUSPLUS     => FT_CALLBACK_TABLE_DEF
      d2d17013
  30. 22 Sep, 2000 1 commit
    • Werner Lemberg's avatar
      · 59395eca
      Werner Lemberg authored
      Applied a patch from Hidetoshi for embedded bitmap metrics support.
      59395eca
  31. 06 Aug, 2000 1 commit
    • Werner Lemberg's avatar
      · eedd97d7
      Werner Lemberg authored
      Yamano-uchi added support for SFNT-wrapped CID bitmap font files (with
      minor modifications from WL).
      eedd97d7
  32. 31 Jul, 2000 1 commit
    • Werner Lemberg's avatar
      · ff0cedbb
      Werner Lemberg authored
      Simplifying the FIELD_* and FRAME_* macros.  Before calling these macros,
      you should #define FT_STRUCTURE to the structure which will be filled.
      
      Replaced FT_FIELD_REF with FT_FIELD_SIZE, FT_FIELD_SIZE_DELTA, and
      FT_FIELD_OFFSET to make the code more readable; additionally, it should be
      more portable because we no longer cast a pointer to an FT_UShort (which
      e.g. fails with Sun's C++ compiler) but computes the difference between two
      pointers which is guaranteed to work.
      
      Fixing warnings (and C++ errors) while using Sun's latest cc and CC
      incarnations.  Most of them are related to variable shadowing.
      ff0cedbb
  33. 27 Jul, 2000 3 commits
    • Werner Lemberg's avatar
      · d51e0881
      Werner Lemberg authored
      Formatting.
      d51e0881
    • David Turner's avatar
      re-adding a "unix-dev.mk". Debugging libtool output · c289782f
      David Turner authored
      is just too much of a pain for me, I prefer a good old
      static lib without optimizations :-)
      
      "make devel" is back on Unix then..
      c289782f
    • Werner Lemberg's avatar
      · 6a6ad148
      Werner Lemberg authored
      Removing compiler warnings about unused portions of code.
      
      Now unix.in uses absolute paths also to overcome problems with libtool.
      To do that in a consistent way I had to modify the rules how to handle
      $OBJ_DIR (and consequently $LIB_DIR): You should set $OBJ_DIR explicitly
      on the command line (or environment).
      6a6ad148
  34. 09 Jul, 2000 1 commit
    • Werner Lemberg's avatar
      · b48a6094
      Werner Lemberg authored
      Formatting.
      
      Moving some internal structures and constants from freetype.h to ftobjs.h.
      
      Finally removing FT_LOAD_ANTI_ALIAS.
      
      Cleaning up all error codes.  Only the used ones have survived :-)
      
      Removed unused FT_MAX_GLYPH_FORMATS constant.
      
      T2 error codes are now in the range 0x500-0x5FF (instead of `TrueDoc').
      
      Some minor improvements of error return values.
      
      Finally fixing error code values in ftraster and ftgrays to be compliant
      with all other FT error codes.
      b48a6094