Werner Lemberg
45bb18fc7b
* src/base/ftglyph.c (FT_Glyph_Copy): Always set second argument to
...
zero in case of error. This fixes Savannah bug #19689 .
2007-04-26 06:26:35 +00:00
David Turner
1dcb4448c1
fixed a memory buffer overwrite bug. Damn !!
2007-04-06 08:19:04 +00:00
Werner Lemberg
7478197e00
formatting
2007-04-03 19:39:28 +00:00
David Turner
7338ec2b53
make FT_Set_Char_Size deal with 0-valued resolution parameter like the other one
2007-04-03 14:30:34 +00:00
Werner Lemberg
24fd93d6ec
formatting
2007-03-29 11:56:21 +00:00
David Turner
3f539694f1
fixing bug in the padding zero-ing of the bitmap emboldener
2007-03-28 14:53:40 +00:00
Werner Lemberg
1e259deda2
Fix ChangeLog; fix source code comment.
2007-03-08 15:39:21 +00:00
David Turner
3a51afac36
fixing implementation bug in ft_mem_strcpyn
2007-03-08 10:50:38 +00:00
Werner Lemberg
d112cf099b
formatting, copyright years
2007-03-06 12:06:56 +00:00
David Turner
dddd068e5d
fix a small memory leak when FT_Init_FreeType fails for some reason
2007-03-05 18:23:25 +00:00
Suzuki, Toshiya (鈴木俊哉)
b68e025c1b
* Fix memory leak in ftmac.c, patch by Jjgod Jiang
2007-02-20 02:37:36 +00:00
Werner Lemberg
442bfb8913
Formatting, copyright years, s/memcpy/ft_memcpy/.
2007-02-12 21:44:10 +00:00
David Turner
c0f9c4aadd
introduce ft_mem_dup, ft_mem_strdup and ft_mem_strcpyn, and the corresponding
...
macros to use them (e.g. FT_STRDUP, FT_DUP and FT_STRCPYN)
modify the code to use them instead of raw mallocs/strcpy
2007-02-12 14:55:03 +00:00
Werner Lemberg
dcbb708e7a
formatting, copyright years
2007-02-08 08:54:09 +00:00
Suzuki, Toshiya (鈴木俊哉)
f223df6e79
* Add __attribute__((deprecated)) to functions whose interface using non ANSI data types
2007-02-05 04:07:46 +00:00
Suzuki, Toshiya (鈴木俊哉)
beebb33202
* Fix to use builds/mac/ftmac.c if configured with --with-fsspec etc
2007-02-05 03:44:27 +00:00
Suzuki, Toshiya (鈴木俊哉)
4827e9bd2c
* Add FT_GetFilePath_From_Mac_ATS_Name as replacement for FT_GetFile_From_Mac_ATS_Name
2007-02-05 03:28:29 +00:00
Suzuki, Toshiya (鈴木俊哉)
027357f1c8
* Check ANSI compatibility of Mac OS X system header
2007-02-05 02:50:45 +00:00
Werner Lemberg
6e87ed9f04
Spelling fixes from Alexei.
2007-01-26 22:18:56 +00:00
Werner Lemberg
9b774e2822
Remove trailing whitespace. From Alexei.
2007-01-16 06:11:27 +00:00
Werner Lemberg
8c4120d0a3
Fix various compiler warnings.
...
* src/truetype/ttdriver.c (tt_size_select), src/cff/cffobjs.h,
src/cff/cffobjs.c (cff_size_request), src/type42/t42objs.h:
s/index/strike_index/.
* src/base/ftobjs.c (FT_Match_Size): s/index/size_index/.
* src/gxvalid/gxvmorx5.c
(gxv_morx_subtable_type5_InsertList_validate): s/index/table_index/.
* src/truetype/ttinterp.c (Compute_Point_Displacement),
src/pcf/pcfread.c (pcf_seek_to_table_type): Avoid possibly
uninitialized variables.
2007-01-15 06:42:40 +00:00
Werner Lemberg
23df31adcc
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Fix compilation
...
with C++ compiler.
* src/autofit/afhints.c (af_glyph_hints_dump_segments,
af_glyph_hints_dump_edges): Ditto.
* src/base/rules.mk (BASE_SRC): Remove ftgasp.c (it's already in
`modules.cfg').
* src/sfnt/ttsbit0.h: Remove.
* src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c.
2007-01-13 08:45:00 +00:00
Werner Lemberg
27cf9de104
formatting, copyright years
2007-01-13 07:34:23 +00:00
David Turner
e3654532ea
* 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
2007-01-13 00:19:18 +00:00
Werner Lemberg
17432b5e37
* src/type1/t1load.c (is_space): Removed.
...
(parse_encoding, parse_charstrings): Use IS_PS_DELIM.
(parse_charstrings): Use IS_PS_TOKEN.
* autogen.sh: Avoid bash specific syntax.
2007-01-12 09:28:44 +00:00
David Turner
7a3c564e2e
* src/base/ftobjs.c (IsMacResource): fixed a small bug that caused a
...
crash with some Mac OS X .dfont files. Submitted by Masatake Yamoto.
2007-01-11 15:09:01 +00:00
Werner Lemberg
cc7f12a429
formatting, copyright years and messages, doc polishing
2007-01-09 10:37:36 +00:00
David Turner
f48b60ed59
* include/freetype/ftgasp.h, src/base/ftgasp.c: adding a
...
new API FT_Get_Gasp to return entries of the GASP table
corresponding to a given character pixel size.
* src/sfnt/ttload.c: add version check for the GASP table,
in order to be better future-proof
* include/freetype/config/ftheader.h: add definition of
FT_GASP_H, corresponding to <freetype/ftgasp.h>
* src/base/rules.mk, src/base/Jamfile, modules.cfg,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj: Adding src/base/ftgasp.c
to the default build
2007-01-08 15:15:32 +00:00
Werner Lemberg
4ea0a7f0b6
formatting, minor doc fixes, copyright years
2007-01-05 09:03:31 +00:00
David Turner
a8cf42bb7a
* src/pshinter/pshalgo.c: remove a stupid typo that results in no
...
hinting and a memory leak with some large Asian CFF fonts
* src/base/ftobjs.c (FT_Done_Library): remove a subtle memory leak
which happens when FT_Done_Library is called with opened CFF_Faces in
it. We need to close all faces before destroying the modules, or else
some bad things (memory leaks) may happen.
2007-01-04 16:46:46 +00:00
Werner Lemberg
eeaa6497c3
add comment
2006-12-19 14:34:07 +00:00
Werner Lemberg
4755bf7a82
* src/base/ftlcdfil.c (FT_Library_SetLcdFilter)
...
[FT_FORCE_LIGHT_LCD_FILTER]: Fix typo.
2006-12-16 08:58:44 +00:00
Werner Lemberg
0fd08bdc6a
formatting
2006-12-16 02:57:46 +00:00
Suzuki, Toshiya (鈴木俊哉)
7e3d601355
* Simplify src/base/ftmac.c for Mac OS X
2006-12-15 15:23:21 +00:00
Suzuki, Toshiya (鈴木俊哉)
7a7d403d7a
* Improve resource fork handler for POSIX
2006-12-15 14:47:42 +00:00
Werner Lemberg
913a365090
Because FT_Load_Glyph expects CID values for CID-keyed fonts, the
...
test for a valid glyph index must be deferred to the font drivers.
This patch fixes Savannah bug #18301 .
* src/base/ftobjs.c (FT_Load_Glyph): Don't check `glyph_index'.
* src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/cff/cffgload.c
(cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph),
src/pcf/pcfdrivr.c (PCF_Glyph_Load), src/pfr/pfrobjs.c
(pfr_slot_load), src/truetype/ttdriver.c (Load_Glyph),
src/type1/t1gload.c (T1_Load_Glyph), src/winfonts/winfnt.c
(FNT_Load_Glyph): Check validity of `glyph_index'.
2006-11-19 09:19:17 +00:00
Werner Lemberg
0d0d78dadc
formatting
2006-11-14 10:37:10 +00:00
David Turner
29c191cd53
* src/base/ftlcdfil.c: added support for FT_FORCE_LIGHT_LCD_FILTER
...
and FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
when building the library to change the default LCD filter to be
used. This is only useful for experimentation
2006-11-13 13:03:48 +00:00
David Turner
8765c71b41
* include/freetype/ftlcdfil.h, include/internal/ftobjs.h,
...
src/base/ftlcdfilt.c, src/smooth/ftsmooth.c: API change for
the LCD filter, the FT_LcdFilter value is a enum describing
which filter to apply, new values FT_LCD_FILTER_LIGHT and
FT_LCD_FILTER_LEGACY (the latter implements the LibXft original
algorithm which produces incredible color fringes for everything
except very-well hinted text)
* src/autofit/aflatin.c: various tiny improvements that drastically
improve the handling of serif fonts and of LCD/LCD_V hinting modes.
2006-11-10 16:49:42 +00:00
Werner Lemberg
d60ae949db
Formatting.
2006-11-07 09:47:04 +00:00
Werner Lemberg
5e43089b4f
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
...
also.
2006-11-07 09:35:03 +00:00
Werner Lemberg
111b5aefca
* src/base/ftcalc.c: Don't use long long' but
FT_Int64'.
...
Formatting
2006-11-03 09:40:12 +00:00
David Turner
effd15de89
- merging af_corner_XXX and psh_corner_XXX functions into ft_corner_XXX versions in ftcalc.c
...
- more auto-fitter debugging support
2006-11-02 17:21:02 +00:00
Werner Lemberg
e88c5261c3
* src/cff/cffload.c (cff_encoding_load): Remove unused variable.
...
* src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE
as argument.
2006-10-24 05:46:26 +00:00
Werner Lemberg
715e96ecf4
formatting, improving ChangeLog entries
2006-10-24 05:28:45 +00:00
David Turner
a186139cad
improve FT_Outline_Get_Orientation for broken asian fonts
2006-10-23 16:00:59 +00:00
Suzuki, Toshiya (鈴木俊哉)
0708826049
* src/base/ftmac.c (FT_New_Face_From_FOND): Initialize the variable error
2006-10-15 07:15:28 +00:00
Werner Lemberg
046bf8b0cc
formatting
2006-10-03 08:43:42 +00:00
Werner Lemberg
2863cfa7c9
* src/base/ftbase.c: Undo change from 2006-09-30.
...
* src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.
2006-10-01 17:04:00 +00:00
David Turner
df430e1a20
* include/freetype/internal/ftobjs.h, src/base/ftobjs.c,
...
src/truetype/ttobjs.c: fixes related to the unpatented hinter
2006-10-01 00:09:35 +00:00