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
cb37b3b36a
* builds/unix/ftsystem.c (FT_Stream_Open): Don't use ULONG_MAX but
...
LONG_MAX to avoid compiler warning. Suggested by Sean McBride.
2007-06-01 06:49:03 +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
0291a5c696
updating CHANGES
2007-05-28 15:49:08 +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
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
6ae7ff0607
Formatting, typos.
2007-05-15 11:55:37 +00:00
David Turner
0a24bd259a
do not use functions from <ctypes.h>, they are locale-dependent (and slower)
2007-05-15 10:54:10 +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
4127103f8d
* builds/win32/visualce/freetype.sln: Removed, as requested by
...
Vincent.
2007-05-06 04:51:48 +00:00
Werner Lemberg
df49e697c1
* builds/win32/visualce/*: Add Visual C++ project files for Pocket
...
PC targets.
* docs/CHANGES: Document them.
2007-05-04 06:30:05 +00:00
Werner Lemberg
5077e83e11
* builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of
...
mmap (which might happen on some RTOS). From Savannah patch #5909 .
2007-05-04 06:13:46 +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
14bf82e129
* Version 2.3.4 released.
...
=========================
Tag sources with `VER-2-3-4'.
* docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
version number to 2.3.4.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj: s/2.3.3/2.3.4/, s/233/234/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
* builds/unix/configure.raw (version_info): Set to 9:15:3.
2007-04-10 04:09:49 +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
Werner Lemberg
c81cf61fcf
Fix ChangeLog.
2007-04-06 09:28:23 +00:00
David Turner
1dcb4448c1
fixed a memory buffer overwrite bug. Damn !!
2007-04-06 08:19:04 +00:00
Werner Lemberg
9f83e05502
* Version 2.3.3 released.
...
=========================
Tag sources with `VER-2-3-3'.
* docs/CHANGES: Mention CVE-2007-1351.
2007-04-05 02:28:23 +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
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
Suzuki, Toshiya (鈴木俊哉)
86a3ee7613
Disable Carbon framework dependency on 64bit ABI of Mac OS X 10.4.x
2007-03-26 05:40:55 +00:00
Werner Lemberg
14ffe0911f
formatting
2007-03-22 06:12:43 +00:00
Suzuki, Toshiya (鈴木俊哉)
dabf0535a8
Temporal fix for 32bit unsigned long overflow on LP64 platform
2007-03-22 05:23:53 +00:00
Suzuki, Toshiya (鈴木俊哉)
4bcf957406
Suppress SGI compiler warning against setjmp
2007-03-22 04:53:45 +00:00
Werner Lemberg
c9f6c66f95
formatting
2007-03-21 13:30:14 +00:00
Suzuki, Toshiya (鈴木俊哉)
6fb74f676b
Dequote OS_INLINE in configure.raw to avoid unexpected shell evaluation
2007-03-19 06:30:26 +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
25d592a71c
* Version 2.3.2 released.
...
=========================
Tag sources with `VER-2-3-2'.
* builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproc, README: s/2.3.1/2.3.2/,
s/231/232/.
2007-03-09 07:59:35 +00:00
David Turner
121cad54ae
updating version numbers and documentation
2007-03-08 16:43:50 +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
Werner Lemberg
eb3d1fdcb5
Fix ChangeLog.
2007-02-13 08:19:49 +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
5c74d3592f
Fix ChangeLog.
2007-02-12 21:46:18 +00:00
Werner Lemberg
173d0fe4d5
Fix ChangeLog.
2007-02-12 21:44:57 +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 (鈴木俊哉)
da5ada5def
* Fixed wrong comment in ftmac.h
2007-02-05 02:46:27 +00:00
Suzuki, Toshiya (鈴木俊哉)
b8128d93a1
* Check ANSI compatibility of Mac OS X system header
2007-02-05 02:31:34 +00:00
Werner Lemberg
313d77761c
* include/freetype/ttnameid.h (TT_MS_LANGID_DZONGHKA_BHUTAN):
...
Explain why applications shouldn't use it. Found by Alexei.
2007-02-01 08:10: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
53935939df
* Version 2.3.1 released.
...
=========================
Tag sources with `VER-2-3-1-FINAL'.
* builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj: s/230/231/.
* builds/win32/visualc/index.html: s/221/231/.
* vms_make.com: Add `ftgasp'.
2007-01-31 08:53:02 +00:00
David Turner
3eaef6c170
updating version numbers to 2.3.1
2007-01-30 10:40:23 +00:00