Werner Lemberg
d503fc57f2
* src/sfnt/sfobjs.c (sfnt_done_face): Check `sfnt' everywhere. This
...
fixes Savannah bug #21485 .
2007-11-01 09:19:44 +00:00
Werner Lemberg
27649fb62b
* src/winfonts/winfnt.c (FNT_Face_Init): Check first that the driver
...
can handle the font at all, then check `face_index'. Otherwise, the
driver might return the wrong error code. This fixes Savannah bug
#21468 .
2007-10-29 22:00:58 +00:00
Werner Lemberg
e77b6c4955
Typo.
2007-10-21 08:18:40 +00:00
Werner Lemberg
7d9c189ac2
* src/sfnt/sfobjs.c (sfnt_load_face): Support bit 9 and prepare
...
support for bit 8 in the `OS/2' table. MS is already using this;
hopefully, this becomes part of OpenType 1.5.
Prepare also support for `name' IDs 21 (WWS_FAMILY) and 22
(WWS_SUBFAMILY).
2007-10-21 08:12:30 +00:00
Werner Lemberg
6684257742
* src/tools/docmaker/tohtml.py (html_header_2): Fix typo.
...
Add `td.left' element to CSS.
(toc_section_enter): Use it.
2007-10-20 16:17:28 +00:00
Werner Lemberg
7f2425fb4f
Formatting, improving documentation.
2007-10-20 16:15:07 +00:00
David Turner
cf432dbf22
* include/freetype/freetype.h, src/base/ftobjs.c: renamed
...
cmap14-related new APIs to the FT_Object_ActionName scheme.
update the documentation for these APIs
* src/sfnt/ttcmap.c: stronger cmap 14 validation, make the
code a little more consistent with FreeType coding conventions
and modify the cmap14 functions that returned a newly allocated
array to use a persistent vector from the TT_CMap14 object
instead.
2007-10-19 12:36:40 +00:00
Werner Lemberg
9a966b7d1b
Add support for cmap type 14.
...
* devel/ftoption.h, include/freetype/config/ftoption.h
(TT_CONFIG_CMAP_FORMAT_14): New macro.
* include/freetype/internal/ftobjs.h (FT_CMap_CharVarIndexFunc,
FT_CMap_CharVarIsDefaultFunc, FT_CMap_VariantListFunc,
FT_CMap_CharVariantListFunc, FT_CMap_VariantCharListFunc): New
support function prototypes.
(FT_CMap_ClassRec): Add them.
Update all users.
* include/freetype/ttnameid.h (TT_APPLE_ID_VARIANT_SELECTOR): New
macro.
* include/freetype/freetype.h (FT_Get_Char_Variant_Index,
FT_Get_Char_Variant_IsDefault, FT_Get_Variant_Selectors,
FT_Get_Variants_Of_Char, FT_Get_Chars_Of_Variant): New API
functions.
* src/base/ftobjs.c (find_variant_selector_charmap): New auxiliary
function.
(FT_Set_Charmap): Disallow cmaps of type 14.
(FT_Get_Char_Variant_Index, FT_Get_Char_Variant_IsDefault,
FT_Get_Variant_Selectors, FT_Get_Variants_Of_Char,
FT_Get_Chars_Of_Variant): New API functions.
* src/sfnt/ttcmap.c (TT_PEEK_UINT24, TT_NEXT_UINT24): New macros.
(TT_CMap14Rec, tt_cmap14_init, tt_cmap14_validate,
tt_cmap14_char_index, tt_cmap14_char_next, tt_cmap14_get_info,
tt_cmap14_char_map_def_binary, tt_cmap14_char_map_nondef_binary,
tt_cmap14_find_variant, tt_cmap14_char_var_index,
tt_cmap14_char_var_isdefault, tt_cmap14_variants,
tt_cmap14_char_variants, tt_cmap14_def_char_count,
tt_cmap14_get_def_chars, tt_cmap14_get_nondef_chars,
tt_cmap14_variant_chars, tt_cmap14_class_rec): New functions and
structures for cmap 14 support.
(tt_cmap_classes): Register tt_cmap14_class_rec.
(tt_face_build_cmaps): One more error message.
* docs/CHANGES: Mention cmap 14 support.
2007-10-15 17:21:32 +00:00
Werner Lemberg
cc272c5166
Clarify `best' in documentation of FT_Select_Charmap.
2007-10-01 07:33:38 +00:00
Werner Lemberg
74597ccd8f
* src/base/ftobjs.c (find_unicode_charmap): If search for a UCS-4
...
charmap fails, do the loop again while searching a UCS-2 charmap.
This favours MS charmaps over Apple ones.
2007-10-01 07:08:56 +00:00
Suzuki, Toshiya (鈴木俊哉)
2be3f472dd
* src/base/ftmac.c: Use more abstract data type instead of `short\'
2007-08-29 06:08:59 +00:00
Werner Lemberg
abc44f5ecf
* src/otvalid/otvcmmn.c (otv_x_y_ux_sy): Skip context glyphs. Found
...
by Imran Yousaf. Fixes Savannah bug #20773 .
(otv_Lookup_validate): Correct handling of LookupType. Found by
Imran Yousaf. Fixes Savannah bug #20782 .
2007-08-18 06:38:07 +00:00
Werner Lemberg
23a424f521
* src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix handling of
...
SingleSubstFormat1.
2007-08-17 20:16:44 +00:00
Suzuki, Toshiya (鈴木俊哉)
4fc0ccea68
* Fix a bug in configure.raw overlooking native C compiler if named "platform-gcc"
2007-08-11 16:35:06 +00:00
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
b66178851a
* builds/unix/configure.raw: Add call to AC_LIBTOOL_WIN32_DLL.
...
Fixes Savannah bug #20686 .
2007-08-04 22:17:48 +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
986ea4b2cb
* docs/PROBLEMS: Mention that some PS based fonts can't be
...
handled correctly by FreeType.
2007-07-04 04:53:15 +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
aa52eab74a
Updated.
2007-07-02 15:14:50 +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
Werner Lemberg
7854c4a521
Fix ChangeLog.
2007-06-23 07:16:20 +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
c67fb6f1a3
Fix ChangeLog.
2007-06-20 06:08:13 +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