1. 22 Mar, 2002 2 commits
    • 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
    • David Turner's avatar
      * include/freetype/internal/ftstream.h, · c9bcd833
      David Turner authored
                src/base/ftstream.c, src/cff/cffload.c, src/pcf/pcfread.c,
                src/sfnt/ttcmap.c, src/sfnt/ttcmap0.c, src/sfnt/ttload.c,
                src/sfnt/ttpost.c, src/sfnt/ttsbit.c,
                src/truetype/ttgload.c, src/truetype/ttpload.c,
                src/winfonts/winfnt.c:
      
                  changed the definitions of stream macros. Examples:
      
                    NEXT_Byte     => FT_NEXT_BYTE
                    NEXT_Short    => FT_NEXT_SHORT
                    NEXT_UShortLE => FT_NEXT_USHORT_LE
                    READ_Short    => FT_READ_SHORT
                    GET_Long      => FT_GET_LONG
                    etc..
      
                  also introduced the FT_PEEK_XXXX functions..
      c9bcd833
  2. 20 Mar, 2002 1 commit
  3. 14 Mar, 2002 3 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
    • David Turner's avatar
      * include/freetype/internal/ftdriver.h, · 9e1cfb80
      David Turner authored
                include/freetype/internal/ftobjs.h,
                src/base/ftapi.c, src/base/ftobjs.c,
                src/cff/cffdrivr.c, src/cff/cffdrivr.h,
                src/cid/cidriver.c, src/cid/cidriver.h,
                src/pcf/pcfdriver.c, src/pcf/pcfdriver.h,
                src/truetype/ttdriver.c, src/truetype/ttdriver.h,
                src/type1/t1driver.c, src/type1/t1driver.h,
                src/winfonts/winfnt.c, src/winfonts/winfnt.h:
                updating the type definitions for font font drivers
      9e1cfb80
  4. 07 Mar, 2002 1 commit
    • Werner Lemberg's avatar
      · 769430fc
      Werner Lemberg authored
      * src/base/ftdbgmem.c (ft_mem_table_resize, ft_mem_table_new,
      ft_mem_table_set, ft_mem_debug_alloc, ft_mem_debug_free,
      ft_mem_debug_realloc, ft_mem_debug_done, FT_Alloc_Debug,
      FT_Realloc_Debug, FT_Free_Debug): Fix compiler warnings.
      * src/base/ftcalc.c (FT_MulFix): Ditto.
      * src/cff/cffdrivr.c (cff_get_name_index): Ditto.
      * src/cff/cffobjs.c (CFF_Size_Get_Global_Funcs, CFF_Size_Init,
      CFF_GlyphSlot_Init): Ditto.
      * src/cid/cidobjs.c (CID_GlyphSlot_Init,
      CID_Size_Get_Globals_Funcs): Ditto.
      * src/type1/t1objs.c (T1_Size_Get_Globals_Funcs, T1_GlyphSlot_Init):
      Ditto.
      * src/pshinter/pshmod.c (pshinter_interface): Use `static const'.
      * src/winfonts/winfnt.c (FNT_Get_Next_Char): Remove unused
      variables.
      
      * include/freetype/internal/psaux.h (T1_Builder_Funcs): Renamed
      to...
      (T1_Builder_FuncsRec): This.
      (T1_Builder_Funcs): New typedef.
      (PSAux_Interface): Remove compiler warnings.
      * src/psaux/psauxmod.c (t1_builder_funcs), src/psaux/psobjs.h
      (t1_builder_funcs): Updated.
      
      * src/pshinter/pshglob.h (PSH_Blue_Align): Replaced with ...
      (PSH_BLUE_ALIGN_{NONE,TOP,BOT}): New defines.
      (PSH_AlignmentRec): Updated.
      
      * include/freetype/internal/ftstream.h (GET_Char, GET_Byte): Fix
      typo.
      * include/freetype/internal/ftgloadr.h (FT_SubGlyph): Ditto.
      * src/base/ftstream (FT_Get_Char): Rename to...
      (FT_Stream_Get_Char): This.
      
      * src/base/ftnames.c (FT_Get_Sfnt_Name): s/index/idx/ -- `index' is
      a built-in function in gcc, causing warning messages with gcc 3.0.
      * src/autohint/ahglyph.c (ah_outline_load): Ditto.
      * src/autohint/ahglobal.c (ah_hinter_compute_blues): Ditto.
      * src/cache/ftcmanag.c (ftc_family_table_alloc,
      ftc_family_table_free, FTC_Manager_Done, FTC_Manager_Register_Cache):
      Ditto.
      * src/cff/cffload.c (cff_new_index, cff_done_index,
      cff_explicit_index, CFF_Access_Element, CFF_Forget_Element,
      CFF_Get_Name, CFF_Get_String, CFF_Load_SubFont, CFF_Load_Font,
      CFF_Done_Font): Ditto.
      * src/psaux/psobjs.c (PS_Table_Add, PS_Parser_LoadField): Ditto.
      * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Ditto.
      * src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_clear_bit,
      ps_mask_set_bit, ps_dimension_add_t1stem, ps_hints_t1stem3,
      * src/pshinter/pshalgo1.c (psh1_hint_table_record,
      psh1_hint_table_record_mask, psh1_hint_table_activate_mask): Ditto.
      * src/pshinter/pshalgo2.c (psh2_hint_table_record,
      psh2_hint_table_record_mask, psh2_hint_table_activate_mask): Ditto.
      * src/sfnt/ttpost.c (Load_Format_20, Load_Format_25,
      TT_Get_PS_Name): Ditto.
      * src/truetype/ttgload.c (TT_Get_Metrics, Get_HMetrics,
      load_truetype_glyph): Ditto.
      * src/type1/t1load.c (parse_subrs, T1_Open_Face): Ditto.
      * src/type1/t1afm.c (T1_Get_Kerning): Ditto.
      * include/freetype/cache/ftcmanag.h (ftc_family_table_free): Ditto.
      769430fc
  5. 01 Mar, 2002 1 commit
  6. 28 Feb, 2002 1 commit
  7. 24 Feb, 2002 1 commit
  8. 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
  9. 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
  10. 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
  11. 06 Jan, 2002 2 commits
  12. 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
  13. 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
  14. 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
  15. 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
  16. 14 Dec, 2001 2 commits
  17. 18 Oct, 2001 1 commit
  18. 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
  19. 07 Jul, 2001 2 commits
  20. 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
  21. 27 Jun, 2001 2 commits
  22. 19 Jun, 2001 3 commits
  23. 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
  24. 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
  25. 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