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
689dd66b56
More typo fixes from Alexei.
2007-01-30 23:08:50 +00:00
David Turner
a7ee608c1d
disable light auto-hinting optimization for the next release
2007-01-30 10:33:53 +00:00
Werner Lemberg
6e87ed9f04
Spelling fixes from Alexei.
2007-01-26 22:18:56 +00:00
Werner Lemberg
bf24176be5
formatting
2007-01-26 16:08:49 +00:00
David Turner
d91eebda1c
improvement to glyph spacing, especially when light auto-hinting
2007-01-26 15:05:41 +00:00
Werner Lemberg
d785566330
formatting, rearranging
2007-01-25 13:53:56 +00:00
David Turner
a42567bf66
- same CFF loader fix (stricter checking though than Werner's version)
...
- document light auto-hinter improvements
2007-01-25 12:23:37 +00:00
Werner Lemberg
b1be9e8b57
* src/cff/cffload.c (cff_index_get_pointers): Handle last entry
...
correctly. This fixes Savannah bug #18867 .
* docs/CHANGES: Document it.
Other formatting.
2007-01-25 11:50:00 +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
David Turner
b6de8d1d3f
* src/autofit/aflatin.c, src/autofit/aftypes.h, src/autofit/afwarp.h,
...
src/autofit/afwarp.c: fix and enable the warper to improve "light"
hinting mode. This is not necessarily a final version, but it seems
to work well
2007-01-23 15:51:50 +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
011d111218
* src/sfnt/ttmtx.c (tt_face_get_metrics)
...
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Fix limit check.
2007-01-21 09:36:00 +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
281c148621
* src/type1/t1afm.c (T1_Read_Metrics): MS Windows allows PFM
...
versions up to 0x3FF without complaining.
2007-01-13 22:50:51 +00:00
Werner Lemberg
ac250b228a
Add FT_Get_PS_Font_Info interface to CFF driver.
...
* src/cff/cfftypes.h: Include FT_TYPE1_TABLES_H.
(CFF_FontRec): Add `font_info' field.
* src/cff/cffload.c: Include FT_TYPE1_TABLES_H.
(cff_font_done): Free font->font_info if necessary.
* src/cff/cffdrvr.c (cff_ps_get_font_info): New function.
(cff_service_ps_info): Register cff_ps_get_font_info.
2007-01-13 14:01:36 +00:00
Werner Lemberg
23df31adcc
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Fix compilation
...
with C++ compiler.
* src/autofit/afhints.c (af_glyph_hints_dump_segments,
af_glyph_hints_dump_edges): Ditto.
* src/base/rules.mk (BASE_SRC): Remove ftgasp.c (it's already in
`modules.cfg').
* src/sfnt/ttsbit0.h: Remove.
* src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c.
2007-01-13 08:45:00 +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
17432b5e37
* src/type1/t1load.c (is_space): Removed.
...
(parse_encoding, parse_charstrings): Use IS_PS_DELIM.
(parse_charstrings): Use IS_PS_TOKEN.
* autogen.sh: Avoid bash specific syntax.
2007-01-12 09:28:44 +00:00
David Turner
7a3c564e2e
* src/base/ftobjs.c (IsMacResource): fixed a small bug that caused a
...
crash with some Mac OS X .dfont files. Submitted by Masatake Yamoto.
2007-01-11 15:09:01 +00:00
David Turner
2628ea9c12
* src/pshinter/pshalgo.c (psh_glyph_compute_inflections):
...
fixed a typo which created an endless loop with some malformed
font files
2007-01-10 13:15:56 +00:00
Werner Lemberg
bf02d396ca
* src/type1/t1load.c (T1_Get_MM_Var): Always return fixed point
...
values.
2007-01-10 07:07:37 +00:00
Werner Lemberg
cc7f12a429
formatting, copyright years and messages, doc polishing
2007-01-09 10:37:36 +00:00
David Turner
f48b60ed59
* include/freetype/ftgasp.h, src/base/ftgasp.c: adding a
...
new API FT_Get_Gasp to return entries of the GASP table
corresponding to a given character pixel size.
* src/sfnt/ttload.c: add version check for the GASP table,
in order to be better future-proof
* include/freetype/config/ftheader.h: add definition of
FT_GASP_H, corresponding to <freetype/ftgasp.h>
* src/base/rules.mk, src/base/Jamfile, modules.cfg,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj: Adding src/base/ftgasp.c
to the default build
2007-01-08 15:15:32 +00:00
Werner Lemberg
b8004d2e88
* src/cid/cidparse.c (cid_parser_new): Improve error message for
...
Type 11 fonts.
Scan for `/sfnts' token.
2007-01-07 09:13:38 +00:00
Werner Lemberg
e6b6f3733e
* src/cid/cidparse.c (cid_parser_new): Reject Type 42 CID-keyed
...
fonts.
2007-01-07 00:06:47 +00:00
Werner Lemberg
be5f797f5b
* src/cff/cffload.c (cff_index_init): Remove unused variable.
...
(cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
2007-01-06 07:51:48 +00:00
Werner Lemberg
f629439905
formatting, copyright years
2007-01-06 07:47:45 +00:00
David Turner
d88a0c9e64
fixing typo
2007-01-05 17:59:18 +00:00
David Turner
34fcd0b409
* src/pfr/pfrobjs.c (pfr_face_init): detect non-scalable fonts
...
correctly. fixes bug #17876
2007-01-05 15:55:59 +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
David Turner
91a3402d78
- don't load metrics table in memory, reduces heap usage
...
- forgot to commit the changes in cffload.c that are already documented
2007-01-05 14:47:08 +00:00
David Turner
a3a3c5d711
small optimization in the CMAP 4 validator
2007-01-05 13:15:29 +00:00
David Turner
5dbdb6c3c4
* src/cff/cffload.c, src/cff/cffload.h, src/cff/cffgload.c,
...
src/cff/cfftypes.h: formatting + do not load the CFF index
offsets into memory, since this wastes a *lot* of heap memory
with large Asian CFF fonts. There is no significant performance
loss
2007-01-05 13:14:08 +00:00
Werner Lemberg
82dba7620e
copyright year
2007-01-05 12:41:49 +00:00
David Turner
3a2131a30b
formatting
2007-01-05 10:51:56 +00:00
Werner Lemberg
4ea0a7f0b6
formatting, minor doc fixes, copyright years
2007-01-05 09:03:31 +00:00
David Turner
38d1002b8a
* src/raster/ftraster.c: removing dynamically generated "count_table",
...
and replace it with a constant array of bytes
2007-01-04 18:50:12 +00:00
David Turner
8a2c7f8fb8
* src/raster/ftraster.c, src/smooth/ftgrays.c: small optimization, the
...
rasterizers now uses the render pool to store their state during scanline
convertion. this saves about 6 KB of heap space for each FT_Library instance
2007-01-04 18:33:12 +00:00
David Turner
91bd5ddf17
* src/smooth/ftgrays.c: small optimization, the rasterizer now
...
uses the render pool to store its state during its operation,
this saves about 4 KB of heap for each FT_Library instance
2007-01-04 18:00:14 +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
David Turner
a8cf42bb7a
* src/pshinter/pshalgo.c: remove a stupid typo that results in no
...
hinting and a memory leak with some large Asian CFF fonts
* src/base/ftobjs.c (FT_Done_Library): remove a subtle memory leak
which happens when FT_Done_Library is called with opened CFF_Faces in
it. We need to close all faces before destroying the modules, or else
some bad things (memory leaks) may happen.
2007-01-04 16:46:46 +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
9207e00198
adding documentation comment
2007-01-02 16:58:13 +00:00
Yamato, Masatake (大和正武)
55d5a1cbe9
(gxv_kern_subtable_fmt0_pairs_validate): Show the trace message after validating gids.
2006-12-30 20:24:30 +00:00
Yamato, Masatake (大和正武)
d5d3e41dac
(gxv_kern_subtable_fmt0_pairs_validate): New function. Checks uniqueness of the gid pairs.
...
(gxv_kern_subtable_fmt0_validate): Move some code to `gxv_kern_subtable_fmt0_pairs_validate'.
2006-12-30 20:17:30 +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
Werner Lemberg
eeaa6497c3
add comment
2006-12-19 14:34:07 +00:00
Werner Lemberg
4755bf7a82
* src/base/ftlcdfil.c (FT_Library_SetLcdFilter)
...
[FT_FORCE_LIGHT_LCD_FILTER]: Fix typo.
2006-12-16 08:58:44 +00:00
Werner Lemberg
0fd08bdc6a
formatting
2006-12-16 02:57:46 +00:00
Suzuki, Toshiya (鈴木俊哉)
7e3d601355
* Simplify src/base/ftmac.c for Mac OS X
2006-12-15 15:23:21 +00:00
Suzuki, Toshiya (鈴木俊哉)
7a7d403d7a
* Improve resource fork handler for POSIX
2006-12-15 14:47:42 +00:00
Werner Lemberg
4e1d6c0c51
* builds/toplevel.mk (dist): Extract version number from freetype.h.
2006-12-09 08:20:37 +00:00
Werner Lemberg
15c29503fb
* src/tools/apinames (State): Remove final comma in structure -- xlc
...
v5 under AIX 4.3 doesn't like this.
2006-12-09 07:29:54 +00:00
David Turner
dbf3b43aea
* src/autofit/afloader.c (af_loader_load_g): small adjustment
...
to the spacing of auto-fitter glyphs. This only impacts rare
cases (e.g. Arial Bold at rather small character sizes)
2006-12-07 21:18:09 +00:00
Werner Lemberg
e2e18e035c
comment fixes
2006-12-03 09:46:32 +00:00
Werner Lemberg
1117131c03
* src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
2006-12-03 09:43:40 +00:00
Werner Lemberg
3bcd7d7fa5
Formatting.
2006-12-03 09:38:16 +00:00
Werner Lemberg
960ba59ad9
* src/sfnt/sfobjs.c (tt_face_get_name): All Unicode strings are
...
encoded in UTF-16BE. Patch from Rajeev Pahuja <rpahuja@esri.com>.
(tt_name_entry_ascii_from_ucs4): Removed.
* include/freetype/ftxf86.h: Fix and extend comment so that it
appears in the documentation.
* include/freetype/ftchapters.h: Add `font_format' section.
* src/tools/docmaker/tohtml.py (HtmlFormatter::index_exit): Add link
to TOC in index page.
Formatting.
2006-12-01 08:20:47 +00:00
David Turner
3a18c5e29e
* src/smooth/ftgrays.c (gray_raster_render): return 0 when we're
...
trying to rendering into a zero-width/height bitmap, instead of an
error code.
2006-11-28 08:38:31 +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
David Turner
1bd6c47260
* src/autofit/afhints.c: add stubs to link the "ftgrid" test program
...
when debugging is disabled in the auto-hinter
2006-11-25 01:30:40 +00:00
David Turner
81e725f513
* src/autofit/afhints.c, src/autofit/afhints.h, src/autofit/aflatin.c,
...
src/autofit/aftypes.h: Misc. auto-hinter improvements
2006-11-23 14:49:48 +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
Werner Lemberg
0d0d78dadc
formatting
2006-11-14 10:37:10 +00:00
David Turner
29c191cd53
* src/base/ftlcdfil.c: added support for FT_FORCE_LIGHT_LCD_FILTER
...
and FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
when building the library to change the default LCD filter to be
used. This is only useful for experimentation
2006-11-13 13:03:48 +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
David Turner
8765c71b41
* include/freetype/ftlcdfil.h, include/internal/ftobjs.h,
...
src/base/ftlcdfilt.c, src/smooth/ftsmooth.c: API change for
the LCD filter, the FT_LcdFilter value is a enum describing
which filter to apply, new values FT_LCD_FILTER_LIGHT and
FT_LCD_FILTER_LEGACY (the latter implements the LibXft original
algorithm which produces incredible color fringes for everything
except very-well hinted text)
* src/autofit/aflatin.c: various tiny improvements that drastically
improve the handling of serif fonts and of LCD/LCD_V hinting modes.
2006-11-10 16:49:42 +00:00
David Turner
4e9cc3c4ee
* src/pshinter/pshalgo.c (psh_glyph_compute_inflections): fixed
...
a stupid typo which created a variable-used-before-initialized bug
2006-11-09 16:31:52 +00:00
Werner Lemberg
d60ae949db
Formatting.
2006-11-07 09:47:04 +00:00
Werner Lemberg
5e43089b4f
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
...
also.
2006-11-07 09:35:03 +00:00
Werner Lemberg
111b5aefca
* src/base/ftcalc.c: Don't use `long long' but `FT_Int64'.
...
Formatting
2006-11-03 09:40:12 +00:00
David Turner
91b44e65c2
- improve autofitter's handling of serif fonts (results are much better)
...
- make GCC 4 happy when compiling our zlib sources
2006-11-02 23:28:09 +00:00
David Turner
effd15de89
- merging af_corner_XXX and psh_corner_XXX functions into ft_corner_XXX versions in ftcalc.c
...
- more auto-fitter debugging support
2006-11-02 17:21:02 +00:00
David Turner
4060474815
- fixed a bug in af_compute_direction which generated ugly glyphs
...
- added more debug/log messages to help improve the auto-fitter
2006-11-02 16:37:35 +00:00
Werner Lemberg
950c5d2f07
Fix copyright notice (to be the same as the original file in x.org).
2006-11-01 21:18:15 +00:00
Werner Lemberg
e88c5261c3
* src/cff/cffload.c (cff_encoding_load): Remove unused variable.
...
* src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE
as argument.
2006-10-24 05:46:26 +00:00
Werner Lemberg
715e96ecf4
formatting, improving ChangeLog entries
2006-10-24 05:28:45 +00:00
David Turner
a186139cad
improve FT_Outline_Get_Orientation for broken asian fonts
2006-10-23 16:00:59 +00:00
David Turner
29873a0ccd
* src/sfnt/ttmtx.c, src/cff/cffload.c: speeding up the CFF font
...
loader, with some large CFF fonts, FT_Open_Face is now 350% faster !
2006-10-23 10:23:17 +00:00
David Turner
e140f14232
* src/pshinter/pshalgo.c: major speed improvements to the Postscript
...
hinter, more than 100% speed increase on my machine
2006-10-23 08:56:57 +00:00
Suzuki, Toshiya (鈴木俊哉)
0708826049
* src/base/ftmac.c (FT_New_Face_From_FOND): Initialize the variable error
2006-10-15 07:15:28 +00:00
Werner Lemberg
046bf8b0cc
formatting
2006-10-03 08:43:42 +00:00
Werner Lemberg
2863cfa7c9
* src/base/ftbase.c: Undo change from 2006-09-30.
...
* src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.
2006-10-01 17:04:00 +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
Werner Lemberg
1e4402e3dc
* src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer
...
in use).
* src/base/ftbase.c: Include `ftlcdfil.c'.
2006-09-29 22:10:36 +00:00
Werner Lemberg
2c002e13a7
formatting, improving documentation
2006-09-29 21:31:53 +00:00
Werner Lemberg
9b15ea341c
* src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for
...
overlapping segments. Bug reported by Stefan Koch.
2006-09-29 18:22:11 +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
3cc7d630bd
adding missing file
2006-09-27 08:48:38 +00:00
David Turner
26bb2e27d1
* src/base/Jamfile, src/base/rules.mk, vms_make.com: adding
...
'ftlcdfil.c' to the list of compiled source files
2006-09-27 07:58:43 +00:00
David Turner
8a317cf7ab
* include/freetype/freetype.h: bumping FT_FREETYPE_PATCH to 2
...
for an upcoming 2.2.2 release
* include/freetype/ftlcdfil.h, src/freetype/ftlcdfil.c:
added a new API to support color filtering of subpixel glyph
bitmaps. In default build, the function FT_Library_SetLcdFilter
returns FT_Err_Unimplemented_Feature; you need to #define
FT_CONFIG_OPTION_SUBPIXEL_RENDERING in ftoption.h to compile
the real implementation
* src/smooth/ftsmooth.c: adding support for sub-pixel color
filtering; simplifying a few function calls
* include/freetype/config/ftheader.h: adding FT_LCD_FILTER_H
macro that points to <freetype/ftlcdfil.h>
2006-09-27 07:52:48 +00:00