Werner Lemberg
55c40631f4
* src/base/ftsystem.c (FT_Done_Memory): Use ft_sfree directly for
...
orthogonality (ft_free and ft_sfree could belong to different memory
pools). This fixes Savannah bug #24297 .
2008-09-18 11:20:12 +00:00
Werner Lemberg
4afcfd3056
beautifying, doc fixes.
2008-09-16 17:32:02 +00:00
Werner Lemberg
b211651ac9
* autogen.sh, builds/unix/configure.raw,
...
include/freetype/config/ftconfig.h, builds/unix/ftconfig.in: Minor
beautifying.
* include/freetype/ftadvanc.h, include/freetype/ftgasp.h,
include/freetype/ftlcdfil.h: Protect against FreeType 1.
Some other minor fixes.
* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.
Formatting, documentation improvements.
2008-09-12 16:27:48 +00:00
Werner Lemberg
8d3e6ecc3c
* src/base/ftbase.c: Include ftadvanc.c.
2008-09-11 08:29:14 +00:00
David Turner
f47d263f1b
* include/freetype/ftoption.h, include/freetype/ftconfig.h,
...
builds/unix/ftconfig.in, include/freetype/freetype.h,
src/base/ftcalc.c:
Make FT_MulFix an inlined function. Also provide an assembler
implementation for ARM architectures. this is done to speedup
FreeType a little (on x86 3% when loading+hinting, 10% when
rendering, ARM savings are more important though).
Disable this by undefining FT_CONFIG_OPTION_INLINE_MULFIX in
ftconfig.h
2008-09-02 02:21:58 +00:00
David Turner
238bb38513
ooops. Add missing files
2008-09-01 21:35:53 +00:00
David Turner
28534d616b
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
...
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-01 21:35:21 +00:00
Suzuki, Toshiya (鈴木俊哉)
4c60bd916c
* Fix FT_Stream_New() to initialize stream always
2008-08-19 15:35:44 +00:00
Werner Lemberg
77f7358533
Formatting.
2008-08-19 04:53:02 +00:00
Suzuki, Toshiya (鈴木俊哉)
fdc2d7618a
* src/base/ftmac.c: Add a fallback for the case that HAVE_TYPE_RESOURCE_INDEX is not set by configure
2008-08-18 06:02:07 +00:00
Werner Lemberg
50997cd742
* src/pfr/pfrdrivr.c (pfr_get_advance): Fix off-by-one error.
...
* src/base/ftcalc.c (FT_MulFix): Fix portability issue.
* src/sfnt/ttpost.c (MAC_NAME) [!FT_CONFIG_OPTION_POSTSCRIPT_NAMES]:
Fix compiler warning.
2008-07-16 21:03:40 +00:00
Werner Lemberg
4e7d984d94
* src/ftlyph.c (FT_Matrix_Multiply, FT_Matrix_Invert): Move to...
...
* src/ftcalc.c: Here. This fixes Savannah bug #23729 .
2008-06-27 22:26:11 +00:00
Suzuki, Toshiya (鈴木俊哉)
f3a924dd53
Fix for 10.4u SDK bundled to Mac OS X 10.5
2008-06-24 17:13:58 +00:00
Werner Lemberg
ad83e05b37
* src/base/ftcalc.c (FT_MulFix) <asm>: Protect registers correctly
...
from clobbering. Patch from Savannah bug report #23556 .
* docs/CHANGES: Document it.
2008-06-15 11:06:12 +00:00
Werner Lemberg
f3200faaf3
Typo.
2008-06-10 04:57:57 +00:00
Werner Lemberg
102bb83afd
* src/base/ftobjs.c (open_face): Check `clazz->init_face' and
...
`clazz->done_face'.
Update documentation of FT_Driver_ClassRec.
2008-06-10 04:57:19 +00:00
Werner Lemberg
7cb9ec0f1c
* src/type1/t1parse.h (T1_ParserRec): Make `base_len' and
...
`private_len' unsigned.
* src/type1/t1parse.c (read_pfb_tag): Make `asize' unsigned and read
it as such.
(T1_New_Parser, T1_Get_Private_Dict): Make `size' unsigned.
* src/base/ftstream.c (FT_Stream_Skip): Reject negative values.
* src/type1/t1load.c (parse_blend_design_positions): Check `n_axis'
for sane value.
Fix typo.
* src/psaux/psobjs.c (ps_table_add): Check `idx' correctly.
* src/truetype/ttinterp (Ins_SHC): Use BOUNDS() to check
`last_point'.
* src/sfnt/ttload.c (tt_face_load_max_profile): Limit
`maxTwilightPoints'.
2008-06-09 20:49:29 +00:00
Werner Lemberg
2b0b4221ab
Cosmetic code changes.
2008-05-28 22:17:28 +00:00
Suzuki, Toshiya (鈴木俊哉)
062f88a4f3
* src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid aface is returned by FT_New_Face_From_FOND()
2008-05-20 07:57:53 +00:00
Werner Lemberg
16dc51feae
* src/base/ftdebug.c (FT_Message, FT_Panic): Send output to stderr.
...
This fixes Savannah bug #23280 .
* docs/CHANGES: Updated.
Some formatting.
2008-05-18 17:36:15 +00:00
Werner Lemberg
e6e6eade04
Finish fix of scaling bug of CID-keyed CFF subfonts.
...
* include/freetype/internal/ftcalc.h, src/base/ftcalc.c
(FT_Matrix_Multiply_Scaled, FT_Vector_Transform_Scaled): New
functions.
* src/cff/cffobjs.h (CFF_Internal): New struct. It is used to
provide global hinting data for both the top-font and all subfonts
(with proper scaling).
* src/cff/cffobjs.c (cff_make_private_dict): New function, using
code from `cff_size_init'.
(cff_size_init, cff_size_done, cff_size_select, cff_size_request):
Use CFF_Internal and handle subfonts.
(cff_face_init): Handle top-dict and subfont matrices correctly;
apply some heuristic in case of unlikely matrix concatenation
results. This has been discussed with people from Adobe (thanks
goes mainly to David Lemon) who confirm that the CFF specs are fuzzy
and not correct.
* src/cff/cffgload.h (cff_decoder_prepare): Add `size' argument.
* src/cff/cffgload.c (cff_builder_init): Updated.
(cff_decoder_prepare): Handle hints globals for subfonts.
Update all callers.
(cff_slot_load): Handling scaling of subfonts properly.
* src/cff/cffparse.c (cff_parse_fixed_dynamic): New function.
(cff_parse_font_matrix): Use it.
* src/cff/cfftypes.h (CFF_FontDictRec): Make `units_per_em'
FT_ULong.
* docs/CHANGES: Document it.
2008-05-14 23:05:38 +00:00
Werner Lemberg
6d29f0f1e8
* src/base/ftobjs.c (FT_Load_Glyph): Call the auto-hinter without
...
transformation since it recursively calls FT_Load_Glyph. This fixes
Savannah bug #23143 .
2008-05-03 15:54:15 +00:00
Werner Lemberg
8271e5e443
whitespace
2008-04-13 21:59:29 +00:00
Werner Lemberg
c32e83f23f
Fix compilation with g++ 4.1 (with both single' and
multi'
...
targets).
* src/base/ftobjs.c (FT_Open_Face): Don't define a variable in block
which is crossed by a `goto'.
* src/otvalid/otvalid.h (otv_MATH_validate): Add prototype.
2008-04-01 06:07:37 +00:00
Werner Lemberg
9b9d3349b2
minor improvements, copyright years
2008-02-21 23:22:06 +00:00
Suzuki, Toshiya (鈴木俊哉)
6cb2faa845
* src/base/ftmac.c: Fix a bug of PostScript font name synthesis in parse_fond().
2008-02-21 18:46:07 +00:00
Suzuki, Toshiya (鈴木俊哉)
d2c55ab0e4
fix for inexistent sfnt ID in broken FOND
2008-02-15 09:12:59 +00:00
Suzuki, Toshiya (鈴木俊哉)
60e83a1d57
* src/base/ftbase.c: <ftmac.c> is replaced by "ftmac.c"
2008-02-14 02:55:16 +00:00
Werner Lemberg
4c93399155
* src/base/ftlcdfil.c (_ft_lcd_filter_legacy): Updated comment to
...
mention intra-pixel algorithm.
* include/freetype/freetype.h (FT_Render_Mode): Mention that
FT_Library_SetLcdFilter can be used to reduce fringes.
2008-01-18 05:32:55 +00:00
Suzuki, Toshiya (鈴木俊哉)
75696860ea
Formatting.
2008-01-04 01:43:23 +00:00
Werner Lemberg
d2e1573706
* src/smooth/ftgrays.c (gray_raster_render): Check `outline'
...
correctly.
Whitespace.
2007-12-30 23:49:14 +00:00
Suzuki, Toshiya (鈴木俊哉)
540b954574
Improvement of POSIX resource-fork accessor to load Mac OS X HelveLTMM
2007-12-21 06:03:59 +00:00
Suzuki, Toshiya (鈴木俊哉)
a6d36573bd
* src/base/ftrfork.c: add support for new pathname syntax "..namedfork/rsrc" to access resource fork on Mac OS X.
2007-12-06 10:27:15 +00:00
Suzuki, Toshiya (鈴木俊哉)
05f5c58d13
Improvements of the document and comments in Mac OS sources by Sean McBride
2007-12-06 05:43:36 +00:00
Suzuki, Toshiya (鈴木俊哉)
86c0f90498
* src/base/{ftobjs.c, ftrfork.c}: recovery of Carbon-free legacy MacOS font support in freetype-2.3.4
2007-11-20 14:00:17 +00:00
Suzuki, Toshiya (鈴木俊哉)
00518cacad
* src/base/ftmac.c: Revise Carbon dependent functions for Mac OS X 10.5
2007-11-16 15:48:58 +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
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
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
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
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
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
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