1. 26 May, 2005 1 commit
    • Werner Lemberg's avatar
      · 6d8c1821
      Werner Lemberg authored
      * docs/GPL.txt: Update postal address of FSF.
      
      
      * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Improve
      documentation.
      
      * src/base/ftsynth.c (FT_BOLD_THRESHOLD): Removed.
      (FT_GlyphSlot_Embolden): Check whether slot is bitmap owner.
      Always modify the metrics.
      6d8c1821
  2. 25 May, 2005 1 commit
    • Werner Lemberg's avatar
      · afb2ba57
      Werner Lemberg authored
      * docs/CHANGES: Updated.
      
      
      * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): New declaration.
      
      * include/freetype/ftoutln.h (FT_Outline_Embolden): New declaration.
      
      * src/base/ftbitmap.c (ft_bitmap_assure_buffer): New auxiliary
      function.
      (FT_Bitmap_Embolden): New function.
      
      * src/base/ftoutln.c (FT_Outline_Embolden): New function.
      
      * src/base/ftsynth.c: Don't include FT_INTERNAL_CALC_H and
      FT_TRIGONOMETRY_H but FT_BITMAP_H.
      (FT_GlyphSlot_Embolden): Use FT_Outline_Embolden or
      FT_Bitmap_Embolden.
      afb2ba57
  3. 24 May, 2005 2 commits
    • Werner Lemberg's avatar
      · b4119a93
      Werner Lemberg authored
      * README.CVS: Mention file permissions.
      b4119a93
    • Werner Lemberg's avatar
      · 67d546a8
      Werner Lemberg authored
      * configure: Always remove config.mk, builds/unix/unix-def.mk, and
      builds/unix/unix-cc.mk.  This fixes repeated calls of the script.
      Reported by Nelson Beebe and Behdad Esfahbod.
      67d546a8
  4. 23 May, 2005 4 commits
    • Werner Lemberg's avatar
      Fix ChangeLog. · b8b8de80
      Werner Lemberg authored
      b8b8de80
    • Werner Lemberg's avatar
      · 92aa527a
      Werner Lemberg authored
      * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk
      (CFLAGS), builds/compiler/gcc.mk (CFLAGS): Remove
      -fno-strict-aliasing.
      
      
      Say you have `(Foo*)x' and want to assign, pass, or return it as
      `(Bar*)'.  If you simply say `x' or `(Bar*)x', then the C compiler
      would warn you that type casting incompatible pointer types breaks
      strict-aliasing.  The solution is to cast to `(void*)' instead which
      is the generic pointer type, so the compiler knows that it should
      make no strict-aliasing assumption on `x'.  But the problem with
      `(void*)x' is that seems like in C++, unlike C, `void*' is not a
      generic pointer type and assigning `void*' to `Bar*' without a cast
      causes an error.  The solution is to cast to `Bar*' too, with
      `(Bar*)(void*)x' as the result -- this is what the patch does.
      
      * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP),
      include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Remove
      cast on lvalue, use a temporary pointer instead.
      Cast temporarily to (void*) to not break strict aliasing.
      
      * include/freetype/internal/ftmemory.h (FT_MEM_ALLOC,
      FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC, FT_MEM_FREE),
      src/base/ftglyph.c (FT_Glyph_To_Bitmap): Cast temporarily to (void*)
      to not break strict aliasing.
      
      * src/base/ftinit.c (FT_USE_MODULE): Fix wrong type information.
      
      * builds/unix/configure.ac (XX_CFLAGS): Remove -fno-strict-aliasing.
      
      * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c --
      it is currently loaded from ttsbit.c.
      
      
      Other formatting.
      92aa527a
    • David Turner's avatar
      * include/freetype/cache/ftcache.h, src/cache/ftccache.c, · f9e05597
      David Turner authored
          src/cache/ftcsbits.c: fixing bug #12213 (incorrect behaviour
          of the cache sub-system in low-memory conditions).
      f9e05597
    • Werner Lemberg's avatar
      · a4dbed30
      Werner Lemberg authored
      * src/base/rules.mk (BASE_SRC): Don't add ftsynth.c here but...
      (BASE_EXT_SRC): Here.
      a4dbed30
  5. 22 May, 2005 3 commits
    • Werner Lemberg's avatar
      · 8a62ea25
      Werner Lemberg authored
      * src/base/rules.mk (BASE_SRC): Add ftsynth.c.
      8a62ea25
    • Werner Lemberg's avatar
      Fix ChangeLog. · e75c81a3
      Werner Lemberg authored
      e75c81a3
    • Werner Lemberg's avatar
      · f814f682
      Werner Lemberg authored
      * src/base/ftrfork.c (raccess_guess_apple_generic): Mark
      `version_number' and `entry_length' as unused.
      (raccess_guess_linux_double_from_file_name): Remove `memory'.
      (raccess_make_file_name): Mark `error' as unused.
      
      * src/bdf/bdflib.c (_bdf_parse_properties): Remove `memory'.
      
      * src/cid/cidobjs.c (cid_face_init): Remove `psnames'.
      
      * src/sfnt/sfobjs.c (sfnt_load_face): Remove `memory'.
      
      * src/truetype/ttgxvar.c (ft_var_readpackedpoints,
      ft_var_readpackeddeltas, ft_var_load_avar): Mark `error' as unused.
      f814f682
  6. 21 May, 2005 1 commit
  7. 20 May, 2005 2 commits
    • Werner Lemberg's avatar
      · b9ee7370
      Werner Lemberg authored
      * docs/CHANGES: Updated.
      
      * src/base/ftbitmap.c: Don't include FT_FREETYPE_H and FT_IMAGE_H
      but FT_BITMAP_H.
      (FT_Bitmap_Copy): New function (from ftglyph.c).
      
      * include/freetype/ftbitmap.h (FT_Bitmap_Copy): New public
      definition.
      
      * src/base/ftglyph.c: Include FT_BITMAP_H.
      (ft_bitmap_copy): Move to ftbitmap.c.
      (ft_bitmap_glyph_init): Remove `memory' variable.
      Create new bitmap object if FT_GLYPH_OWN_BITMAP isn't set.
      (ft_bitmap_glyph_copy): Use FT_Bitmap_Copy.
      (ft_bitmap_glyph_done): Use FT_Bitmap_Done.
      (ft_outline_glyph_init): Use FT_Outline_Copy.
      
      * src/base/ftoutln.c (FT_Outline_Copy): Handle source == target.
      (FT_Outline_Done_Internal): Check for valid `memory' pointer.
      (FT_Outline_Translate, FT_Outline_Reverse, FT_Outline_Render,
      FT_Outline_Transform): Check for valid `outline' pointer.
      
      * src/base/ftobjs.c (FT_New_GlyphSlot): Prepend glyph slot to
      face->glyph, otherwise a new second glyph slot cannot be created.
      (FT_Done_GlyphSlot): Fix memory leak.
      (FT_Open_Face): Updated -- face->glyph is already managed by
      FT_New_GlyphSlot.
      
      * src/type42/t42objs.c (T42_GlyphSlot_Done): Updated.
      b9ee7370
    • Werner Lemberg's avatar
      · 8ae1dceb
      Werner Lemberg authored
      * include/freetype/ftimage.h (FT_Raster_Params),
      include/freetype/ftoutln.h (FT_Outline_Translate,
      FT_Outline_Transform), src/base/ftoutln.c (FT_Outline_Translate,
      FT_Outline_Transform): Decorate parameters with `const' where
      appropriate.
      Update all callers.
      
      * src/raster/ftraster.c (ft_black_reset), src/smooth/ftgrays.c
      (gray_raster_reset): Remove `const' from `pool_base' argument.
      8ae1dceb
  8. 19 May, 2005 2 commits
    • Werner Lemberg's avatar
      · e623bfa8
      Werner Lemberg authored
      typo
      e623bfa8
    • Werner Lemberg's avatar
      · f9fccbee
      Werner Lemberg authored
      * src/raster/ftmisc.h: New file.  Only needed if ftraster.c is
      compiled as stand-alone.
      
      * src/raster/ftraster.c: Add comment how to compile as stand-alone.
      s/FT_CONFIG_OPTION_STATIC_RASTER/FT_STATIC_RASTER/.
      s/TT_STATIC_RASTER/FT_STATIC_RASTER/.
      [_STANDALONE_]: Include ftimage.h and ftmisc.h.
      (FT_TRACE1, FT_TRACE6, ft_memset, FT_MEM_ZERO): Define
      conditionally.
      (Render_Glyph, Render_Gray_Glyph): Return Raster_Err_None (or
      Raster_Err_Unsupported).
      (ft_black_new) [_STANDALONE_]: Fix type of `the_raster'.
      (ft_black_init, ft_black_reset, ft_black_set_mode, ft_black_render):
      Use `ras', not `raster'.
      (ft_black_done): Use FT_UNUSED_RASTER.
      (Horizontal_Sweep_Init, Horizontal_Sweep_Step,
      Horizontal_Gray_Sweep_Span): Use FT_UNUSED_RASTER.
      
      
      * docs/CHANGES: Updated.
      f9fccbee
  9. 18 May, 2005 1 commit
    • Werner Lemberg's avatar
      · eaab4a3c
      Werner Lemberg authored
      * docs/announce: Start updating.
      eaab4a3c
  10. 17 May, 2005 2 commits
    • Werner Lemberg's avatar
      Add missing ChangeLog entry. · fe25ac74
      Werner Lemberg authored
      fe25ac74
    • Werner Lemberg's avatar
      · ce235eaf
      Werner Lemberg authored
      * builds/win32/visualc/freetype.vcproj: Updated.
      Exclude debug info for `Release' versions to reduce library size.
      
      
      * src/base/ftobjs.c (FT_Open_Face): Make it work as documented, this
      is, ignore `aface' completely if face_index < 0.  Reported by David
      Osborn <spam@habitualhiatus.com>.
      
      
      * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
      FT_Outline_LineTo_Func, FT_Outline_ConicToFunc,
      FT_Outline_CubicToFunc), src/smooth/ftgrays.c (gray_render_conic,
      gray_render_cubic, gray_move_to, gray_line_to, gray_conic_to,
      gray_cubic_to, gray_render_span, gray_sweep): Decorate parameters
      with `const' where appropriate.
      ce235eaf
  11. 11 May, 2005 1 commit
    • Werner Lemberg's avatar
      · fa420250
      Werner Lemberg authored
      * include/freetype/ftimage.h (FT_Raster_RenderFunc),
      include/freetype/ftrender.h (FT_Glyph_TransformFunc,
      FT_Renderer_Render_Func, FT_Renderer_TransformFunc),
      src/base/ftglyph.c (ft_outline_glyph_transform),
      src/raster/ftrend1.c (ft_raster1_transform, ft_raster1_render),
      src/smooth/ftgrays.c (FT_Outline_Decompose, gray_raster_render),
      src/smooth/ftsmooth.c (ft_smooth_transform,
      ft_smooth_render_generic, ft_smooth_render, ft_smooth_render_lcd,
      ft_smooth_render_lcd_v): Decorate parameters with `const' where
      appropriate.
      
      * src/raster/ftraster.c (RASTER_RENDER_POOL): Removed.  Obsolete.
      (ft_black_render): Decorate parameters with `const' where
      appropriate.
      
      
      * src/sfnt/ttcmap.c (tt_cmap4_set_range): Fix typo (FT_PEEK_SHORT ->
      FT_PEEK_USHORT) which caused crashes.  Reported by Ismail Donmez
      <ismail@kde.org.tr>.
      fa420250
  12. 09 May, 2005 2 commits
    • Werner Lemberg's avatar
      · 958f019d
      Werner Lemberg authored
      * include/freetype/internal/ftserv.h (FT_FACE_FIND_GLOBAL_SERVICE)
      [__cplusplus]: Fix typo.
      958f019d
    • Werner Lemberg's avatar
      · 22ad9ef0
      Werner Lemberg authored
      Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck
      Blaskey).
      
      * src/sfnt/ttcmap.h (TT_CMap): Add member `unsorted'.
      * src/sfnt/ttcmac.c: Use SFNT_Err_Ok where appropriate.
      
      (tt_cmap0_validate, tt_cmap2_validate, tt_cmap6_validate,
      tt_cmap8_validate, tt_cmap10_validate, tt_cmap12_validate): Use
      `FT_Error' as return type.
      (tt_cmap4_validate): Use `FT_Error' as return type.
      Return error code for unsorted cmap.
      (tt_cmap4_char_index, tt_cmap4_char_next): Use old code for unsorted
      cmaps.
      (tt_face_build_cmaps): Set `unsorted' variable in cmap.
      
      
      Minor formatting.
      22ad9ef0
  13. 07 May, 2005 1 commit
    • Werner Lemberg's avatar
      · 43ebad42
      Werner Lemberg authored
      * src/truetype/ttpload.c (tt_face_get_location): Fix typo.
      43ebad42
  14. 06 May, 2005 1 commit
    • Werner Lemberg's avatar
      · 483daa9f
      Werner Lemberg authored
      * src/cff/cffobjs.c (cff_face_init): Set ppem value in top
      dictionary for SFNT-based CFF.
      483daa9f
  15. 05 May, 2005 1 commit
    • Werner Lemberg's avatar
      · 5452fbe3
      Werner Lemberg authored
      Handle malformed `loca' table entries.
      
      * docs/TODO: Add some bugs which should be fixed.
      
      * include/freetype/internal/tttypes.h (TT_FaceRec): Add `glyf_len'
      element.
      
      * src/truetype/ttpload.c (tt_face_load_loca): Get length of `glyf'
      table.
      (tt_face_get_location): Fix computation of `asize' for malformed
      `loca' entries.
      5452fbe3
  16. 01 May, 2005 1 commit
    • David Turner's avatar
      * Jamfile: removing otvalid from the list of compiled modules · 750fa961
      David Turner authored
        * include/freetype/internal/ftserv.h: added compiler pragmas to get rid
          of annoying warnings with Visual C++ compiler in maximum warning mode
      
        * src/autofit/afhints.c, src/autofit/aflatin.c, src/base/ftstroke.c,
          src/bdf/bdfdrivr.c, src/cache/ftcbasic.c, src/cache/ftccmap.c,
          src/cache/ftcmanag.c, src/cff/cffload.c, src/cid/cidload.c,
          src/lzw/zopen.c, src/otvalid/otvgdef.c, src/pcf/pcfread.c,
          src/sfnt/sfobjs.c, src/truetype/ttgxvar.c: removing compiler warnings
      750fa961
  17. 28 Apr, 2005 1 commit
    • Werner Lemberg's avatar
      · a0a3aa93
      Werner Lemberg authored
      * docs/TODO: Updated.
      a0a3aa93
  18. 24 Apr, 2005 1 commit
    • Werner Lemberg's avatar
      · ea5b8562
      Werner Lemberg authored
      * src/otvalid/otvcommn.c
      (otv_GSUBGPOS_have_MarkAttachmentType_flag): Handle table == 0.
      ea5b8562
  19. 18 Apr, 2005 1 commit
    • Werner Lemberg's avatar
      · b01676b2
      Werner Lemberg authored
      * src/cff/cffobjs.c (cff_face_init): Set default upem value in top
      font dict also.
      Handle font matrix settings in subfonts.
      
      * src/cff/cffgload.c (cff_slot_load): Use the correct font matrix
      for CID-keyed fonts with subfonts.
      
      * docs/formats.txt: Updated.
      b01676b2
  20. 14 Apr, 2005 2 commits
    • Werner Lemberg's avatar
      · c01c9042
      Werner Lemberg authored
      * include/freetype/freetype.h (FT_Vector_Transform),
      include/freetype/ftimage.h (FT_Raster_Params),
      include/freetype/ftoutln.h, src/base/ftoutln.c (FT_Outline_Get_CBox,
      FT_Outline_Copy, FT_Outline_Transform, FT_Vector_Transform,
      FT_Outline_Get_Bitmap), src/raster/ftraster.c (ft_black_render),
      src/smooth/ftgrays.c (gray_raster_render): Decorate parameters with
      `const' where appropriate.
      
      * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix arguments
      to call of tt_sbit_decoder_load_bitmap.
      c01c9042
    • Werner Lemberg's avatar
      · e7602c4b
      Werner Lemberg authored
      * src/type1/t1load.c (parse_charstrings): Catch this non-standard
      beginning of the /CharStrings dictionary:
      
        /CharStrings 118 dict def
        Private begin
        CharStrings begin
      e7602c4b
  21. 13 Apr, 2005 1 commit
    • Werner Lemberg's avatar
      · 1ea53e87
      Werner Lemberg authored
      * docs/TODO: Updated.
      
      * autogen.sh: Use `--force' for all commands.
      1ea53e87
  22. 09 Apr, 2005 1 commit
    • Werner Lemberg's avatar
      · 4f65eed8
      Werner Lemberg authored
      src/pshinter/pshalgo.c (ps_hints_apply): Change scaling values only
      if `fitted' is not zero.
      4f65eed8
  23. 06 Apr, 2005 1 commit
    • Werner Lemberg's avatar
      · 8744edfe
      Werner Lemberg authored
      * src/truetype/ttgload.c (tt_face_get_metrics) [FT_OPTIMIZE_MEMORY]:
      Fix typo which sometimes causes wrong metrics for the last glyph.
      8744edfe
  24. 04 Apr, 2005 1 commit
  25. 03 Apr, 2005 3 commits
    • David Turner's avatar
      * include/freetype/config/ftoption.h: commenting the definition of · 0529ba8d
      David Turner authored
          FT_OPTIMIZE_MEMORY for the upcoming 2.1.10 release
      
          * src/autofit/afhints.c: small tweak to use a bit less heap memory
          within the auto-fitter
      0529ba8d
    • Werner Lemberg's avatar
      · 730b7b1f
      Werner Lemberg authored
      * src/type1/t1parse.c (T1_New_Parser): Relax the check for a valid
      first line in the font.
      730b7b1f
    • Werner Lemberg's avatar
      · a76108ba
      Werner Lemberg authored
      * docs/CHANGES, include/freetype/freetype.h: Improve documentation
      of FT_Set_Pixel_Sizes and FT_Set_Char_Size.
      a76108ba
  26. 01 Apr, 2005 1 commit
    • Werner Lemberg's avatar
      · e5bcbf95
      Werner Lemberg authored
      Add comment about hard-coded dropout mode.
      e5bcbf95
  27. 26 Mar, 2005 1 commit
    • Werner Lemberg's avatar
      · a6e9ff3d
      Werner Lemberg authored
      * builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix buffer
      offsets after a large read.
      a6e9ff3d