1. 28 Feb, 2002 1 commit
  2. 24 Feb, 2002 1 commit
  3. 19 Feb, 2002 2 commits
    • Werner Lemberg's avatar
      · 81cb1bb9
      Werner Lemberg authored
      * builds/freetype.mk (FT_CFLAGS): Use $(INCLUDE_FLAGS) first.
      
      * src/cache/ftccache.c (ftc_cache_resize): Mark `error' as unused
      to avoid compiler warning.
      * src/cff/cffload.c (CFF_Get_String): Ditto.
      * src/cff/cffobjs.c (CFF_StrCopy): Ditto.
      * src/psaux/psobjs.c (PS_Table_Done): Ditto.
      * src/pcf/pcfread.c (pcf_seek_to_table_type): Ditto.
      * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
      (pcf_get_bitmaps): The same for `sizebitmaps'.
      * src/psaux/t1decode.c (T1_Decode_Parse_Charstrings): The same for
      `orig_y'.
      (t1operator_seac): Comment out more dead code.
      * src/pshinter/pshalgo2.c (ps2_hints_apply): Add `DEBUG_HINTER'
      conditional.
      * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
      load_truetype_glyph): Add `TT_CONFIG_OPTION_BYTECODE_INTERPRETER'
      conditional.
      81cb1bb9
    • Werner Lemberg's avatar
      · cc0039b5
      Werner Lemberg authored
      * src/autohint/ahglyph.c (ah_outline_link_segments): Remove unused
      variables.
      * src/autohint/ahhint.c (ah_align_serif_edge): Use FT_UNUSED instead
      of UNUSED.
      * src/autohint/ahmodule.c (ft_autohinter_reset): Ditto.
      * src/pshinter/pshrec.c (ps_mask_table_merge): Fix typo in variable
      swapping code.
      * src/pshinter/pshglob.h (PSH_Blue_Align): Add PSH_BLUE_ALIGN_NONE.
      * src/pshinter/pshglob.c (psh_blues_snap_stem): Use it.
      * src/pshinter/pshalgo1.c (psh1_hint_table_optimize): Ditto.
      * src/pshinter/pshalgo2.c (psh2_hint_align): Ditto.
      * include/freetype/internal/ftobjs.h (UNUSED): Removed.
      cc0039b5
  4. 04 Feb, 2002 1 commit
    • Werner Lemberg's avatar
      · 08270698
      Werner Lemberg authored
      Adding the function `FT_Get_Next_Char', doing the obvious thing
      w.r.t. the selected charmap.
      
      * include/freetype/freetype.h: Add prototype.
      * include/freetype/internal/ftdriver.h: Add `FTDriver_getNextChar'
      typedef.
      (FT_Driver_Class): Use it.
      * include/freetype/internal/psnames.h: Add `PS_Next_Unicode_Func'
      typedef.
      (PSNames_Interface): Use it.
      * include/freetype/internal/tttypes.h: Add `TT_CharNext_Func'
      typedef.
      (TT_CMapTable): Use it.
      
      * src/base/ftobjs.c (FT_Get_Next_Char): New function, implementing
      high-level API.
      * src/cff/cffdrivr.c (cff_get_next_char): New function.
      (cff_driver_class): Add it.
      * src/cid/cidriver.c (Cid_Get_Next_Char): New function.
      (t1cid_driver_class): Add it.
      * src/pcf/pcfdriver.c (PCF_Get_Next_Char): New function.
      (pcf_driver_class): Add it.
      * src/psnames/psmodule.c (PS_Next_Unicode): New function.
      (psnames_interface): Add it.
      * src/sfnt/ttcmap.c (code_to_next0, code_to_next2, code_to_next4,
      code_to_next6, code_to_next_8_12, code_to_next_10): New auxiliary
      functions.
      (TT_CharMap_Load): Use them.
      * src/truetype/ttdriver.c (Get_Next_Char): New function.
      (tt_driver_class): Add it.
      * src/type1/t1driver.c (Get_Next_Char): New function.
      (t1_driver_class): Add it.
      * src/winfnt/winfnt.c (FNT_Get_Next_Char): New function.
      (winfnt_driver_class): Add it.
      
      * src/pcf/pcfread.c (pcf_load_font): For now, report Unicode for
      Unicode and Latin 1 encodings.
      08270698
  5. 25 Jan, 2002 1 commit
    • Werner Lemberg's avatar
      · 840c2f26
      Werner Lemberg authored
      * src/cache/ftccache.c (ftc_node_done, ftc_node_destroy): Fix
      compilation warnings.
      * src/base/descrip.mms (OBJS): Add `ftmm.obj'.
      * src/cache/descrip.mms (ftcache.obj): Dependencies added.
      840c2f26
  6. 06 Jan, 2002 2 commits
  7. 03 Jan, 2002 1 commit
    • David Turner's avatar
      * src/type1/t1objs.c (T1_Face_Init): fixed a bug that crashed the · 1c2ef2b9
      David Turner authored
              library when dealing with certain weird fonts (like "Stalingrad",
              in "sadn.pfb". This font has no full font name entry.. )
      
              * src/base/ftoutln.c, include/freetype/ftoutln.h: added the
              FT_Outline_Check API to check the consistency of outline data
      
              * src/base/ftobjs.c (FT_Load_Glyph): added a call to the new
              FT_Outline_Check to ensure that loaded glyphs are valid. This
              allows certain fonts like "tt1095m_.ttf" to be loaded even though
              it appears they contain really funky glyphs..
      
              there still is a bug there though.. !!
      1c2ef2b9
  8. 19 Dec, 2001 3 commits
    • Werner Lemberg's avatar
      · eed63c3f
      Werner Lemberg authored
      Formatting.
      CFF encoding tables moved back from cffload.c to cffload.h.
      eed63c3f
    • David Turner's avatar
      * src/truetype/ttgload.c (TT_Load_Glyph), src/base/ftobjs.c · 82350696
      David Turner authored
              (FT_Load_Glyph): "fixed" the bug that prevented embedded bitmaps from
              begin loaded when the auto-hinter is used.. This actually is a hack
              but will be enough until the internal re-design scheduled for
              FreeType 2.1
      82350696
    • David Turner's avatar
      * include/freetype/cache/ftcache.h: added comments to indicate that · 1dc7596b
      David Turner authored
              some of the exported functions should only be used by applications
              that need to implement custom cache types
      
              * src/truetype/ttgload.c: fixed a nasty bug that prevent composites
              from loading correctly. Believe it or not, this was due to an invalid
              macro definition !!
      1dc7596b
  9. 17 Dec, 2001 1 commit
    • Werner Lemberg's avatar
      · 8016d9c7
      Werner Lemberg authored
      * src/truetype/ttgload.c (load_truetype_glyph): Fix test for invalid
      glyph header.
      8016d9c7
  10. 16 Dec, 2001 1 commit
    • Werner Lemberg's avatar
      · 5f63d74e
      Werner Lemberg authored
      * src/base/ftglyph (FT_Glyph_To_Bitmap): Remove compiler warning.
      * include/freetype/ftcache.h (FTC_Node_Unref): Removed.  It is
      already in ftcmanag.h.
      * src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused variable
      `gfam'.
      * src/cache/ftcmanag.c (ftc_family_table_alloc,
      * ftc_family_table_free): Use FT_EXPORT_DEF.
      * include/freetype/cache/ftcmanag.h: Updated.
      * src/cache/ftccache.c (ftc_node_destroy): Use FT_EXPORT_DEF.
      * src/cache/ftccmap.c (ftc_cmap_node_init): Remove unused variable
      `cfam'.
      Remove compiler warning.
      (FTC_CMapCache_Lookup): Remove compiler warnings.
      (ftc_cmap_family_init): Ditto.
      (FTC_CMapCache_Lookup): Ditto.
      
      * builds/unix/configure.ac: Increase `version_info' to 8:0:2.
      * builds/unix/configure: Regenerated.
      
      * builds/mac/README: Updated.
      5f63d74e
  11. 14 Dec, 2001 2 commits
  12. 18 Oct, 2001 1 commit
  13. 22 Aug, 2001 1 commit
    • Werner Lemberg's avatar
      · 95d5bc6f
      Werner Lemberg authored
      * src/truetype/ttinterp.h: Fix prototype of TT_Move_Func.
      
      Some formatting
      95d5bc6f
  14. 07 Jul, 2001 2 commits
  15. 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
  16. 27 Jun, 2001 2 commits
  17. 19 Jun, 2001 3 commits
  18. 18 Jun, 2001 2 commits
    • Werner Lemberg's avatar
      Minor cleanups to remove compiler warnings. · b90818ed
      Werner Lemberg authored
      * include/freetype/cache/ftcmanag.h (FTC_MAX_BYTES_DEFAULT): Use
      `L' for constant.
      * include/freetype/config/ftoption.h (FT_RENDER_POOL_SIZE): Ditto.
      * src/base/ftcalc.c (FT_MulDiv): Use `L' for constant.
      * src/base/ftglyph.c (FT_Glyph_Get_CBox): Remove `error' variable.
      * src/base/fttrigon.c (ft_trig_arctan_table): Use `L' for constants.
      * src/base/ftobjs.c (FT_Done_Size): Fix return value.
      (FT_Set_Char_Size, FT_Set_Pixel_Sizes, FT_Get_Kerning): Remove
      unused `memory' variable.
      * src/autohint/ahglyph.c (ah_get_orientation): Use `L' for constant.
      * src/autohint/ahhint.c (ah_hint_edges_3,
      ah_hinter_align_edge_points): Remove unused `before' and `after'
      variables.
      (ah_hinter_align_weak_points): Remove unused `edge_limit' variable.
      (ah_hinter_load): Remove unused `new_advance', `start_contour',
      and `metrics' variables.
      * src/cff/cffload.c (CFF_Load_Encoding): Remove dead code to avoid
      compiler warning.
      * src/cff/cffobjs.c (CFF_Init_Face): Remove unused `base_offset'
      variable.
      * src/cff/cffgload.c (CFF_Parse_CharStrings): Remove unused
      `outline' variable.
      (cff_compute_bias): Use `U' for constant.
      * src/cid/cidload.c (cid_decrypt): Ditto.
      * src/psaux/psobjs.c (T1_Decrypt): Ditto.
      * src/psaux/t1decode.c (T1_Decoder_Parse_CharStrings): Ditto.
      * src/sfnt/ttload.c (TT_Load_Kern): Remove unused `version'
      variable.
      * src/sfnt/ttsbit.c (TT_Load_SBit_Image): Remove unused `top'
      variable.
      * src/truetype/ttgload.c (load_truetype_glyph): Remove unused
      `num_contours' and `ins_offset' variables.
      (compute_glyph_metrics): Remove unused `Top' and `x_scale'
      variables.
      (TT_Load_Glyph): Remove unused `memory' variable.
      * src/smooth/ftgrays.c (grays_raster_render): Use `L' for constants.
      b90818ed
    • Werner Lemberg's avatar
      Make the new error scheme source compatible with older FT versions · f8e9f426
      Werner Lemberg authored
      by introducing another layer.
      
      * include/freetype/fterrors.h (FT_ERRORDEF_, FT_NOERRORDEF_): New
      macros.
      (FT_NOERRORDEF): Removed.
      * include/*/*err*.h: Use FT_ERRORDEF_ and FT_NOERRORDEF_.
      f8e9f426
  19. 14 Jun, 2001 1 commit
    • David Turner's avatar
      modified the TrueType interpreter to let it · 686901a1
      David Turner authored
              use the new trigonometric functions provided in "fttrigon.h". This
              gets rid of some old 64-bit computation routines, as well as many
              warnings when compiling the library with the "long long" 64-bit
              integer type.
      686901a1
  20. 08 Jun, 2001 2 commits
    • Werner Lemberg's avatar
      Increase `version_info' to 7:0:1. · 645f60b8
      Werner Lemberg authored
      Fixed a bug that returned an invalid linear width for composite
      TrueType glyphs.
      * include/internal/tttypes.h (TT_Loader_): Two new elements `linear'
      and `linear_def'.
      * src/truetype/ttgload.c (load_truetype_glyph,
      compute_glyph_metrics): Use it.
      * include/fttypes.h (FT_ERROR_BASE): New macro.
      * src/base/ftobjs.c (FT_Open_Face, FT_Render_Glyph_Internal): Use it
      to make source code work with the new error scheme implemented by
      Werner.
      * src/base/ftoutln.c (FT_Outline_Render): Ditto.
      645f60b8
    • David Turner's avatar
      fixed a bug that returned an invalid linear width for composite · 1ad51db6
      David Turner authored
      TrueType glyphs
      
      fixed source code to work with the new error scheme implemented
      by Werner
      1ad51db6
  21. 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
  22. 16 May, 2001 1 commit
  23. 06 Apr, 2001 1 commit
    • Werner Lemberg's avatar
      * builds/os2/*.mk: These files have been forgotten to update to · 0bb24e74
      Werner Lemberg authored
      the structure of similar makefiles.
      * builds/dos/*.mk: Ditto.
      * builds/ansi/*.mk: Ditto.
      
      * builds/win32/win32-def.mk (BUILD): Fix typo.
      
      * builds/compiler/*.mk (CLEAN_LIBRARY): Don't use NO_OUTPUT.
      This is already used in the link_*.mk files.
      
      
      * src/*/Jamfile: Slight changes	to make files more cryptic.
      0bb24e74
  24. 03 Apr, 2001 1 commit
  25. 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
  26. 24 Mar, 2001 1 commit
  27. 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