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
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
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
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
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
David Turner
72a0dd247d
some simplifications of the TrueType interpreter projection code
...
(preliminaries to various interpreter fixes)
2007-02-12 15:24:51 +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
6e87ed9f04
Spelling fixes from Alexei.
2007-01-26 22:18:56 +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
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
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
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
f629439905
formatting, copyright years
2007-01-06 07:47:45 +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
Werner Lemberg
82dba7620e
copyright year
2007-01-05 12:41:49 +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
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
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
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
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
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
Werner Lemberg
046bf8b0cc
formatting
2006-10-03 08:43:42 +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
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
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
Werner Lemberg
2d8629b393
* devel/ftoption.h: Synchronize with
...
include/freetype/config/ftoption.h.
* src/smooth/ftgrays.c (gray_record_cell): Remove shadowing
variable declaration.
(gray_convert_glyph): Fix compiler warnings.
Formatting, copyright years.
2006-09-03 06:18:45 +00:00
David Turner
6d79f214e1
* src/truetype/ttobjs.c: updated the TrueType loader to recognize
...
a few fonts that require the automatic unpatented loader
2006-09-01 14:09:35 +00:00
David Turner
6aa260ce61
support for "automatic unpatented hinting" added
...
we still need to determine the list of "trick" CJK fonts
that are going to toggle the bytecode interpreter instead
of the auto-hinter
2006-08-25 22:45:13 +00:00
Werner Lemberg
1234299620
formatting
2006-08-19 11:18:09 +00:00
David Turner
33f5f24957
* include/freetype/internal/ftgloadr.h,
...
include/freetype/internal/tttypes.h, src/base/ftgloadr.c,
src/base/ftobjs.c, src/truetype/ttgload.c, src/truetype/ttinterp.c,
src/truetype/ttobjs.c: improvements to native TrueType hinting,
this is a first try, controlled by the FIX_BYTECODE macro in
src/truetype/ttinterp.c
2006-08-16 16:50:55 +00:00
David Turner
9fbfc6af07
* src/cid/cidgload.c (cid_slot_load_glyph),
...
src/truetype/ttgload.c (tt_prepare_zone): removing compiler warnings
2006-08-16 09:11:31 +00:00
Werner Lemberg
a2da05c2c5
Fix two hinting bugs as reported in
...
http://lists.nongnu.org/archive/html/freetype-devel/2006-06/msg00057.html .
* include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add
`first_point' member.
* src/truetype/ttgload.c (tt_prepare_zone): Initialize
`first_point'.
(TT_Process_Composite_Glyph): Always untouch points.
* src/truetype/ttinterp.c (Ins_SHC): Fix computation of
`first_point' and `last_point' in case of composite glyphs.
(Ins_IUP): Fix computation of `end_point'.
2006-06-25 06:27:27 +00:00
Werner Lemberg
545c4e566e
* src/truetype/ttgload.c (TT_Load_Composite_Glyph)
...
[FT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again.
Formatting, documentation fixes.
2006-05-17 22:55:04 +00:00
David Turner
281679de85
* include/freetype/internal/tttypes.h, src/autofit/afangles.c,
...
src/autofit/afcjk.c, src/autofit/afhints.c, src/autofit/aflatin.c,
src/autofit/aftypes.h, src/base/ftcalc.c, src/base/ftoutln.c,
src/gzip/ftgzip.c, src/psaux/psconv.c, src/truetype/ttgload.c,
src/type1/t1gload.c:
this is a major patch used to drastically improve the performance
of loading glyphs. This both speeds up loading the glypn vector
themselves and the auto-fitter.
note that we've started using inline assembler with GCC to
implement FT_MulFix, given that this function is so damn
important for the engine's performance.
the resulting speed-up is about 25%.
2006-05-17 13:34:21 +00:00
Werner Lemberg
c6afa1221a
* include/freetype/internal/ftmemory.h: s/new/newsz/ (for C++).
...
(FT_ALLOC): Remove redundant redefinition.
* builds/compiler/gcc-dev.mk (CFLAGS) [g++]: Don't use
`-Wstrict-prototypes'.
* src/base/ftstream.c (FT_Stream_EnterFrame): Add cast.
Formatting, copyright years.
2006-05-02 22:22:16 +00:00
David Turner
9ca782569c
* include/freetype/internal/ftmemory.h, src/base/ftbitmap.c,
...
src/base/ftmac.c, src/base/ftrfork.c, src/lzw/ftzopen.c,
src/raster/ftrend1.c, src/sfnt/ttpost.c, src/truetype/ttgxvar.c,
src/type42/t42parse.c, src/winfonts/winfnt.c: hardening the code
against out-of-bounds conditions when allocating arrays. This is
for the cases where FT_NEW_ARRAY and FT_RENEW_ARRAY are not used
already. Introducing the new FT_ALLOC_MULT and FT_REALLOC_MULT
macros.
2006-05-02 09:00:29 +00:00
David Turner
da95af6cf6
* builds/win32/visualc/freetype.dsp: updating the project file, adding
...
missing base source files (e.g. ftstroke.c, ftxf86.c, etc...)
* src/autofit/afcjk.c, src/autofit/aflatin.c, src/base/ftobjs.c,
src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrobjs.c,
src/sfnt/sfobjs.c, src/sfnt/ttmtx.c, src/truetype/ttpload.c,
src/truetype/ttpload.h, src/type1/t1afm.c, src/type1/t1objs.c:
removing compiler warnings when building with Visual C++ 6 and /W4
2006-03-20 13:32:33 +00:00