Werner Lemberg
90f0487ff1
Cosmetics.
2011-03-28 15:41:49 +02:00
Werner Lemberg
f3c57917f0
Copyright.
2011-03-26 09:03:32 +01:00
Werner Lemberg
360646c968
* src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 256.
...
This limit is given on p. 37 of Adobe Tech Note #5014 .
2011-03-24 09:29:23 +01:00
Werner Lemberg
01caf4a7a9
* src/truetype/ttpload.c(tt_face_load_loca): Fix mismatch warning.
2011-03-23 05:19:59 +01:00
Werner Lemberg
6e3fee0b54
Typo.
2011-03-21 09:28:52 +01:00
Werner Lemberg
da08e6974c
Ignore *.o and *.a files.
2011-03-20 18:28:31 +01:00
Werner Lemberg
af7b8b1a9f
* src/sfnt/sfobjs.c (sfnt_open_font): Check number of TTC subfonts.
2011-03-20 07:51:57 +01:00
Werner Lemberg
8bd77f9030
More C++ compilation fixes.
...
* src/autofit/afhints.c (af_glyph_hints_dump_points,
af_glyph_hints_dump_segments, af_glyph_hints_dump_edges)
[__cplusplus]: Protect with `extern "C"'.
2011-03-19 15:27:04 +01:00
Werner Lemberg
c7f26a1982
C++ compilation fixes.
...
* src/autofit/aflatin.c (af_latin_hints_apply), src/autofit/afcjk.c
(af_cjk_hints_apply): Use cast for `dim'.
2011-03-19 02:28:21 +01:00
Alexei Podtelezhnikov
8fb8841430
A better fix for Savannah bug #32671 .
...
* src/smooth/ftgrays.c (gray_render_conic): Clean up code and
replace WHILE loop with a more natural DO-WHILE construct.
2011-03-17 20:24:57 +01:00
Werner Lemberg
437fb8ebf8
* src/base/ftstroke.c (FT_StrokerRec): Remove unused `valid' field.
...
Suggested by Graham Asher.
2011-03-16 08:54:02 +01:00
Werner Lemberg
cecd912747
Make FT_Sfnt_Table_Info return the number of SFNT tables.
...
* src/sfnt/sfdriver.c (sfnt_table_info): Implement it.
* include/freetype/tttables.h: Update documentation.
* docs/CHANGES: Updated.
2011-03-09 06:18:28 +01:00
Werner Lemberg
d87389e9d3
Whitespace.
2011-03-08 05:01:21 +01:00
Bram Tassyns
3fd158d0ce
Fix Savannah bug #27988 .
...
* src/cff/cffobjs.c (remove_style): New function.
(cff_face_init): Use it to strip off the style part of the family
name.
2011-03-07 09:33:53 +01:00
Werner Lemberg
9c111b0179
* docs/CHANGES: Updated.
2011-03-07 06:07:53 +01:00
Werner Lemberg
6c045535ea
Quick fix for Savannah bug #32671 .
...
This isn't the optimal solution yet, but it restores the previous
rendering quality (more or less).
* src/smooth/ftgrays.c (gray_render_conic): Do more splitting.
2011-03-07 05:40:42 +01:00
Werner Lemberg
c9bdfa7e65
Fix autohinting fallback.
...
* src/base/ftobjs.c (FT_Load_Glyph): Assure that we only check TTFs,
ignoring CFF-based OTFs.
2011-03-06 18:35:37 +01:00
Werner Lemberg
4d0586f0da
Whitespace.
2011-03-06 18:22:08 +01:00
Werner Lemberg
576fc2c06e
Add AF_CONFIG_OPTION_USE_WARPER to control the autofit warper.
...
* devel/ftoption.h, include/freetype/config/ftoption.h
(AF_CONFIG_OPTION_USE_WARPER): New macro.
* src/autofit/aftypes.h (AF_USE_WARPER): Remove.
* src/autofit/*: s/AF_USE_WARPER/AF_CONFIG_OPTION_USE_WARPER/.
* src/autofit/afwarp.c [!AF_CONFIG_OPTION_USE_WARPER]: Replace dummy
variable assignment with a typedef.
2011-03-02 03:52:36 +01:00
Werner Lemberg
e547a656a5
[autofit] More comments, formatting, whitespace.
2011-02-26 18:39:10 +01:00
Werner Lemberg
b7fc0c7461
[autofit] Slight simplifications.
...
* src/autofit/aflatin.c (af_latin_hints_link_segments): Remove
test which always returns false.
(af_latin_hints_compute_blue_edges): Remove redundant assignment.
2011-02-26 18:36:21 +01:00
Werner Lemberg
6cfbb23ca3
[autofit] Some comments. Whitespace.
2011-02-26 17:32:38 +01:00
Werner Lemberg
e7d1fb3142
* docs/PROBLEMS: Mention rendering differences on different
...
platforms.
Suggested and worded by Jason Owen <jason.a.owen@gmail.com>.
2011-02-24 20:01:00 +01:00
Werner Lemberg
6c28689691
[autofit] Comment out unused code.
...
* src/autofit/aflatin.c, src/autofit/aflatin2.c
(af_latin_hints_compute_edges): Do it.
2011-02-24 05:52:14 +01:00
Werner Lemberg
f42cc539e0
* src/autofit/afhints.h (AF_GlyphHints): Remove unused field.
2011-02-24 05:18:46 +01:00
Werner Lemberg
6af024231b
[autofit] Add ASCII drawing for better explanation.
2011-02-22 10:29:30 +01:00
suzuki toshiya
ae6d1d7b98
[cache] Fix an off-by-one bug in FTC_Manager_RemoveFaceID().
...
Found by <ychen1392001@yahoo.com.cn>, see detail in
http://lists.gnu.org/archive/html/freetype/2011-01/msg00023.html
* src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Check the node
buckets[cache->p + cache->mask] too.
2011-02-20 19:14:25 +09:00
Werner Lemberg
7ad15d5926
[autofit] Document warper.
2011-02-20 07:30:46 +01:00
Kevin Kofler
ff8095077c
Fall back to autohinting if a TTF/OTF doesn't contain any bytecode.
...
This is Savannah patch #7471 .
* src/base/ftobjs.c (FT_Load_Glyph): Implement it.
2011-02-19 23:09:26 +01:00
John Tytgat
18fffa456e
[cff] Fix subset prefix removal.
...
* src/cff/cffobjs.c (remove_subset_prefix): Update length after
subset prefix removal.
2011-02-19 07:11:17 +01:00
Werner Lemberg
c5bda503b9
[autofit] Add a lot of comments and do some minor formatting.
2011-02-16 21:59:44 +01:00
Werner Lemberg
dd6c38fac7
Convert to CRLF.
2011-02-14 08:37:30 +01:00
Bradley Grainger
70f7db113e
Add inline assembly version of FT_MulFix for MSVC.
...
* include/freetype/config/ftconfig.h: Ported the FT_MulFix_i386
function from GNU inline assembly syntax (see #ifdef __GNUC__ block
above) to MASM syntax for Microsoft Visual C++.
2011-02-14 08:32:24 +01:00
Bradley Grainger
d2731e104c
Add project and solution files in Visual Studio 2010 format.
...
* builds/win32/.gitignore: Ignore user-specific cache files.
* builds/win32/vc2010/: Add VS2010 project & solution files, created
by upgrading builds/win32/vc2008/freetype.vcproj.
* objs/.gitignore: Ignore Visual Studio output files.
2011-02-14 08:32:24 +01:00
Werner Lemberg
713faece86
* src/autofit/afdummy.c: Include `aferrors.h'.
...
Problem reported by Chris Liddel <chris.liddell@artifex.com>.
2011-02-03 19:47:13 +01:00
Werner Lemberg
75df70600f
[cff] Ignore unknown operators in charstrings.
...
Patch suggested by Miles.Lau <sunliang_liu@foxitsoftware.com>.
* src/cff/cffgload.c (cff_decoder_parse_charstrings): Emit tracing
message for unknown operators and continue instead of exiting with a
syntax error.
2011-02-01 07:36:27 +01:00
Werner Lemberg
18931a5a5d
[truetype] FT_LOAD_PEDANTIC now affects `prep' and `fpgm' also.
...
* src/truetype/ttgload.c (tt_loader_init): Handle
`FT_LOAD_PEDANTIC'.
* src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
tt_size_init_bytecode, tt_size_ready_bytecode): New argument to
handle pedantic mode.
* src/truetype/ttobjs.h: Updated.
2011-02-01 07:08:43 +01:00
Werner Lemberg
f1a981b5ce
[truetype] Protect jump instructions against endless loops.
...
* src/truetype/interp.c (DO_JROT, DO_JMPR, DO_JROF): Exit with error
if offset is zero.
2011-01-31 22:26:53 +01:00
Werner Lemberg
d6a213f8ea
[truetype] Improve handling of invalid references.
...
* src/truetype/interp.c: Set even more TT_Err_Invalid_Reference
error codes only if pedantic hinting is active. At the same time,
try to provide sane values which hopefully allow useful
continuation. Exception to this is CALL and LOOPCALL – due to
possible stack corruption it is necessary to bail out.
2011-01-31 18:51:07 +01:00
Werner Lemberg
96f0456483
[truetype] Improve handling of stack underflow.
...
* src/truetype/ttinterp.c (TT_RunIns, Ins_FLIPPT, Ins_DELTAP,
Ins_DELTAC): Exit with error only if `pedantic_hinting' is set.
Otherwise, try to do something sane.
2011-01-31 10:24:32 +01:00
Werner Lemberg
91a97164ca
Whitespace.
2011-01-30 20:12:54 +01:00
Werner Lemberg
0682251e9f
* src/sfnt/ttmtx.c (tt_face_load_hmtx): Fix tracing message.
2011-01-30 16:38:09 +01:00
LIU Sun-Liang
c61b3596d4
[truetype]: Fix behaviour of MIAP for invalid arguments.
...
* src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in
case of error.
2011-01-30 16:29:45 +01:00
Werner Lemberg
332da87d99
[autofit] Some formatting and clean-ups.
2011-01-23 12:42:23 +01:00
Werner Lemberg
dcdb3167dc
[truetype] Fix handling of MIRP instruction.
...
Thanks to Greg Hitchcock who explained the issue.
* src/truetype/ttinterp.c (Ins_MIRP): Replace a `>=' operator with
`>' since the description in the specification is incorrect.
This fixes, for example, glyph `two' in font `Helvetica Neue LT Com
65 medium' at 15ppem.
2011-01-18 07:35:26 +01:00
suzuki toshiya
17f54bc66c
Fix ARM assembly code in include/freetype/config/ftconfig.h.
...
* include/freetype/config/ftconfig.h (FT_MulFix_arm):
Copy the maintained code from builds/unix/ftconfig.in.
Old GNU binutils could not accept the reduced syntax
`orr %0, %2, lsl #16'. Un-omitted syntax like RVCT,
`orr %0, %0, %2, lsl #16' is better. Reported by
Johnson Y. Yan. The bug report by Qt developers is
considered too.
http://bugreports.qt.nokia.com/browse/QTBUG-6521
2011-01-15 21:53:32 +09:00
Werner Lemberg
21bdca7907
[raster] Make bbox handling the same as with Microsoft's rasterizer.
...
Right before B/W rasterizing, the bbox gets simply rounded to
integers. This fixes, for example, glyph `three' in font `Helvetica
Neue LT Com 65 Medium' at 11ppem.
Thanks to Greg Hitchcock who explained this behaviour.
* src/raster/ftrend1.c (ft_raster1_render): Implement it.
2011-01-15 09:46:13 +01:00
suzuki toshiya
a2ef6647ae
Copy -mcpu=* & -march=* options from CFLAGS to LDFLAGS.
...
* builds/unix/configure.raw: Consider recent gcc-standard
flags to specify architecture in CFLAGS & LDFLAGS
harmonization. Requested by Savannah bug #32114 , to
support multilib feature of BuildRoot SDK correctly.
2011-01-15 13:33:28 +09:00
suzuki toshiya
c68a82d8fc
Fix off-by-one bug in CFLAGS & LDFLAGS harmonizer.
...
* builds/unix/configure.raw: Some important options that
included in CFLAGS but not in LDFLAGS are copied to
LDFLAGS, but the last option in CFLAGS was not checked.
2011-01-15 13:21:32 +09:00
Werner Lemberg
0039d0120e
[raster] Add undocumented drop-out rule to the other bbox side also.
...
* src/raster/ftraster.c (Vertical_Sweep_Drop,
Horizontal_Sweep_Drop): Implement it.
2011-01-14 19:44:29 +01:00