1. 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:
          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
            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_.
  2. 01 Aug, 2002 1 commit
  3. 28 Jul, 2002 1 commit
    • Werner Lemberg's avatar
      · 5e6cd65d
      Werner Lemberg authored
      s/FT_MEM_SET/FT_MEM_ZERO/ where appropriate.
  4. 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'
      * src/truetype/ttgload.c (load_truetype_glyph): Remove statement
      without effect.
      * src/truetype/ttdriver (Get_Char_Index, Get_Next_Char): Removed.
  5. 24 Jul, 2002 1 commit
  6. 18 Jul, 2002 1 commit
  7. 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.
  8. 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/.
  9. 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)
      * src/cff/sfobjs.c (SFNT_Load_Face)
      * src/truetype/ttobjs.c (TT_Init_Driver, TT_Done_Driver)
      * 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
  10. 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_
                  note that ALLOC_ARRAY and REALLOC_ARRAY have been replaced
                  by FT_NEW_ARRAY and FT_RENEW_ARRAY which take _typed_ pointer
                  This results in _lots_ of sources being changed, but makes the
                  code more generic and less error-prone..
  11. 20 Mar, 2002 1 commit
  12. 14 Mar, 2002 2 commits
    • David Turner's avatar
      no message · 0a86d632
      David Turner authored
    • David Turner's avatar
      * include/freetype/internal/psglobals.h (removed), · ad4597ba
      David Turner authored
                src/pshinter/pshglob.h: removing obsolete file
              * include/freetype/internal/tttypes.h,
                src/base/ftnames.c, src/cff/cffdrivr.c,
                src/sfnt/*.c, src/truetype/*.c: updated SFNT/TrueType type
  13. 01 Mar, 2002 1 commit
  14. 28 Feb, 2002 1 commit
  15. 28 Jun, 2001 2 commits
    • Werner Lemberg's avatar
      · 08146ba1
      Werner Lemberg authored
      finishing function header formatting
      updating copyrights
    • Werner Lemberg's avatar
      · 3544916a
      Werner Lemberg authored
  16. 06 Jun, 2001 1 commit
    • Werner Lemberg's avatar
      Complete redesign of error codes. Please check ftmoderr.h for more · 442b0910
      Werner Lemberg authored
      * include/freetype/internal/cfferrs.h,
      include/freetype/internal/t1errors.h: Removed.  Replaced with files
      local to the module.  All extra error codes have been moved to
      * 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
      * include/freetype/config/ftoption.h
      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.
  17. 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
      * 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
      * include/freetype/internal/t1errors.h: Add
      * include/freetype/internal/tterrors.h: Add
      * src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset'
      * src/psaux/psobjs.c: Include `FT_INTERNAL_TYPE1_ERRORS_H'.
      * src/cff/cffobjs.c (CFF_Init_Face, CFF_Done_Face): Use
      * src/cid/cidobjs.c (CID_Done_Driver): Ditto.
      * src/trutype/ttobjs.c (TT_Init_Face, TT_Done_Face, TT_Init_Size):
      * 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'.
  18. 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
    • 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..
  19. 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..
  20. 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 `##'.
      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,
      FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
  21. 08 Dec, 2000 2 commits
  22. 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
  23. 29 Nov, 2000 1 commit
  24. 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
  25. 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
  26. 04 Nov, 2000 1 commit
    • David Turner's avatar
      major reformatting of the sources: · d2d17013
      David Turner authored
        BASE_DEF               => FT_BASE
        BASE_FUNC            => FT_BASE_DEF
        LOCAL_DEF             => FT_LOCAL
        LOCAL_FUNC          => FT_LOCAL_DEF
  27. 22 Sep, 2000 1 commit
    • Werner Lemberg's avatar
      · 59395eca
      Werner Lemberg authored
      Applied a patch from Hidetoshi for embedded bitmap metrics support.
  28. 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).
  29. 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.
      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.
  30. 27 Jul, 2000 3 commits
    • Werner Lemberg's avatar
      · d51e0881
      Werner Lemberg authored
    • 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..
    • 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).
  31. 09 Jul, 2000 1 commit
    • Werner Lemberg's avatar
      · b48a6094
      Werner Lemberg authored
      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.
  32. 08 Jul, 2000 2 commits
  33. 05 Jul, 2000 1 commit
    • Werner Lemberg's avatar
      · bd5ae400
      Werner Lemberg authored
      Run g++ on the FreeType library.  This should make the use of code in
      C++ programs easier:
        Renamed FT_WordXX to FT_UIntXX.
        Changed a lot of void* to FT_Byte* if related to i/o streams -- FreeType
        always accesses streams byte-wise, so this makes sense IMHO.
        Added a lot of #ifdef __cplusplus to header files (and removed a few).
        Other minor syntax fixes (mostly casts).
        Replaced the variable `private' with `private_dict' -- `private' is
        reserved in C++.