Werner Lemberg
f9fa1c8b77
* src/psaux/psobjs.c (ps_parser_skip_PS_token): Remove incorrect
...
assertion.
(ps_parser_to_bytes): Fix error message.
* src/type42/t42objs.c (T42_Open_Face): Handle one more error
return.
* src/type42/t42parse.c (t42_parse_sfnts): s/alloc/allocated/.
Don't allow mixed binary and hex strings.
Handle zero string_size == 0 and string_buf == 0.
2007-06-18 17:00:05 +00:00
Werner Lemberg
95104a4d57
* src/cff/cffgload.c (cff_decoder_prepare): Fix change from
...
2007-06-06.
2007-06-18 07:33:10 +00:00
Werner Lemberg
f48aec7b1e
* src/psaux/psobjs.c (ps_tofixedarray, ps_tocoordarray): Fix exit
...
logic.
(ps_parser_load_field) <T1_FIELD_TYPE_BBOX>: Skip delimiters
correctly.
(ps_parser_load_field_table): Use `fields->array_max' instead of
T1_MAX_TABLE_ELEMENTS to limit the number of arguments.
2007-06-18 07:07:55 +00:00
Werner Lemberg
be183ebb5d
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Exit in case of
...
invalid font.
(FNT_Load_Glyph): Protect against invalid bitmap width.
2007-06-17 11:27:17 +00:00
Werner Lemberg
e12ed563d6
* src/tools/ftrandom.c (font_size): New global variable.
...
(TestFace): Use it.
(main): Handle new option `--size' to set `font_size'.
(Usage): Updated.
Formatting.
2007-06-17 05:31:23 +00:00
David Turner
815911ae2a
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): check the well-formedness
...
of the contours array when loading a glyph
* src/truetype/ttinterp.c (Ins_IP): check argument ranges to reject
bogus operations properly
2007-06-16 17:07:20 +00:00
David Turner
6c2ab0977c
prevent a 16-bit integer overflow that would create problems when rendering
...
*very* large anti-aliased outlines
2007-06-16 16:40:37 +00:00
Werner Lemberg
ab1604bd6b
* src/winfonts/winfnt.h: Add necessary structures for PE resource
...
parsing.
(WinPE32_HeaderRec): New structure.
(WinPE32_SectionRec): New structure.
(WinPE_RsrcDirRec): New structure.
(WinPE_RsrcDirEntryRec): New structure.
(WinPE_RsrcDataEntryRec): New structure.
(FNT_FontRec): Remove unused `size_shift' field.
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Add support for
loading bitmap .fon files in PE format.
2007-06-16 07:59:39 +00:00
Werner Lemberg
08a645d833
* builds/win32/ftdebug.c: Unify debug level handling with other
...
platforms.
2007-06-15 14:05:20 +00:00
Werner Lemberg
367f301b44
* builds/win32/ftdebug.c (FT_Message): Send debug output to the
...
console as well as to the debugger.
2007-06-14 06:56:52 +00:00
Werner Lemberg
46dde4953a
* src/autofit/aflatin.c (af_latin_uniranges): Expand structure to
...
cover all ranges which could possibly be handled by the aflatin
module (since the default fallback for unknown ranges is now the
afcjk module). It might be necessary to fine-tune this further by
splitting off modules for Greek, Cyrillic, or other blocks.
2007-06-14 03:59:02 +00:00
Werner Lemberg
49e18b8d5f
formatting
2007-06-11 21:15:09 +00:00
David Turner
b38c15da09
fix bug #19565 , which was caused by an incorrect segment link computation
2007-06-11 19:36:48 +00:00
David Turner
b792017faf
experimental changes for the Latin auto-hinter.
...
note that the new code is disabled by default.
2007-06-11 05:37:35 +00:00
Werner Lemberg
cf7b764285
Fix ChangeLog.
2007-06-11 04:58:01 +00:00
Werner Lemberg
f6c120f826
* docs/CHANGES: Document FT_Face_CheckTrueTypePatents).
...
Formatting, reformulations.
2007-06-11 04:55:58 +00:00
David Turner
5f5e544611
slight speed-up of the TrueType glyph loader
2007-06-11 00:18:00 +00:00
David Turner
84c6f88117
* include/freetype/config/ftoption.h: clarify documentation regarding
...
unpatented hinting
* include/freetype/freetype.h, src/base/ftpatent.c, src/truetype/ttdriver.c,
include/freetype/internal/services/svttglyf.h, modules.cfg,:
include/freetype/internal/ftserv.h,:
Fonts without a cmap must be handled correctly by FreeType (anything
Adding the FT_Face_CheckTrueTypePatents API to FT_FREETYPE_H, it is
implemented by the optional src/base/ftpatent.c
2007-06-10 20:51:04 +00:00
Werner Lemberg
33db39e292
* src/sfnt/sfobjs.c (sfnt_load_face): Undo change from 2007-04-28.
...
Fonts without a cmap must be handled correctly by FreeType (anything
else would be a bug).
* src/psaux/t1decode.c (t1_decoder_parse_charstrings)
[FT_DEBUG_LEVEL_TRACE]: Improve tracing message.
2007-06-08 06:30:29 +00:00
Werner Lemberg
88ab638e0f
* src/sfnt/ttsbit0.c (tt_sbit_decoder_init,
...
tt_sbit_decoder_load_image): Protect against integer overflows.
* src/pfr/pfrgload.c (pfr_glyph_load_simple): More bounding checks
for `x_control' and `y_control'.
2007-06-07 05:01:56 +00:00
Werner Lemberg
470210b73c
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Do a rough check of
...
`font_count'.
* src/type1/t1load.c (parse_font_matrix): Check `temp_scale'.
* src/cff/cffgload.c (cff_decoder_prepare): Change return type to
`FT_Error'.
Check `fd_index'.
(cff_slot_load): Updated.
* src/cff/cffgload.h: Updated.
2007-06-06 10:05:49 +00:00
Werner Lemberg
a8d65494cb
* src/pfr/pfrcmap.c (pfr_cmap_init): Convert assertion into normal
...
FreeType error.
2007-06-06 04:47:49 +00:00
Werner Lemberg
2a2dca6b40
* src/base/ftoutln.c (FT_Outline_Decompose): Check `last'.
2007-06-06 04:39:37 +00:00
Werner Lemberg
e5c14d93b8
* src/psaux/psobjs.c (ps_tocoordarray, ps_tofixedarray): Return -1
...
in case of parsing error.
(ps_parser_load_field): Updated.
* src/type1/t1load.c (parse_font_matrix): Updated.
2007-06-05 20:50:37 +00:00
Werner Lemberg
f4bc3f40b3
* src/winfnt/winfnt.c (FNT_Face_Init): Check `family_size'.
2007-06-05 07:32:15 +00:00
Werner Lemberg
9a0332cd3f
* src/pfr/pfrgload.c (pfr_glyph_curve_to, pfr_glyph_line_to): Convert
...
assertion into normal FreeType error.
2007-06-05 05:50:01 +00:00
Werner Lemberg
6c05475d50
* src/pfr/pfrgload.c (pfr_glyph_done): Comment out unused code.
...
(pfr_glyph_load_simple): Convert assertion into normal FreeType
error.
Check `idx'.
(pfr_glyph_load_compound): Convert assertion into normal FreeType
error.
* src/pfr/pfrtypes.h (PFR_GlyphRec): Comment out unused code.
2007-06-05 05:27:54 +00:00
Werner Lemberg
ad18b367e9
* src/cid/cidgload.c (cid_load_glyph): Check `fd_select'.
...
* src/tools/ftrandom/Makefile: Depend on `libfreetype.a'.
2007-06-04 07:04:05 +00:00
Werner Lemberg
99a320b431
* src/tools/ftrandom/*: Add the `ftrandom' test program written by
...
George Williams (with some modifications).
2007-06-03 19:21:26 +00:00
Werner Lemberg
3d507fefe8
* src/base/ftobjs.c (destroy_charmaps), src/type1/t1objs.c
...
(T1_Face_Done), src/winfonts/winfnt.c (FNT_Face_Done): Check for
face == NULL. Suggested by Graham Asher.
2007-06-03 16:54:55 +00:00
Werner Lemberg
ce280a22e2
* src/base/ftobjs.c (FT_Request_Metrics): Fix compiler warning.
2007-06-03 05:58:30 +00:00
Werner Lemberg
5b591e49cf
* include/freetype/fterrdef.h (FT_Err_Corrupted_Font_Header,
...
FT_Err_Corrupted_Font_Glyphs): New error codes for BDF files.
* src/bdf/bdflib.c (bdf_load_font): Use them.
* src/bdf/bdflib.c (_bdf_parse_start): Check `FONT' better.
2007-06-01 22:16:43 +00:00
Werner Lemberg
b9933f4b02
* src/base/ftobjs.c (FT_Request_Metrics), src/cache/ftccmap.c
...
(FTC_CMapCache_Lookup): Remove unused code.
2007-06-01 21:27:12 +00:00
Werner Lemberg
c793d90fca
* src/truetype/ttinterp.c (Null_Vector, NULL_Vector): Removed,
...
unused.
2007-06-01 20:51:11 +00:00
Werner Lemberg
4d2815db50
(cid_parser_new): Exit properly if no `StartData' has been seen at all.
2007-06-01 07:49:31 +00:00
Werner Lemberg
cb37b3b36a
* builds/unix/ftsystem.c (FT_Stream_Open): Don't use ULONG_MAX but
...
LONG_MAX to avoid compiler warning. Suggested by Sean McBride.
2007-06-01 06:49:03 +00:00
Werner Lemberg
bebc7b11c5
* src/cid/cidparse.c (cid_parser_new): Don't continue second search
...
pass for `StartData' if an error has occurred.
2007-06-01 06:32:30 +00:00
Werner Lemberg
ba03af6f91
* src/type1/t1load.c (parse_subrs, parse_charstrings): Protect
...
against too small binary data strings.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Check `STARTCHAR' better.
2007-05-30 13:57:02 +00:00
Werner Lemberg
99e0c18ea1
Formatting, reformulations.
2007-05-29 07:00:23 +00:00
David Turner
0291a5c696
updating CHANGES
2007-05-28 15:49:08 +00:00
David Turner
552a956247
optimize CFF glyph loader (avoid apply identity font transform)
2007-05-28 15:45:35 +00:00
David Turner
f0cd69c1b4
2007-05-28 David Turner <david@freetype.org>
...
* src/autofit/afglobal.c: change default hinting script to
CJK, since it works well with a larger array of scripts. thanks to
"Rahul Bhalerao" <b.rahul.pm@gmail.com> for pointing this out !
2007-05-28 15:42:09 +00:00
Werner Lemberg
1c8980ef4a
* docs/CHANGES: Updated.
...
Formatting.
2007-05-25 07:11:12 +00:00
Werner Lemberg
6ff2ff574b
* src/truetype/ttobjs.h (tt_size_ready_bytecode): Move declaration
...
into TT_USE_BYTECODE_INTERPRETER preprocessor block.
* src/truetype/ttobjs.c (tt_size_ready_bytecode)
[!TT_USE_BYTECODE_INTERPRETER]: Removed. Unused.
2007-05-24 19:39:14 +00:00
David Turner
7890686d80
fix crash when not using the bytecode interpreter with TrueType fonts
2007-05-22 14:08:09 +00:00
David Turner
3e2f953a10
real fix for bug #19910 . the .Z format is really badly designed :-(
2007-05-22 13:10:59 +00:00
David Turner
0d0365ec59
avoid heap explosion in the case of malformed .Z font files
...
related to bug #19910 , but not a bugfix yet
2007-05-22 09:53:44 +00:00
Werner Lemberg
9df3c223f7
* src/pshinter/pshrec.c (ps_mask_table_set_bits): Add `const'.
...
(ps_dimension_set_mask_bits): Remove `const'.
2007-05-20 18:07:52 +00:00
Werner Lemberg
0f2b7bda6e
* src/sfnt/ttmtx.c (tt_face_get_metrics)
...
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Another type-punning fix.
2007-05-19 15:15:47 +00:00
Werner Lemberg
b826fa7589
Savannah patch #5929 .
...
* include/freetype/tttables.h, src/base/ftobjcs.c
(FT_Get_CMap_Format): New function.
* include/freetype/internal/services/svttcmap.c (TT_CMapInfo): Add
`format' member.
* src/sfnt/ttcmap.c (tt_cmap{0,2,4,6,8,10,12}_get_info): Set
cmap_info->format.
2007-05-19 07:18:48 +00:00