Werner Lemberg
3f1905b191
* src/otvalid/otvcommn.c, src/otvalid/otvcommn.h
...
(otv_Coverage_validate): Add fourth argument to pass an expected
count value. Update all users.
Check glyph IDs.
(otv_ClassDef_validate): Check `StartGlyph'.
* src/otvalid/otvgsub.c (otv_SingleSubst_validate): More glyph ID
checks.
* src/otvalid/otvmath.c (otv_MathConstants_validate): There are only
56 constants.
(otv_GlyphAssembly_validate, otv_MathGlyphConstruction_validate):
Check glyph IDs.
2007-08-11 15:45:32 +00:00
Werner Lemberg
d76fe5a1af
* src/otvalid/otvbase.c, src/otvalid/otvcommn.c,
...
src/otvalid/otvgdef.c, src/otvalid/otvgpos.c, src/otvalid/otvgsub.c,
src/otvalid/otvjstf.c: s/FT_INVALID_DATA/FT_INVALID_FORMAT/ where
appropriate. Reported by George.
* include/freetype/internal/fttrace.h: Define `trace_otvmath'.
* src/otvalid/rules.mk (OTV_DRV_SRC): Add otvmath.c.
* docs/CHANGES: Updated.
Add `MATH' validating support to otvalid module.
* include/freetype/tttags.h (TTAG_MATH): New macro.
* include/freetype/ftotval.h (FT_VALIDATE_MATH): New macro.
(FT_VALIDATE_OT): Updated.
* src/otvalid/otmath.c: New file.
* src/otvalid/otvalid.c: Include otvmath.c.
* src/otvalid/otvmod.c (otv_validate): Handle `MATH' table.
2007-08-08 06:38:06 +00:00
Werner Lemberg
d6752a6bfb
* src/psnames/psmodule.c: Fix usage of
...
FT_CONFIG_OPTION_POSTSCRIPT_NAMES macro. Reported by Graham Asher.
2007-08-02 22:03:30 +00:00
Suzuki, Toshiya (鈴木俊哉)
cf093cd7d2
* Fix src/base/ftmac.c (open_face_from_buffer): fix the type of driver_type as const.
2007-07-31 03:58:09 +00:00
Werner Lemberg
39c91ad444
* src/raster/ftraster.c (count_table): Make it conditional.
...
* src/base/ftobjs.c (FT_New_Library): Check FT_RENDER_POOL_SIZE with
a preprocessor statement.
2007-07-28 05:40:40 +00:00
Werner Lemberg
71dd687310
* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
...
first usage. From Savannah patch #6115 .
2007-07-27 04:44:36 +00:00
Werner Lemberg
5bfe0d0465
Really add new files.
2007-07-17 04:57:01 +00:00
Werner Lemberg
ef915c36f4
* docs/CHANGES: Updated.
...
Add new service for getting the ROS from a CID font.
* include/freetype/config/ftheader.h (FT_CID_H): New macro.
* include/freetype/ftcid.h: New file.
* include/freetype/internal/ftserv.h (FT_SERVIVE_CID_H): New macro.
* include/freetype/internal/services/svcid.h: New file.
* src/base/ftcid.c: New file.
* src/cff/cffdrivr.c: Include FT_SERVICE_CID_H.
(cff_get_ros): New function.
(cff_service_cid_info): New service structure.
(cff_services): Register it.
* src/cff/cffload.c (cff_font_done): Free registry and ordering.
* src/cff/cfftypes.h (CFF_FontRec): Add `registry' and `ordering'.
* modules.cfg (BASE_EXTENSIONS): Add ftcid.c.
2007-07-16 20:46:05 +00:00
Werner Lemberg
2f10956744
Add support for postscript name service to CFF driver.
...
* src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_NAME_H.
(cff_get_ps_name): New function.
(cff_service_ps_name): New service structure.
(cff_services): Register it.
2007-07-11 05:32:00 +00:00
Werner Lemberg
d21fe6e5d6
Really restore changes introduced in revision 1.178.
2007-07-10 23:10:39 +00:00
Werner Lemberg
b003b3e7b5
* src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
...
`target'. Reported by Sean McBride.
2007-07-08 07:13:12 +00:00
Werner Lemberg
1e1b6dff54
* src/pfr/pfrcmap.c: Include pfrerror.h.
...
* src/autofit/afindic.c: Add some external declarations to pacify
`make multi' compilation.
* src/cid/cidgload.c (cid_load_glyph): Pacify compiler.
* src/cff/cffdrivr.c (cff_ps_get_font_info), src/cff/cffobjs.c
(cff_strcpy), include/freetype/internal/ftmemory.h (FT_MEM_STRDUP),
src/autofit/aflatin.c (af_latin_hints_compute_edges),
src/autofit/afcjk.c (af_cjk_hints_compute_edges), src/sfnt/ttmtx.c
(tt_face_get_metrics), src/base/ftobjs.c (open_face)
[FT_CONFIG_OPTION_INCREMENTAL]: Fix compilation with C++ compiler.
* docs/release: Mention test compilation targets.
2007-07-07 07:30:40 +00:00
Werner Lemberg
0f6f367ec1
Better maxComponentDepth test.
2007-07-04 19:57:45 +00:00
Werner Lemberg
3033f4366b
* src/truetype/ttgload.c (load_truetype_glyph): Always allow a
...
recursion depth of 1. This was the maximum value in TrueType 1.0,
and some older fonts don't set this field correctly.
* src/gxvalid/gxvmort1.c
(gxv_mort_subtable_type1_substTable_validate): Fix tracing message.
2007-07-04 14:12:19 +00:00
Werner Lemberg
3b0e500601
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
...
`round' to pacify compiler.
Really commit changes which have been used to build release 2.3.5.
2007-07-03 04:48:19 +00:00
Werner Lemberg
e3be90bf28
formatting
2007-07-02 14:58:58 +00:00
David Turner
481b25f009
* include/freetype/freetype.h, src/base/ftpatent.c: adding
...
FT_Face_SetUnpatentedHinting to dynamically change the setting
after a face is created.
2007-07-01 09:51:15 +00:00
David Turner
0ba8991292
fix a small bug in the TrueType loader that created distortion in the result
...
of bytecode-hinted text. Werner, feel free to package 2.3.5 now :-)
2007-07-01 09:34:04 +00:00
David Turner
74cc0e9ee4
* src/truetype/ttinterp.c: add missing variable initialization,
...
gets rid of Valgrind fixes.
* src/autofit/aflatin.c: get rid of an infinite loop in the case
of degenerate fonts.
2007-06-30 22:54:12 +00:00
Werner Lemberg
7723dc34d3
Add autofit module for Indic scripts. This currently just reuses
...
the CJK-specific functions.
* include/freetype/config/ftoption.h (AF_CONFIG_OPTION_INDIC): New
macro.
* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.
* src/autofit/afindic.c, src/autofit/afindic.h: New files.
* src/autofit/afglobal.c, src/autofit/aftypes.h,
src/autofit/autofit.c: Updated.
* src/autofit/Jamfile (_sources), * src/autofit/rules.mk
(AUTOF_DRV_SRC): Updated.
2007-06-26 04:44:35 +00:00
David Turner
8f626b04f3
fix stupid typo that prevented the truetype loader from working correctly
2007-06-22 22:22:38 +00:00
Werner Lemberg
5b4d435a96
* src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
...
change.
2007-06-20 07:07:55 +00:00
Werner Lemberg
9fe5815c97
* src/type1/t1load.c (parse_encoding): Handle one more error.
2007-06-19 07:57:30 +00:00
Werner Lemberg
5a829394f6
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Return error
...
FNT_Err_Invalid_File_Format if file format was recognized but
the file doesn't contain any FNT(NE) or RT_FONT(PE) resources.
Add verbose debug logs to make it easier to debug failing load
attempts.
(FNT_Face_Init): A single FNT font can't contain more than 1 face,
so return an error if requested face index is > 0.
Do not do further attempt to load fonts if a previous attempt has
failed but returned error FNT_Err_Invalid_File_Format, i.e., the
file format has been recognized but no fonts found in the file.
2007-06-19 04:53:30 +00:00
Suzuki, Toshiya (鈴木俊哉)
7893501c3e
* fix compiler warnings of src/base/ftmac.c, drop unnecessary part for Mac OS X.
2007-06-19 03:27:05 +00:00
Werner Lemberg
bb2510daec
* src/type42/t42parse.c (t42_parse_encoding): Handle one more error.
2007-06-18 17:07:49 +00:00
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
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
a48162759e
experimental auto-hinter updates
2007-06-11 20:35:54 +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
f6c120f826
* docs/CHANGES: Document FT_Face_CheckTrueTypePatents).
...
Formatting, reformulations.
2007-06-11 04:55:58 +00:00
David Turner
7fa30ee879
remove compiler warning
2007-06-11 00:55:23 +00:00
David Turner
75e7acd840
add missing file, doh !
2007-06-11 00:26:25 +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
6e2f9d5db7
Improve tracing messages.
2007-06-05 06:58:48 +00:00
Werner Lemberg
1053656d24
whitespace
2007-06-05 06:49:50 +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
25b14229f1
More OBJ_DIR.
2007-06-03 19:53:02 +00:00
Werner Lemberg
f2ff7329c7
Some explanations, taken from an email sent by George.
2007-06-03 19:50:57 +00:00
Werner Lemberg
2fdb70e9d5
Fold fttest.c into ftrandom.c (as it was orginally).
2007-06-03 19:38:59 +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
936346413f
Remove tabs from source files.
2007-06-01 06:56:17 +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
c510d5d837
remove compiler warning (unused variable)
2007-05-28 21:34:04 +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
Werner Lemberg
6f99c88801
* src/truetype/ttgload.c (load_truetype_glyph): Save graphics state
...
before handling subglyphs so that it can be reinitialized each time.
This fixes Savannah bug #19859 .
2007-05-19 07:01:49 +00:00
Werner Lemberg
d069246805
Oops! Incorrect application of a patch...
2007-05-16 15:48:02 +00:00
Werner Lemberg
95bc9d3a07
* src/cache/ftccache.c (ftc_node_mru_link, ftc_node_mru_unlink),
...
src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP), src/cache/ftcglyph.h
(FTC_GCACHE_LOOKUP_CMP), src/pshinter/pshmod.c (ps_hinter_init),
src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_load_hhea,
tt_face_get_metrics): Fix type-punning issues.
2007-05-16 15:19:42 +00:00
Werner Lemberg
607dec79bb
* src/autofit/afcjk.c (af_cjk_hints_compute_edges): Remove unused
...
variable.
* src/autofit/afloader.c (af_loader_load_g): Ditto.
* src/base/ftobjs.c (ft_validator_error): Use `ft_jmp_buf'.
(open_face_from_buffer): Initialize `stream'.
(FT_Request_Metrics): Remove unused variable.
Remove redundant `break' statements.
(FT_Get_Track_Kerning): Remove unused variable.
* src/psaux/afmparse.c (afm_parse_track_kern, afm_parse_kern_pairs,
afm_parse_kern_data): Remove redundant
`break' statements.
(afm_parser_parse): Ditto.
Don't use uninitialized variables.
* src/psnames/psmodule.c (VARIANT_BIT): Define as unsigned long.
Use `|' operator instead of `^' to set it.
Update all users.
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Use `ft_jmp_buf'.
* src/sfnt/ttkern.c (tt_face_load_kern): Remove unused variable.
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove redundant
comparison.
(TT_Process_Simple_Glyph): Use FT_UInt for `n_points' and `i'.
(TT_Load_Glyph): Remove unused variable.
2007-05-15 06:49:37 +00:00
Werner Lemberg
56ceaa4853
Formatting.
2007-05-14 18:53:58 +00:00
Werner Lemberg
8d463a53d1
* src/base/ftobjs.c (FT_New_Library): Only allocate rendering pool
...
if FT_RENDER_POOL_SIZE is > 0. From Savannah patch #5928 .
2007-05-13 16:01:55 +00:00
David Turner
711cf84749
implement FTC_ImageCache_LookupScaler and FTC_SBitCache_LookupScaler,
...
which allow us to specify the font size with a FTC_Scaler structure,
hence enabling fractional point sizes, etc...
2007-05-11 14:36:24 +00:00
David Turner
a8b45e6183
fix a typo that force CVT scaling to be re-run on each glyph load
2007-05-11 14:10:30 +00:00
Werner Lemberg
94be20ea82
* src/truetype/ttinterp.c (Ins_IP), src/autofit/aflatin.c
...
(af_latin_metrics_scale_dim): Fix compiler warnings.
2007-05-09 20:02:55 +00:00
Werner Lemberg
106eaf1dbb
* src/base/ftobjs.c (FT_Set_Char_Size): Simplify code.
...
* include/freetype/freetype.h (FT_Set_Char_Size): Update
documentation.
2007-05-03 07:07:47 +00:00
Werner Lemberg
1b5267dad1
* src/sfnt/sfobjs.c (sfnt_load_face): Check error code after loading
...
`cmap'.
2007-04-28 21:06:15 +00:00
Werner Lemberg
cc712a248c
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check for negative
...
number of points in contours. Problem reported by Victor Stinner
<victor.stinner@haypocalc.com>.
(TT_Process_Simple_Glyph): Synchronize variable types.
2007-04-27 17:16:50 +00:00
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
Werner Lemberg
fcc1f472c3
* src/sfnt/sfobjs.c (sfnt_load_face) [FT_CONFIG_OPTION_INCREMENTAL]:
...
Ignore `hhea' table. This fixes Savannah bug #19261 .
2007-04-10 11:51:50 +00:00
Werner Lemberg
f4a52a6c42
* src/truetype/ttgload.c (load_truetype_glyph): Save and restore
...
memory stream to avoid a crash with the incremental memory
interface (Savannah bug #19260 ).
2007-04-09 08:40:11 +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
94f1227f32
formatting; improved ChangeLog entries
2007-04-03 07:19:53 +00:00
David Turner
e6472c1251
detect "extra-light" fonts in the auto-hinter in order to avoid producing weird results with them
2007-04-02 13:13:54 +00:00
Werner Lemberg
24fd93d6ec
formatting
2007-03-29 11:56:21 +00:00
Werner Lemberg
644b1ad49e
* builds/win32/visualc/index.html,
...
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproc, README: s/2.3.2/2.3.3/,
s/232/233/.
* docs/CHANGES: Mention ftdiff.
2007-03-28 21:17:11 +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
a08b2176c1
* src/bdf/bdflib.c (setsbit, sbitset): Handle values >= 128
...
gracefully.
(_bdf_set_default_spacing): Increase `name' buffer size to 256 and
issue an error for longer names.
(_bdf_parse_glyphs): Limit allowed number of glyphs in font to the
number of code points in Unicode.
2007-03-28 07:17:17 +00:00
David Turner
23553d6d2b
* docs/CHANGES, docs/VERSION, include/freetype/freetype.h,
...
builds/unix/configure.raw, README, Jamfile: update documentation and bump version
number to 2.3.3
2007-03-26 13:37:17 +00:00
David Turner
f58caa09bc
fix autofit's blue zone computations: it now ignores 1-point contours that
...
correspond to mark attach coordinates, and not to the real glyph outline
2007-03-26 12:39:25 +00:00
David Turner
3b242d3619
last (tiny) fix to the bytecode interpreter and code cleanup
2007-03-26 12:03:04 +00:00
Werner Lemberg
c9f6c66f95
formatting
2007-03-21 13:30:14 +00:00
David Turner
64a9ef20d5
another bytecode regression fix. Hopefully, this should be the latest
2007-03-18 07:35:08 +00:00
David Turner
74c34eba39
another bytecode interpreter regression fix
2007-03-18 07:19:31 +00:00
David Turner
89020d9749
fixing TrueType bytecode interpreter regression for HLB_____.TTF, needs more testing with other fonts
2007-03-17 17:48:57 +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
Werner Lemberg
3d92f08bc5
* include/freetype/config/ftstdlib.h (ft_strstr): New wrapper
...
macro for `strstr'.
* src/truetype/ttobjs.c (tt_face_init): Use ft_strstr for scanning
`trick_names', as suggested by Ivan Nincic.
2007-03-06 11:59:24 +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
David Turner
91aaf3267b
bugfix: do not erase root x_ppem and y_ppem values in tt_size_init_bytecode
2007-03-05 18:18:52 +00:00
David Turner
085bc6e2b2
fix bug in the PFM parser: kerning values must be read as 16-bit *signed* values
2007-03-05 17:40:03 +00:00
Werner Lemberg
de5e686661
formatting
2007-02-25 21:06:43 +00:00
David Turner
601aefe4ec
fix postscript hinter's handling of small and ghost stems
2007-02-21 16:47:49 +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
a091517a04
* src/truetype/ttinterp.c (Ins_MD): Remove unused variable.
...
* src/autofit/aflatin.c (af_latin_hints_link_segments): Ditto.
2007-02-16 08:12:50 +00:00
Werner Lemberg
3cd6cc24f2
formatting
2007-02-16 08:10:17 +00:00
David Turner
2c4500e981
improving TrueType bytecode interpreter to better match Windows behaviour
...
on tricky cases... FIX_BYTECODE is now the default to allow large testing
2007-02-14 15:08:47 +00:00
David Turner
a6bdb667d9
better handling of serif segments in the Latin auto-fitter, gets rid of
...
broken "9" in Arial 9pt/96dpi
2007-02-12 22:33:48 +00:00
Werner Lemberg
c6a14086d2
* src/truetype/ttinterp.c (Project_x, Project_y): Remove compiler
...
warnings.
* src/pcf/pcfread.c (pcf_interpret_style), src/bdf/bdfdrivr.c
(bdf_interpret_style): Ditto.
2007-02-12 22:08:15 +00:00
Werner Lemberg
406d25f379
more formatting and copyright years
2007-02-12 22:01:18 +00:00
Werner Lemberg
442bfb8913
Formatting, copyright years, s/memcpy/ft_memcpy/.
2007-02-12 21:44:10 +00:00
David Turner
2ef3e0f1cd
fix inter-letter spacing of auto-hinted glyphs (non-light modes)w
2007-02-12 21:28:21 +00:00
David Turner
72a0dd247d
some simplifications of the TrueType interpreter projection code
...
(preliminaries to various interpreter fixes)
2007-02-12 15:24:51 +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
582067dc92
* src/autofit/afloader.c (af_loader_load_g): Don't change width for
...
non-spacing glyphs.
2007-02-11 15:03:05 +00:00
Werner Lemberg
dcbb708e7a
formatting, copyright years
2007-02-08 08:54:09 +00:00
Werner Lemberg
8f47453b6a
* src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL
...
pointer.
2007-02-07 08:31:01 +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
4b2e83d5b5
A new set of spelling fixes from Alexei.
...
Add some copyright messages.
2007-02-01 07:58:02 +00:00
Werner Lemberg
689dd66b56
More typo fixes from Alexei.
2007-01-30 23:08:50 +00:00
David Turner
a7ee608c1d
disable light auto-hinting optimization for the next release
2007-01-30 10:33:53 +00:00
Werner Lemberg
6e87ed9f04
Spelling fixes from Alexei.
2007-01-26 22:18:56 +00:00
Werner Lemberg
bf24176be5
formatting
2007-01-26 16:08:49 +00:00
David Turner
d91eebda1c
improvement to glyph spacing, especially when light auto-hinting
2007-01-26 15:05:41 +00:00
Werner Lemberg
d785566330
formatting, rearranging
2007-01-25 13:53:56 +00:00
David Turner
a42567bf66
- same CFF loader fix (stricter checking though than Werner's version)
...
- document light auto-hinter improvements
2007-01-25 12:23:37 +00:00
Werner Lemberg
b1be9e8b57
* src/cff/cffload.c (cff_index_get_pointers): Handle last entry
...
correctly. This fixes Savannah bug #18867 .
* docs/CHANGES: Document it.
Other formatting.
2007-01-25 11:50:00 +00:00
David Turner
741a17e82b
* src/truetype/ttobjs.c: fixed typo that prevented compilation when
...
disabling both the unpatented and the bytecode interpreter in the
TrueType font driver
2007-01-23 16:14:38 +00:00
David Turner
b6de8d1d3f
* src/autofit/aflatin.c, src/autofit/aftypes.h, src/autofit/afwarp.h,
...
src/autofit/afwarp.c: fix and enable the warper to improve "light"
hinting mode. This is not necessarily a final version, but it seems
to work well
2007-01-23 15:51:50 +00:00
Werner Lemberg
555258fffe
* docs/CHANGES: Document SHZ fix.
...
* src/truetype/ttinterp.c (Ins_SHZ): SHZ doesn't move phantom
points.
2007-01-21 09:46:37 +00:00
Werner Lemberg
011d111218
* src/sfnt/ttmtx.c (tt_face_get_metrics)
...
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Fix limit check.
2007-01-21 09:36:00 +00:00
Werner Lemberg
b4142d5126
Whitespace and spelling fixes from Alexei.
...
Formatting, copyright years.
2007-01-17 12:45:26 +00:00
David Turner
2212272992
* src/autofit/aflatin.c, src/cff/cffdriver.c, src/truetype/ttobjs.c,
...
src/truetype/ttinterp.c: fixing compiler warnings
2007-01-16 20:06:44 +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
281c148621
* src/type1/t1afm.c (T1_Read_Metrics): MS Windows allows PFM
...
versions up to 0x3FF without complaining.
2007-01-13 22:50:51 +00:00
Werner Lemberg
ac250b228a
Add FT_Get_PS_Font_Info interface to CFF driver.
...
* src/cff/cfftypes.h: Include FT_TYPE1_TABLES_H.
(CFF_FontRec): Add `font_info' field.
* src/cff/cffload.c: Include FT_TYPE1_TABLES_H.
(cff_font_done): Free font->font_info if necessary.
* src/cff/cffdrvr.c (cff_ps_get_font_info): New function.
(cff_service_ps_info): Register cff_ps_get_font_info.
2007-01-13 14:01:36 +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
David Turner
2628ea9c12
* src/pshinter/pshalgo.c (psh_glyph_compute_inflections):
...
fixed a typo which created an endless loop with some malformed
font files
2007-01-10 13:15:56 +00:00
Werner Lemberg
bf02d396ca
* src/type1/t1load.c (T1_Get_MM_Var): Always return fixed point
...
values.
2007-01-10 07:07:37 +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
b8004d2e88
* src/cid/cidparse.c (cid_parser_new): Improve error message for
...
Type 11 fonts.
Scan for `/sfnts' token.
2007-01-07 09:13:38 +00:00
Werner Lemberg
e6b6f3733e
* src/cid/cidparse.c (cid_parser_new): Reject Type 42 CID-keyed
...
fonts.
2007-01-07 00:06:47 +00:00
Werner Lemberg
be5f797f5b
* src/cff/cffload.c (cff_index_init): Remove unused variable.
...
(cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
2007-01-06 07:51:48 +00:00
Werner Lemberg
f629439905
formatting, copyright years
2007-01-06 07:47:45 +00:00
David Turner
d88a0c9e64
fixing typo
2007-01-05 17:59:18 +00:00
David Turner
34fcd0b409
* src/pfr/pfrobjs.c (pfr_face_init): detect non-scalable fonts
...
correctly. fixes bug #17876
2007-01-05 15:55:59 +00:00
David Turner
384be23418
* src/truetype/ttobjs.h, src/truetype/ttobjs.c,
...
src/truetype/ttgload.c: do not allocate interpreter-specific
tables in memory if we're not going to load glyphs with it
anyway.
2007-01-05 15:32:01 +00:00
David Turner
91a3402d78
- don't load metrics table in memory, reduces heap usage
...
- forgot to commit the changes in cffload.c that are already documented
2007-01-05 14:47:08 +00:00
David Turner
a3a3c5d711
small optimization in the CMAP 4 validator
2007-01-05 13:15:29 +00:00
David Turner
5dbdb6c3c4
* src/cff/cffload.c, src/cff/cffload.h, src/cff/cffgload.c,
...
src/cff/cfftypes.h: formatting + do not load the CFF index
offsets into memory, since this wastes a *lot* of heap memory
with large Asian CFF fonts. There is no significant performance
loss
2007-01-05 13:14:08 +00:00
Werner Lemberg
82dba7620e
copyright year
2007-01-05 12:41:49 +00:00
David Turner
3a2131a30b
formatting
2007-01-05 10:51:56 +00:00
Werner Lemberg
4ea0a7f0b6
formatting, minor doc fixes, copyright years
2007-01-05 09:03:31 +00:00
David Turner
38d1002b8a
* src/raster/ftraster.c: removing dynamically generated "count_table",
...
and replace it with a constant array of bytes
2007-01-04 18:50:12 +00:00
David Turner
8a2c7f8fb8
* src/raster/ftraster.c, src/smooth/ftgrays.c: small optimization, the
...
rasterizers now uses the render pool to store their state during scanline
convertion. this saves about 6 KB of heap space for each FT_Library instance
2007-01-04 18:33:12 +00:00
David Turner
91bd5ddf17
* src/smooth/ftgrays.c: small optimization, the rasterizer now
...
uses the render pool to store its state during its operation,
this saves about 4 KB of heap for each FT_Library instance
2007-01-04 18:00:14 +00:00
David Turner
8a6c44e673
Getting rid of the FT_OPTIMIZE_MEMORY macro, since the optimization
...
is no longer experimental
2007-01-04 17:03:11 +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
6b87e6f0ff
* src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate):
...
Remove compiler warning.
Formatting.
2007-01-02 19:20:08 +00:00
David Turner
9207e00198
adding documentation comment
2007-01-02 16:58:13 +00:00
Yamato, Masatake (大和正武)
55d5a1cbe9
(gxv_kern_subtable_fmt0_pairs_validate): Show the trace message after validating gids.
2006-12-30 20:24:30 +00:00
Yamato, Masatake (大和正武)
d5d3e41dac
(gxv_kern_subtable_fmt0_pairs_validate): New function. Checks uniqueness of the gid pairs.
...
(gxv_kern_subtable_fmt0_validate): Move some code to `gxv_kern_subtable_fmt0_pairs_validate'.
2006-12-30 20:17:30 +00:00
David Turner
115b442b23
* src/autofit/aflatin.c, src/truetype/ttgload.c: removing compiler
...
warnings
* builds/win32/visualc/freetype.vcproj: adding _CRT_SECURE_NO_DEPRECATE
to avoid deprecation warnings with Visual C++ 8
2006-12-22 11:37:05 +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
4e1d6c0c51
* builds/toplevel.mk (dist): Extract version number from freetype.h.
2006-12-09 08:20:37 +00:00
Werner Lemberg
15c29503fb
* src/tools/apinames (State): Remove final comma in structure -- xlc
...
v5 under AIX 4.3 doesn't like this.
2006-12-09 07:29:54 +00:00
David Turner
dbf3b43aea
* src/autofit/afloader.c (af_loader_load_g): small adjustment
...
to the spacing of auto-fitter glyphs. This only impacts rare
cases (e.g. Arial Bold at rather small character sizes)
2006-12-07 21:18:09 +00:00
Werner Lemberg
e2e18e035c
comment fixes
2006-12-03 09:46:32 +00:00
Werner Lemberg
1117131c03
* src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
2006-12-03 09:43:40 +00:00
Werner Lemberg
3bcd7d7fa5
Formatting.
2006-12-03 09:38:16 +00:00
Werner Lemberg
960ba59ad9
* src/sfnt/sfobjs.c (tt_face_get_name): All Unicode strings are
...
encoded in UTF-16BE. Patch from Rajeev Pahuja <rpahuja@esri.com>.
(tt_name_entry_ascii_from_ucs4): Removed.
* include/freetype/ftxf86.h: Fix and extend comment so that it
appears in the documentation.
* include/freetype/ftchapters.h: Add `font_format' section.
* src/tools/docmaker/tohtml.py (HtmlFormatter::index_exit): Add link
to TOC in index page.
Formatting.
2006-12-01 08:20:47 +00:00
David Turner
3a18c5e29e
* src/smooth/ftgrays.c (gray_raster_render): return 0 when we're
...
trying to rendering into a zero-width/height bitmap, instead of an
error code.
2006-11-28 08:38:31 +00:00
David Turner
80658e5075
* src/truetype/ttobjs.c (tt_face_init): Fix typo in previous patch
...
* src/smooth/ftgrays.c: remove hard-coded error values, use FreeType
ones instead
* src/autofit/afhints.c (af_glyph_hints_dump_segments): remove unused
variable
2006-11-28 08:09:20 +00:00
Werner Lemberg
8636c29ae8
* src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.
2006-11-26 22:28:13 +00:00
David Turner
1bd6c47260
* src/autofit/afhints.c: add stubs to link the "ftgrid" test program
...
when debugging is disabled in the auto-hinter
2006-11-25 01:30:40 +00:00
David Turner
81e725f513
* src/autofit/afhints.c, src/autofit/afhints.h, src/autofit/aflatin.c,
...
src/autofit/aftypes.h: Misc. auto-hinter improvements
2006-11-23 14:49:48 +00:00
Werner Lemberg
91959bf24c
Fix Savannah bug #15553 .
...
* src/truetype/ttgload.c (tt_loader_init): Re-execute the CVT
program after a change from mono to grayscaling (and vice versa).
Use correct constant for comparison to get `exec->grayscale'.
2006-11-22 10:36:55 +00:00
Werner Lemberg
2bad8ffbdf
cosmetics
2006-11-22 09:37:03 +00:00
Werner Lemberg
82ee38e585
formatting
2006-11-20 09:19:26 +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
7bab6ae3e9
* src/truetype/ttinterp.c: undefined the FIX_BYTECODE macro,
...
since the interpreter "enhancements" are still too buggy for
general use
2006-11-13 11:25:06 +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
David Turner
4e9cc3c4ee
* src/pshinter/pshalgo.c (psh_glyph_compute_inflections): fixed
...
a stupid typo which created a variable-used-before-initialized bug
2006-11-09 16:31:52 +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
91b44e65c2
- improve autofitter's handling of serif fonts (results are much better)
...
- make GCC 4 happy when compiling our zlib sources
2006-11-02 23:28:09 +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
David Turner
4060474815
- fixed a bug in af_compute_direction which generated ugly glyphs
...
- added more debug/log messages to help improve the auto-fitter
2006-11-02 16:37:35 +00:00
Werner Lemberg
950c5d2f07
Fix copyright notice (to be the same as the original file in x.org).
2006-11-01 21:18:15 +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
David Turner
29873a0ccd
* src/sfnt/ttmtx.c, src/cff/cffload.c: speeding up the CFF font
...
loader, with some large CFF fonts, FT_Open_Face is now 350% faster !
2006-10-23 10:23:17 +00:00
David Turner
e140f14232
* src/pshinter/pshalgo.c: major speed improvements to the Postscript
...
hinter, more than 100% speed increase on my machine
2006-10-23 08:56:57 +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
Werner Lemberg
1e4402e3dc
* src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer
...
in use).
* src/base/ftbase.c: Include `ftlcdfil.c'.
2006-09-29 22:10:36 +00:00
Werner Lemberg
2c002e13a7
formatting, improving documentation
2006-09-29 21:31:53 +00:00
Werner Lemberg
9b15ea341c
* src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for
...
overlapping segments. Bug reported by Stefan Koch.
2006-09-29 18:22:11 +00:00
David Turner
ad83071620
* include/freetype/internal/ftobjs.h, src/truetype/ttobjs.c,
...
src/base/ftobjs.c: fixed a bug in the automatic unpatented
hinting support which prevented normal bytecode hinting to
work properly
* src/autofit/aftypes.h: undefining AF_DEBUG to get rid of
traces
2006-09-27 16:20:59 +00:00
David Turner
3cc7d630bd
adding missing file
2006-09-27 08:48:38 +00:00
David Turner
26bb2e27d1
* src/base/Jamfile, src/base/rules.mk, vms_make.com: adding
...
'ftlcdfil.c' to the list of compiled source files
2006-09-27 07:58:43 +00:00
David Turner
8a317cf7ab
* include/freetype/freetype.h: bumping FT_FREETYPE_PATCH to 2
...
for an upcoming 2.2.2 release
* include/freetype/ftlcdfil.h, src/freetype/ftlcdfil.c:
added a new API to support color filtering of subpixel glyph
bitmaps. In default build, the function FT_Library_SetLcdFilter
returns FT_Err_Unimplemented_Feature; you need to #define
FT_CONFIG_OPTION_SUBPIXEL_RENDERING in ftoption.h to compile
the real implementation
* src/smooth/ftsmooth.c: adding support for sub-pixel color
filtering; simplifying a few function calls
* include/freetype/config/ftheader.h: adding FT_LCD_FILTER_H
macro that points to <freetype/ftlcdfil.h>
2006-09-27 07:52:48 +00:00
Werner Lemberg
e20df4a167
* src/pfr/pfrobjs.c (pfr_face_get_kerning): Skip adjustment bytes
...
correctly. Reported as Savannah bug #17843 .
2006-09-27 06:29:21 +00:00
Werner Lemberg
110246c641
formatting
2006-09-26 21:55:44 +00:00
David Turner
e3d6e94853
CHANGES BETWEEN 2.2.1 and 2.2.2
...
I. IMPORTANT BUG FIXES
- Various integer overflows have been fixed.
- PFB fonts with MacOS resource fork weren't handled correctly on
non-MacOS platforms.
- The PCF font loarder has been seriously hardened against malformed
font files.
II. IMPORTANT CHANGES
- the unpatented hinter is now part of the default build of the
library, and we added code to automatically support "tricky"
fonts that need it.
what this means is that FreeType should "just work" with certain
Asian fonts, like MingLiu, which cannot properly load without a
bytecode interpreter, but fortunately do not use any of the
patented bytecode opcodes.
Note that the API didn't change, so you can still force
unpatented hinting with a special parameter to FT_Open_Face
as well.
if you're an embedded systems developer, you might want to
*disable* the feature to save code space by undefining
TT_CONFIG_OPTION_UNPATENTED_HINTING in ftoption.h.
- LCD-optimized rendering is now disabled in all default builds
of the library, mainly due to patent reasons. For more information
see:
http://lists.gnu.org/archive/html/freetype/2006-09/msg00064.html
a new configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING has
been introduced in ftoption.h; manually define it in this file
if you want to re-enable the feature.
the change only affects the implementation, not the FreeType API.
This means that clients don't need to be modified, because the
library still generates LCD decimated bitmaps, but with the added
constraint that R=G=B on each triplet.
- Some computation bugs in the TrueType bytecode interpreter were found,
which allow us to get rid of very subtle and rare differences we had
with the Windows renderer.
III. MISCELLANEOUS
- TrueType glyph loading is now about 25% faster.
- the anti-aliased rasterizer has been optimized and is now 15% to 25%
percent faster than the previous one, depending on content
- the Type 1 loader has been improved; as an example, it now skips
over top-level dictionaries properly
======================================================================
2006-09-26 16:58:21 +00:00
David Turner
6f8c622996
* src/autofit/aftypes.h, src/autofit/afhints.h,
...
src/autofit/afmodule.c: adding support for disabling
horizontal and vertical hinting for the purpose of debugging
the auto-fitter
2006-09-26 15:42:44 +00:00
Werner Lemberg
745ff2c29f
* src/base/ftmac.c (FT_New_Face_From_FOND): Fall back to SFNT if
...
LWFN fails and both are available.
2006-09-19 05:48:02 +00:00
Werner Lemberg
f9644559a8
formatting
2006-09-12 13:48:10 +00:00
David Turner
f3050059dd
* src/sfnt/sfobjs.c (tt_face_get_name): support some function
...
which report their English names through an Apple Roman
(platform,encoding) pair, with language_id != English
if the font uses another name entry with language_id == English,
it will be selected correctly though.
* src/truetype/ttobjs.c: add unpatent-hinting selection for
"mingli.ttf"
2006-09-11 12:00:32 +00:00
Werner Lemberg
36d2eab054
* src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size'
...
values which have the upper two bytes set to 0xFF instead of 0xFF
(as it happens in at least two CJKV fonts, `HAN NOM A.ttf' and
`HAN NOM B.ttf').
* src/smooth/ftgrays.c [GRAYS_USE_GAMMA]: Really remove all code.
Formatting.
2006-09-05 19:24:34 +00:00
David Turner
2066e0acd6
fix stupid bug
2006-09-05 14:58:22 +00:00
David Turner
c7bc9b7907
* src/smooth/ftgrays.c: minor source cleanups and optimization
2006-09-05 12:17:38 +00:00
David Turner
772e55d38e
* src/smooth/ftgrays.c (gray_sweep): Avoid buffer overwrites
...
when to the end of a bitmap scanline. The fun never ends ;-)
2006-09-05 09:45:15 +00:00