History log of /external/freetype/src/base/ftbitmap.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a0c22569deab933df21127e75db5c81f724f292 02-Jan-2018 Werner Lemberg <wl@gnu.org> Update copyright year.
/external/freetype/src/base/ftbitmap.c
14cd07343721cec1b657322f75603f984733b677 27-Dec-2017 Werner Lemberg <wl@gnu.org> Fix compiler warnings.

* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Make `pitch' and
`new_pitch' unsigned.

* src/base/ftpsprop.c: Include FT_INTERNAL_POSTSCRIPT_PROPS_H.
/external/freetype/src/base/ftbitmap.c
2c048a8a622e9f44f255aa3316026f124ac9ecbc 11-Dec-2017 Werner Lemberg <wl@gnu.org> Fix compiler warning (#52640).

* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Remove unused
variable.
/external/freetype/src/base/ftbitmap.c
e1090c608b72dcfc1899c33974acd056e120aa53 08-Dec-2017 Werner Lemberg <wl@gnu.org> Fix access to uninitalized memory (#52613).

Also reported as

https://bugs.chromium.org/p/chromium/issues/detail?id=791317

* src/base/ftbitmap.c (ft_bitmap_assure_buffer): If increasing the
bitmap size needs a larger bitmap buffer, assure that the new memory
areas are initialized also.
/external/freetype/src/base/ftbitmap.c
87ddad20076d330c4139757054d783be9b3c56ab 04-Dec-2017 Werner Lemberg <wl@gnu.org> Update or fix links to use the https protocol instead of http.
/external/freetype/src/base/ftbitmap.c
a3dd6d99a4c9f61667e5c996c0997cdd0207fc73 05-Sep-2017 Werner Lemberg <wl@gnu.org> Fix multiple calls of `FT_Bitmap_Convert'.

The documentation of `FT_Bitmap_Convert' says that multiple calls do
proper reallocation of the target FT_Bitmap object. However, this
failed for the sequence

non-empty bitmap
empty bitmap
non-empty bitmap

Reason was that `FT_Bitmap_Convert' only reallocated the bitmap
buffer if it became too small; it didn't make the buffer smaller.
For an empty bitmap following a non-empty one, only the buffer
dimension got set to zero, without deallocation. If the next call
was a non-empty buffer again, an assertion in `ft_mem_qrealloc' was
triggered.

* src/base/ftbitmap.c (FT_Bitmap_Convert): Always reallocate target
buffer to the correct size.

* docs/CHANGES: Document it.
/external/freetype/src/base/ftbitmap.c
f0898b9259d4b3b99a1e720924683730dd36d3db 26-Aug-2017 Alexei Podtelezhnikov <apodtele@gmail.com> Swap `ALLOC_MULT' arguments (#51833).

* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Updated.
* src/winfonts/winfnt.c (FNT_Load_Glyph): Updated.
* src/raster/ftrend1.c (ft_raster1_render): Updated.
/external/freetype/src/base/ftbitmap.c
563ae780229aef5b6f6ae361211d5fb733de8321 04-Jan-2017 Werner Lemberg <wl@gnu.org> Update copyright year.
/external/freetype/src/base/ftbitmap.c
4441f7b24675fbd7d91f794f5d54e6c1ff168439 26-Dec-2016 Werner Lemberg <wl@gnu.org> Replace `foo == NULL' and `foo != NULL' with `!foo' and `foo', resp.

Other minor formatting.
/external/freetype/src/base/ftbitmap.c
32950391077e84d39ea539cd721201220b35ab3e 15-Feb-2016 Werner Lemberg <wl@gnu.org> Whitespace.
/external/freetype/src/base/ftbitmap.c
9adeab6452a220270c311f756d55acd734fd52ea 13-Jan-2016 Werner Lemberg <wl@gnu.org> Update copyright year.
/external/freetype/src/base/ftbitmap.c
eee7d8baa156f8488e1351b84bb2f8ebf20fec82 10-Mar-2015 Werner Lemberg <wl@gnu.org> [base] Rename `FT_Bitmap_New' to `FT_Bitmap_Init'.

* include/ftbitmap.h, src/base/ftbitmap.c: Implement it.
Update all callers.

* docs/CHANGES: Updated.
/external/freetype/src/base/ftbitmap.c
2e814fc045cd1b3d3a367b95fb49a1547da59ed3 16-Feb-2015 Werner Lemberg <wl@gnu.org> More minor signedness warning fixes.

* src/base/ftbbox.c, src/base/ftbitmap.c, src/base/fttrigon.c,
src/base/ftutil.c: Apply.
/external/freetype/src/base/ftbitmap.c
f57fc59e016217687362b6fbbc4842fab932175c 17-Jan-2015 Werner Lemberg <wl@gnu.org> Run `src/tools/update-copyright'.
/external/freetype/src/base/ftbitmap.c
0098d5502d384e1dd41ec42a3cbf9dee1916ed72 07-Dec-2014 Werner Lemberg <wl@gnu.org> Uppercase all hex digits for orthogonality.
/external/freetype/src/base/ftbitmap.c
644d6fab7e0d1878e6453d7091cfdabba7a8197f 21-Nov-2014 Werner Lemberg <wl@gnu.org> * src/base/ftbitmap.c (FT_Bitmap_Convert): Improve.

This commit completes argument checks and adds support for different
flow directions.
/external/freetype/src/base/ftbitmap.c
6de761744cad81c3ab53db0b77fb56c69cdfbac7 21-Nov-2014 Werner Lemberg <wl@gnu.org> * src/base/ftbitmap.c (FT_Bitmap_Copy): Improve.

This commit adds argument checks and support for different flow
directions.
/external/freetype/src/base/ftbitmap.c
1e6e1b8390868c1a1c749f0a8434381bc9724c95 20-Nov-2014 Werner Lemberg <wl@gnu.org> * src/base/ftbitmap.c (FT_Bitmap_New): Check argument.
/external/freetype/src/base/ftbitmap.c
b3500af717010137046ec4076d1e1c0641e33727 19-Nov-2014 Werner Lemberg <wl@gnu.org> Change some fields in `FT_Bitmap' to unsigned type.

This doesn't break ABI.

* include/ftimage.h (FT_Bitmap): Make `rows', `width', `num_grays',
`pixel_mode', and `palette_mode' unsigned types.

* src/base/ftbitmap.c: Updated.
(FT_Bitmap_Copy): Fix casts.

* src/cache/ftcsbits.c, src/raster/ftraster.c, src/sfnt/pngshim.c:
Updated.
/external/freetype/src/base/ftbitmap.c
df485774fbbc7fd7dc9d3b278846f454654ad5df 19-Nov-2014 Werner Lemberg <wl@gnu.org> Make `FT_Bitmap_Convert' correctly handle negative `pitch' values.

* src/base/ftbitmap.c (FT_Bitmap_Convert): Always use positive value
for the pitch while copying data.
Correctly set pitch sign in target bitmap.
/external/freetype/src/base/ftbitmap.c
d6061212c3bcef9082253a7ed40128fac5214c0f 19-Nov-2014 Werner Lemberg <wl@gnu.org> Minor code improvement in `FT_Bitmap_Embolden'.

* src/base/ftbitmap.c (FT_Bitmap_Embolden) <FT_PIXEL_MODE_GRAY[24]>:
Fix thinko.
/external/freetype/src/base/ftbitmap.c
8d05486eab0035cf62bb0b85353b84c6b3b9fbba 19-Nov-2014 Werner Lemberg <wl@gnu.org> Minor documentation improvements and whitespace.
/external/freetype/src/base/ftbitmap.c
237c0abfdc44815241f497569d202b85d170571e 20-Nov-2014 Alexei Podtelezhnikov <apodtele@gmail.com> Trailing space.
/external/freetype/src/base/ftbitmap.c
90be4b6377f47c9e8241beaf0decf0466555ab50 09-Aug-2014 Alexei Podtelezhnikov <apodtele@gmail.com> * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Refactor.
/external/freetype/src/base/ftbitmap.c
3939c200f39a28e7c87d60ca4fc9de7b2823dd18 17-Jul-2014 Werner Lemberg <wl@gnu.org> Minor.
/external/freetype/src/base/ftbitmap.c
1183cd4e17675ec699bb0327d9816d0be8af4d4b 15-Jul-2014 Alexei Podtelezhnikov <apodtele@gmail.com> [base] Further clean up color bitmap conversion.

* src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Stop
using FT_MulFix and FT_DivFix since all calculations fit into 32 bits.
/external/freetype/src/base/ftbitmap.c
35576bf067624e18397e3a72148b82c7cf3b849b 12-Jul-2014 Alexei Podtelezhnikov <apodtele@gmail.com> [base] Clean up bitmap conversion.

* src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
appropriate FT_DivFix and remove superfluous upscaling.
/external/freetype/src/base/ftbitmap.c
7be2a94a50109773459414687151d70a99a1b6bd 08-Feb-2014 Sean McBride <sean@rogue-research.com> Fix clang static analyzer and compiler warnings.

* src/autofit/afhints.c (af_glyph_hints_align_weak_points),
src/autofit/afloader (af_loader_load_g) <FT_GLYPH_FORMAT_COMPOSITE>,
src/base/ftcalc.c (FT_MSB), src/base/ftoutln.c
(FT_Outline_Decompose), src/bdf/bdfdrivr.c (bdf_interpret_style),
src/cff/cffparse.c (cff_parse_integer), src/cid/cidparse.c
(cid_parser_new), src/pfr/pfrload.c (pfr_phy_font_load),
src/raster/ftraster.c (Decompose_Curve), src/sfnt/sfdriver.c
(sfnt_get_ps_name), src/sfnt/ttcmap.c (tt_cmap12_next,
tt_cmap13_next), src/smooth/ftgrays.c (gray_hline): Remove dead
code.

* src/autofit/afmodule.c (af_property_get_face_globals,
af_property_set, af_property_get), src/base/ftbitmap.c
(ft_gray_for_premultiplied_srgb_bgra): Make functions static.

* src/base/ftobjs.c (ft_remove_renderer): Protect against
library == NULL.
(ft_property_do): Make function static.

* src/base/ftrfork.c: Include `ftbase.h'.

* src/sfnt/ttsbit.c (tt_face_load_sbix_image)
[!FT_CONFIG_OPTION_USE_PNG], src/type1/t1gload.c
(T1_Compute_Max_Advance): Avoid compiler warning.

* src/truetype/ttinterp.c (TT_New_Context): Reduce scope of
variable.
/external/freetype/src/base/ftbitmap.c
cc34efca99c4275d0f799624fcd20ebd1963efaf 31-Jul-2013 Werner Lemberg <wl@gnu.org> Minor.
/external/freetype/src/base/ftbitmap.c
f2e7f1e1dd5452f915759e918a91c803f03bb8aa 30-Jul-2013 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 2013-07-30 Behdad Esfahbod <behdad@google.com>

Prevent division by zero by a transparent color.

* src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra):
Return 0 immediately, when alpha channel is zero.
/external/freetype/src/base/ftbitmap.c
45392b77a8207d9e60b6c7c2aea3e1b659da2519 05-Jun-2013 Werner Lemberg <wl@gnu.org> Fix compiler warnings.

* include/freetype/internal/ftmemory.h: Decorate memory allocation
macros with `FT_Long' where appropriate.
Remove duplicate of FT_MEM_QRENEW_ARRAY definition.

* src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
cast.

* src/base/ftobjs.c: Add warning disabling pragma for MSVC while
including `md5.c'.

* src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdESC>: Add
cast.

* src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Fix casts.
(tt_sbit_decoder_load_bitmap): Beautification.

* src/smooth/ftsmooth.c (ft_smooth_render_generic): Initialize
variables (earlier).

* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Pacify compiler.

* src/truetype/ttgxvar.c (TT_Get_MM_Var): Use unsigned constants
where appropriate.

* src/type1/t1load.c (T1_Get_MM_Var): Ditto.
/external/freetype/src/base/ftbitmap.c
760d342d37ec9b26420956e3421075d410571b65 29-May-2013 Behdad Esfahbod <behdad@google.com> Add support for color embedded bitmaps (eg. color emoji).

A new load flag, FT_LOAD_COLOR, makes FreeType load color
embedded-bitmaps, following this draft specification

https://color-emoji.googlecode.com/git/specification/v1.html

which defines two new SFNT tables, `CBDT' and `CBLC' (named and
modeled after `EBDT' and `EBLC', respectively). The color bitmaps
are stored in the new FT_PIXEL_MODE_BGRA format to represent BGRA
pre-multiplied sRGB images. If PNG support is available, PNG color
images as defined in the same proposed specification are supported
also.

Note that color bitmaps are converted to grayscale if client didn't
ask for color.

* builds/unix/configure.raw: Search for libpng.
Add `--without-png' option.

* devel/ftoption.h, include/freetype/config/ftoption.h
(FT_CONFIG_OPTION_USE_PNG): New macro.

* include/freetype/freetype.h (FT_LOAD_COLOR): New load flag.

* include/freetype/ftimage.h (FT_Pixel_Mode): Add
`FT_PIXEL_MODE_BGRA'.

* include/freetype/tttags.h (TTAG_CBDT, TTAG_CBLC): New tags.

* src/base/ftbitmap.c (FT_Bitmap_Embolden): Updated.
(ft_gray_for_premultiplied_srgb_bgra): New function.
(FT_Bitmap_Convert): Handle FT_PIXEL_MODE_BGRA.

* src/sfnt/pngshim.c, src/sfnt/pngshim.h: New files.

* src/sfnt/sfnt.c: Include `pngshim.c'.

* src/sfnt/ttsbit.c: Include FT_BITMAP_H and `pngshim.h'
(tt_face_load_eblc): Load `CBLC'.
(tt_sbit_decoder_init): Load `CBDT'.
(tt_sbit_decoder_alloc_bitmap): Pass load flags to select between
color and grayscale bitmaps.
Set `num_grays'. This is used by `ftview' to choose the blending
algorithm.
(tt_sbit_decoder_load_byte_aligned,
tt_sbit_decoder_load_bit_aligned, tt_sbit_decoder_load_compound,
tt_sbit_decoder_load_image): Pass load flag.
s/write/pwrite/.
Don't call `tt_sbit_decoder_alloc_bitmap'.
Updated.
(tt_sbit_decoder_load_png) [FT_CONFIG_OPTION_USE_PNG]: New function.
(tt_sbit_decoder_load_bitmap): Pass load flag.
Handle new glyph formats 17, 18, and 19.
Call `tt_sbit_decoder_alloc_bitmap'.
Flatten color bitmaps if necessary.
(tt_face_load_sbit_image): Updated.

* src/sfnt/rules.mk (SFNT_DRV_SRC): Add `pngshim.c'.

* docs/CHANGES: Updated.
/external/freetype/src/base/ftbitmap.c
059bc335ce42220b222763379e89d0cbf2b949eb 14-Mar-2013 Werner Lemberg <wl@gnu.org> */*: Use `FT_THROW'.

This is essentially a mechanical conversion, adding inclusion of
`FT_INTERNAL_DEBUG_H' where necessary, and providing the macros for
stand-alone compiling modes of the rasterizer modules.

To convert the remaining occurrences of FT_Err_XXX and friends it is
necessary to rewrite the code. Note, however, that it doesn't harm
if some cases are not handled since FT_THROW is a no-op.
/external/freetype/src/base/ftbitmap.c
1749d8bc6af8108df5a6555a894ed474138f2552 16-Jan-2012 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> Remove trailing spaces.
/external/freetype/src/base/ftbitmap.c
dfb475ab7a9e038875c6e11a7e3ee0acce40ef93 14-Nov-2011 Werner Lemberg <wl@gnu.org> Fix compiler warning.
/external/freetype/src/base/ftbitmap.c
9c98fbf634a83c6ea286395f0e788956eafd5aeb 01-Oct-2011 Werner Lemberg <wl@gnu.org> Handle some border cases.

* include/freetype/config/ftstdlib.h (FT_USHORT_MAX): New macro.

* src/base/ftbitmap.c (FT_Bitmap_Convert): Protect against invalid
value of `target->rows'.

* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add check for
flex start.

* src/raster/ftrend1.c (ft_raster1_render): Check `width' and
`height'.

* src/truetype/ttgxvar.c (TT_Vary_Get_Glyph_Deltas): Protect against
invalid values in `localpoints' array.
/external/freetype/src/base/ftbitmap.c
65a449887d82bf78fab234b9c5df71fdd82173fb 14-Jun-2011 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> [base] Fix g++4.6 compiler warnings in src/base/*.c.

Passing uninitialized pointer to the buffer allocator is
not problematic theoretically (as far as the returned
pointer is checked before writing), but g++4.6 dislikes
it and warns by -Wuninitialized. Initialize them by NULL.

* src/base/ftobjs.c (FT_Stream_New): Init `stream'.
(new_memory_stream): Ditto.
(FT_New_GlyphSlot): Init `slot'.
(FT_CMap_New): Init `cmap'.
(open_face_PS_from_sfnt_stream): Init `sfnt_ps'.
(Mac_Read_POST_Resource): Init `pfb_data'.
(Mac_Read_sfnt_Resource): Init `sfnt_data'.
* src/base/ftrfork.c (FT_Raccess_Get_DataOffsets):
Init `offsets_internal' and `ref'.
(raccess_guess_darwin_hfsplus): Init `newpath'.
(raccess_guess_darwin_newvfs): Ditto.
* src/base/ftbitmap.c (ft_bitmap_assure_buffer):
Init `buffer'.
* src/base/ftstroke.c (FT_Stroker_New): Init `stroker'.
/external/freetype/src/base/ftbitmap.c
e866cf3f5537cfb03cfb87e3e607f13f41f5d299 31-Jul-2009 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> Improve bitmap size or pixel variables for 16-bit systems.
/external/freetype/src/base/ftbitmap.c
a86f1b96b54ec1edeb4a8784d3a963180d0abc3c 06-Jan-2009 Werner Lemberg <wl@gnu.org> FT_Bitmap_Convert: Support missing pixel modes.

* src/base/ftbitmap.c (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_LCD
and FT_PIXEL_MODE_LCD_V. Problem reported by Chi Nguyen
<chint@necsv.com>.
/external/freetype/src/base/ftbitmap.c
c8c4cc837cd917ee6963e206760669377ceb124d 17-Dec-2008 Werner Lemberg <wl@gnu.org> * include/freetype/ftsynth.h, src/basae/ftsynth.c: Move
FT_GlyphSlot_Own_Bitmap to...
* include/freetype/ftbitmap.h, src/base/ftbitmap.c: These files.

* docs/CHANGES: Document it.
/external/freetype/src/base/ftbitmap.c
1dcb4448c12e771898b37818498ef9348a37189e 06-Apr-2007 David Turner <david@freetype.org> fixed a memory buffer overwrite bug. Damn !!
/external/freetype/src/base/ftbitmap.c
24fd93d6ec77155f5c2d604be2f7a1760d575919 29-Mar-2007 Werner Lemberg <wl@gnu.org> formatting
/external/freetype/src/base/ftbitmap.c
3f539694f1c1d6fd14df1a4516c345873f446e77 28-Mar-2007 David Turner <david@freetype.org> fixing bug in the padding zero-ing of the bitmap emboldener
/external/freetype/src/base/ftbitmap.c
27cf9de104bf341e38d90df30bfbfde3dad608c4 13-Jan-2007 Werner Lemberg <wl@gnu.org> formatting, copyright years
/external/freetype/src/base/ftbitmap.c
e3654532eaa012eb913377807d90c2c0cf8b4bfd 13-Jan-2007 David Turner <david@freetype.org> * src/base/ftbitmap.c: fixing memory stomping bug in the
bitmap embolderner when the pitch of the source bitmap is
*much* larger than its width

* src/truetype/ttinterp.c: fixing aliasing-related compilation
warning
/external/freetype/src/base/ftbitmap.c
9ca782569c218e18c420e7c13bdbdf3e9a75c87a 02-May-2006 David Turner <david@freetype.org> * include/freetype/internal/ftmemory.h, src/base/ftbitmap.c,
src/base/ftmac.c, src/base/ftrfork.c, src/lzw/ftzopen.c,
src/raster/ftrend1.c, src/sfnt/ttpost.c, src/truetype/ttgxvar.c,
src/type42/t42parse.c, src/winfonts/winfnt.c: hardening the code
against out-of-bounds conditions when allocating arrays. This is
for the cases where FT_NEW_ARRAY and FT_RENEW_ARRAY are not used
already. Introducing the new FT_ALLOC_MULT and FT_REALLOC_MULT
macros.
/external/freetype/src/base/ftbitmap.c
be3c9814a4dabb718f89ec8edb2249f8ae4ba9ff 27-Jan-2006 Werner Lemberg <wl@gnu.org> Formatting, copyright years.
/external/freetype/src/base/ftbitmap.c
6a681fa84a0ba1164726cedfc3623d84f1e3d60a 27-Jan-2006 David Turner <david@freetype.org> * src/autofit/afwarp.c: simple #ifdef to prevent compilation when
the warp hinter isn't active (it shouldn't, still experimental)

* Jamfile, include/freetype/config/ftmodule.h: removed "gxvalid"
and "otvalid" from the list of modules that are linked statically
to a given FreeType library. Functionality has been moved to the
"ftvalid" CVS module.

note also that current Make-based build system still compiles the
modules though...

* include/freetype/config/ftoption.h: added FT_STRICT_ALIASING,
which controls the definitions of the memory management functions
to avoid warnings with recent versions of GCC. this macro is
only here to be disabled, in case we detect problems with the
new scheme.

NOTE: disable macro to use the memory debugger. this will be fixed
later !!
/external/freetype/src/base/ftbitmap.c
c56216283418771f42842efa72a334f2fc762e63 30-Jun-2005 David Turner <david@freetype.org> * src/sfnt/ftbitmap.c, src/truetype/ttgload.c, src/sfnt/ttcmap.c:
removing compiler warnings (Visual C++ /W4)

* Jamfile, src/otvalid/{otvcommn.h,otvgdef.c,otvgpos.c,otvgsub.c,
otvjstf.c}: modified the code to use a different pre-processor trick
to implement the OTV_NEST1, OTV_NEST2 and OTV_NEST3 macros. The code
now compiles neatly with Visual C++. The 'otvalid' module has been
put in the Jamfile build again.
/external/freetype/src/base/ftbitmap.c
38e82be157ecf6fb43de5d0879bc06df243646a1 30-May-2005 Werner Lemberg <wl@gnu.org> * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Minor
documentation improvements.

* include/freetype/ftoutln.h (FT_Outline_Embolden): Fix typos.

* src/base/ftbitmap.c (FT_Bitmap_Embolden): Add support for bitmap
of pixel_mode FT_PIXEL_MODE_GRAY2 or FT_PIXEL_MODE_GRAY4.
If xstr is larger than 8 and bitmap is of pixel_mode
FT_PIXEL_MODE_MONO, set xstr to 8 instead of returning error.
/external/freetype/src/base/ftbitmap.c
71d7628175c1130e2d698ef558641279de70d553 30-May-2005 Werner Lemberg <wl@gnu.org> * src/base/ftbitmap.c (FT_Bitmap_Embolden): Fix emboldening bitmap
of mode FT_PIXEL_MODE_GRAY. Also add support for mode
FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V.
(ft_bitmap_assure_buffer): FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V
should have ppb (pixel per byte) 1.
Zero the padding when there's no need to allocate memory.

* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle slot->advance
too.
More suited emboldening strength.
/external/freetype/src/base/ftbitmap.c
c162eac55c86261dafe11ba2c31c4fab93c0f4b1 28-May-2005 Werner Lemberg <wl@gnu.org> * src/base/ftbitmap.c (FT_Bitmap_Embolden): Handle negative pitch.
Handle FT_PIXEL_MODE_GRAY with num_gray != 256.
Improve speed for FT_PIXEL_MODE_GRAY.
(ft_bitmap_assure_buffer): Accept FT_PIXEL_MODE_LCD and
FT_PIXEL_MODE_LCD_V.
/external/freetype/src/base/ftbitmap.c
afb2ba5756be264d7dd74516d5b27b4c43c3cc97 25-May-2005 Werner Lemberg <wl@gnu.org> * 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.
/external/freetype/src/base/ftbitmap.c
b9ee7370f60304da99ba3424edbfd36502e0d391 20-May-2005 Werner Lemberg <wl@gnu.org> * 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.
/external/freetype/src/base/ftbitmap.c
0358b21d8595e0ce6d07947d5f4c6d8e19021992 10-Feb-2005 Werner Lemberg <wl@gnu.org> Formatting.
/external/freetype/src/base/ftbitmap.c
e99b9a99d7ff1025d6b8694c5be81c7871811a8e 10-Feb-2005 David Turner <david@freetype.org> * src/base/ftbitmap.c (FT_Bitmap_Convert): small improvements to the
conversion function (mainly stupid optimization, because I like
these... shame on me)

* src/base/Jamfile: adding ftbitmap.c to the list of compiled files
/external/freetype/src/base/ftbitmap.c
0f2a415770d34996fe382333971a1f0c863eafd6 28-Dec-2004 Werner Lemberg <wl@gnu.org> * src/base/ftbitmap.c (FT_Bitmap_Convert): Fix compiler warning.
/external/freetype/src/base/ftbitmap.c
f2438e1da975672c22e8794030e3c4450f7a3525 14-Dec-2004 Werner Lemberg <wl@gnu.org> * src/base/ftbitmap.c, include/freetype/ftbitmap.h: New files for
handling various bitmap formats.

* include/freetype/config/ftheader.h (FT_BITMAP_H): New macro.

* src/base/rules.mk (BASE_EXT_SRC): Add ftbitmap.c.

* src/bdf/bdfdrivr.c (BDF_Glyph_Load): Don't convert bitmaps to 8bpp
but return them as-is.

* docs/CHANGES: Mention new bitmap API.
* include/freetype/ftchapter.s: Updated.
/external/freetype/src/base/ftbitmap.c