Werner Lemberg
105721a5a6
* src/truetype/ttinterp.c (tt_default_graphics_state): The default
...
value for `scan_type' is zero, as confirmed by Greg Hitchcock from
Microsoft. Problem reported by Michal Nowakowski
<miszka@limes.com.pl>.
2008-11-15 10:35:51 +00:00
Werner Lemberg
312043f41b
* src/cff/cffdrivr.c (cff_get_cmap_info): Initialize `format' field.
...
This fixes Savannah bug #24819 .
Document `format' field of TT_CMapInfo.
2008-11-12 06:29:41 +00:00
Werner Lemberg
e7aad0254c
* src/sfnt/sfobjs.c (sfnt_load_face): Remove #if 0/#endif guards
...
since OpenType version 1.5 has been released.
* include/ttnameid.h (TT_NAME_ID_WWS_FAMILY,
TT_NAME_ID_WWS_SUBFAMILY): New macros for OpenType 1.5.
(TT_URC_COPTIC, TT_URC_VAI, TT_URC_NKO, TT_URC_BALINESE,
TT_URC_PHAGSPA, TT_URC_NON_PLANE_0, TT_URC_PHOENICIAN,
TT_URC_TAI_LE, TT_URC_NEW_TAI_LUE, TT_URC_BUGINESE,
TT_URC_GLAGOLITIC, TT_URC_YIJING, TT_URC_SYLOTI_NAGRI,
TT_URC_LINEAR_B, TT_URC_ANCIENT_GREEK_NUMBERS, TT_URC_UGARITIC,
TT_URC_OLD_PERSIAN, TT_URC_SHAVIAN, TT_URC_OSMANYA,
TT_URC_CYPRIOT_SYLLABARY, TT_URC_KHAROSHTHI, TT_URC_TAI_XUAN_JING,
TT_URC_CUNEIFORM, TT_URC_COUNTING_ROD_NUMERALS, TT_URC_SUNDANESE,
TT_URC_LEPCHA, TT_URC_OL_CHIKI, TT_URC_SAURASHTRA, TT_URC_KAYAH_LI,
TT_URC_REJANG, TT_URC_CHAM, TT_URC_ANCIENT_SYMBOLS,
TT_URC_PHAISTOS_DISC, TT_URC_OLD_ANATOLIAN, TT_URC_GAME_TILES): New
macros for OpenType 1.5.
2008-11-08 22:00:55 +00:00
Werner Lemberg
b6192827a3
* src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against
...
slot->internal == NULL. Reported by Graham Asher.
2008-11-08 07:28:39 +00:00
Werner Lemberg
9512092859
* src/sfnt/sfobjs.c (tt_face_get_name): Modified to return an error
...
code so that memory allocation problems can be distinguished from
missing table entries. Reported by Graham Asher.
(GET_NAME): New macro.
(sfnt_load_face): Use it.
2008-11-08 07:20:25 +00:00
Werner Lemberg
e0ed07d767
* src/type1/t1load.c (parse_subrs): Use an endless loop. There are
...
fonts (like HELVI.PFB version 003.001, used on OS/2) which define
some `subrs' elements more than once. Problem reported by Peter
Weilbacher <mozilla@weilbacher.org>.
2008-11-04 10:37:30 +00:00
Werner Lemberg
f31072c867
* src/sfnt/ttpost.c (tt_post_default_names): Add `const'.
2008-10-15 20:03:37 +00:00
Suzuki, Toshiya (鈴木俊哉)
6922266b2c
* src/truetype/ttgxvar.c (TT_Set_MM_Blend): Disambiguate
2008-10-15 15:22:39 +00:00
Werner Lemberg
5d64257340
add comment
2008-10-15 13:20:17 +00:00
Werner Lemberg
822604c831
* src/cff/cffobjs.c (cff_face_init): Remove compiler warning.
...
Suggested by Bram Tassyns in Savannah patch #6651 .
2008-10-14 07:28:03 +00:00
Werner Lemberg
174b8de328
* src/sfnt/sfobjs.c (sfnt_load_face): Fix computation of
...
`underline_position'.
* docs/CHANGES: Updated.
Formatting, minor editing.
2008-10-12 11:47:29 +00:00
Werner Lemberg
0192230ea2
(important) formatting
2008-10-11 06:00:15 +00:00
Werner Lemberg
cec1d5f86a
typo
2008-10-09 07:14:08 +00:00
Suzuki, Toshiya (鈴木俊哉)
1464bc5ad3
* Fix Savannah bug #24468 , unexpected conversion between FT_UInt32* and FT_UInt*
2008-10-09 05:44:23 +00:00
Werner Lemberg
fa9d39940e
Fix Savannah bug #24485 .
...
* src/type1/t1load.c (parse_charstrings): Assure that we always have
a .notdef glyph.
2008-10-08 16:04:46 +00:00
Werner Lemberg
54dd7cf43b
Make braces balanced throught the whole file.
2008-10-07 18:15:46 +00:00
Werner Lemberg
cd91bf0acc
Make braces balanced throughout the whole file.
2008-10-07 18:13:23 +00:00
Werner Lemberg
570b1fdb84
formatting
2008-10-05 06:08:40 +00:00
Suzuki, Toshiya (鈴木俊哉)
96d87bed0e
{src/base,builds/mac}/ftobjs.c: Include FT_TRUETYPE_TAGS_H for multi build
2008-10-05 03:08:10 +00:00
Suzuki, Toshiya (鈴木俊哉)
af48cb0b98
src/base/ftobjs.c: Include FT_TRUETYPE_TAGS_H
2008-10-05 02:53:06 +00:00
Suzuki, Toshiya (鈴木俊哉)
2d3e0af942
* `FT_Open_Face' tries `open_face_PS_from_sfnt_stream' when a sfnt container is found but not OpenType.
2008-10-05 02:38:57 +00:00
Suzuki, Toshiya (鈴木俊哉)
21bd516592
Introduce macros for some MacOS-specific resource tags
2008-10-04 18:10:28 +00:00
Suzuki, Toshiya (鈴木俊哉)
72eb270ac7
* Remove wrong initialization in `ft_lookup_PS_in_sfnt_stream'
2008-10-04 17:49:58 +00:00
Werner Lemberg
45489589ad
* src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Remove compiler
...
warnings.
Formatting.
2008-10-04 11:39:03 +00:00
Suzuki, Toshiya (鈴木俊哉)
1137d04f85
* New function `open_face_PS_from_sfnt_stream' to check and open a Type1 PS or CID-keyed font in an sfnt stream.
2008-10-04 07:11:58 +00:00
Suzuki, Toshiya (鈴木俊哉)
bc2c498419
* src/base/ftobjs.c (ft_lookup_PS_in_sfnt): Set *is_sfnt_cid to FALSE when no PS resource is found
2008-10-03 12:28:52 +00:00
Suzuki, Toshiya (鈴木俊哉)
9e2b9900dc
* Remove duplicated functions from builds/mac/ftmac.c. Now MPW builds builds/mac/ftmac.c as a part of ftbase.c
2008-10-03 11:52:22 +00:00
Werner Lemberg
35ae574a51
Add casts for stupid compilers. Reported by Graham.
2008-10-02 10:40:52 +00:00
Werner Lemberg
b17fb11f93
* src/cff/cffgload.c (cff_slot_load): Map CID 0 to GID 0. This
...
fixes Savannah bug #24430 .
2008-10-02 10:17:32 +00:00
Werner Lemberg
89a1a51834
* builds/freetype.mk (BASE_H): Rename to...
...
(INTERNAL_H): This.
(FREETYPE_H): Updated.
* src/base/rules.mk: (BASE_OBJ_S, OBJ_DIR/%.$O): Add BASE_H.
* src/bdf/rules.mk (BDF_DRV_H): Add bdferror.h.
* src/cache/rules.mk (CACHE_DRV_H): Add ftccache.h and ftcsbits.h.
* src/pcf/rules.mk (PCF_DRV_H): Add pcfread.h.
* src/raster/rules.mk (RASTER_DRV_H): Add ftmisc.h.
* src/type42/rules.mk (T42_DRV_H): Add t42types.h.
2008-10-02 06:48:10 +00:00
Werner Lemberg
cff15b07f3
Formatting.
2008-10-02 05:38:29 +00:00
Suzuki, Toshiya (鈴木俊哉)
ba3e230429
* Fix wrong comment in ftbase.h
2008-10-02 01:48:14 +00:00
Suzuki, Toshiya (鈴木俊哉)
f414702e04
* Merge the duplicated functions in ftmac.c with ftobjs.c
2008-10-02 01:43:18 +00:00
Werner Lemberg
ce1bad0381
* src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed
...
if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.
2008-10-01 22:46:26 +00:00
Werner Lemberg
d03d856d95
* src/truetype/ttobjs.c (tt_face_done), src/cff/cffobjs.c
...
(cff_face_done), src/pfr/pfrobjs.c (pfr_face_done),
src/pcf/pcfdrivr.c (PCF_Face_Done), src/cid/cidobjs.c
(cid_face_done), src/bdf/bdfdrivr. (BDF_Face_Done),
src/sfnt/sfobjs.c (sfnt_face_done): Protect against face == 0.
Reported by Graham Asher.
2008-10-01 22:39:05 +00:00
Werner Lemberg
6bc16e92e4
s/synthetize/synthesize/
2008-10-01 21:16:44 +00:00
Suzuki, Toshiya (鈴木俊哉)
ef4a915e28
* Fix make rules for multi build on Mac OS X
2008-09-30 16:21:07 +00:00
Suzuki, Toshiya (鈴木俊哉)
c6bdee5f27
* Fix the conditions for multi build on MacOS
2008-09-30 00:59:55 +00:00
Werner Lemberg
b4c810e2b4
* src/cff/cffgload.c (CFF_Operator, cff_argument_counts,
...
cff_decoder_parse_charstrings): Handle (invalid)
`callothersubr' and `pop' instructions.
2008-09-22 11:28:46 +00:00
Werner Lemberg
bd0f71aa96
Fix Savannah bug #24307 .
...
* include/freetype/internal/t1types.h (CID_FaceRec),
src/type42/t42types.h (T42_FaceRec): Comment out `afm_data'.
* src/smooth/ftgrays.c (gray_raster_render): Don't dereference
`target_map' if FT_RASTER_FLAG_DIRECT is set. Problem reported by
Stephan T. Lavavej <stl@nuwen.net>.
2008-09-22 08:55:44 +00:00
Suzuki, Toshiya (鈴木俊哉)
815e186f1a
* src/{otvalid,sfnt}/Jamfile: Add missing targets for multi build by jam
2008-09-21 18:33:57 +00:00
Werner Lemberg
70f4cff19d
* src/smooth/ftgrays.c (gray_find_cell): Fix threshold. The values
...
passed to this function are already `normalized'. Problem reported
by Stephan T. Lavavej <stl@nuwen.net>.
* docs/CHANGES: Document it.
2008-09-20 16:12:05 +00:00
Werner Lemberg
22e970a23e
Formatting, minor code fixes.
2008-09-20 12:20:21 +00:00
Werner Lemberg
6874d85ba0
* src/base/ftoutln.c: Include FT_INTERNAL_DEBUG_H.
...
(FT_Outline_Decompose): Decorate with tracing messages.
* src/smooth/ftgrays.c [DEBUG_GRAYS]: Replace with
FT_DEBUG_LEVEL_TRACE.
[_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: Include stdio.h and
stdarg.h.
(FT_TRACE) [_STANDALONE_]: Remove.
(FT_Message) [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: New function.
(FT_TRACE5, FT_TRACE7) [_STANDALONE_]: New macros.
(FT_ERROR) [_STANDALONE_]: Updated.
(gray_hline) [FT_DEBUG_LEVEL_TRACE]: Fix condition.
Use FT_TRACE7.
(gray_dump_cells): Make it `static void'.
(graay_convert_glyph): Use FT_TRACE7.
(FT_Outline_Decompose) [_STANDALONE_]: Synchronize with version in
ftoutln.c.
* src/base/ftadvanc.c (FT_Get_Advance, FT_Get_Advances): Use
FT_ERROR_BASE.
Other minor modifications.
2008-09-20 11:50:47 +00:00
Suzuki, Toshiya (鈴木俊哉)
3afbee82fe
* ftmac.c: Import sfnt-wrapped Type1/CID font support
2008-09-19 17:46:01 +00:00
Suzuki, Toshiya (鈴木俊哉)
dec8e7b97d
* src/base/ftobjs.c: Fix double free bug in sfnt-wrapped Type1/CID font support
2008-09-19 16:47:01 +00:00
Suzuki, Toshiya (鈴木俊哉)
9ae5eaf862
* src/base/ftobjs.c: Add initial support for sfnt-wrapped CID-keyed fonts
2008-09-19 06:48:35 +00:00
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
Suzuki, Toshiya (鈴木俊哉)
0c0db3eb48
* src/cff/cffobjs.c: replace 0x4F54544FL by TTAG_OTTO
2008-09-18 04:36:56 +00:00
Werner Lemberg
4afcfd3056
beautifying, doc fixes.
2008-09-16 17:32:02 +00:00
Werner Lemberg
634df6e3ba
* src/cff/cffgload.h, src/cff/cffgload.c
...
(cff_decoder_set_width_only): Eliminate function call.
2008-09-16 07:25:31 +00:00
Werner Lemberg
ed6c0e063c
Fix Savannah bug #24179 , reported by Bram Tassyns.
...
* src/type1/t1load.c (mm_axis_unmap, T1_Get_MM_Var): Fix computation
of default values.
* src/tools/glnames.py (main): Surround `ft_get_adobe_glyph_index'
and `ft_adobe_glyph_list' with FT_CONFIG_OPTION_ADOBE_GLYPH_LIST to
prevent unconditional definition. This fixes Savannah bug #24241 .
* src/psnames/pstables.h: Regenerated.
2008-09-15 07:49:40 +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
17cd687266
* include/freetype/ftcache.h, src/cache/ftccmap.c:
...
modify FTC_CMapCache_Lookup to accept a negative cmap index
to mean "use default cached FT_Face's charmap". This fixes
Savannah issue #22625
2008-09-02 02:34:29 +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 (鈴木俊哉)
7981fe2a0f
* src/sfnt/sfobjs.c (sfnt_open_font): Use TTAG_OTTO
2008-08-29 06:09:03 +00:00
Werner Lemberg
4dbf00aa23
* src/type1/t1load.c (parse_encoding): Protect against infinite
...
loop. This fixes Savannah bug #24150 (where a patch has been posted
too).
2008-08-28 16:12:48 +00:00
Werner Lemberg
a4cb0d95d9
* src/type/t1afm.c (compare_kern_pairs), src/pxaux/afmparse.c
...
(afm_compare_kern_pairs): Fix comparison. This fixes Savannah bug
#24119 .
2008-08-23 19:54:06 +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
Suzuki, Toshiya (鈴木俊哉)
a2637823db
* src/sfnt/ttcmap.c: Fix for empty sub-headers in Dynalab fonts
2008-08-18 04:44:56 +00:00
Werner Lemberg
da32d7054d
Add one more example to the documentation of FT_Glyph_To_Bitmap.
2008-08-06 09:09:41 +00:00
Werner Lemberg
7fd201829a
* src/type1/t1tokens.h: Handle `ForceBold' keyword. This fixes
...
Savannah bug #23995 .
* src/cid/cidload.c (parse_expansion_factor): New callback function.
(cid_field_records): Use it for `ExpansionFactor'.
* src/cod/cidtoken.h: Handle `ForceBold' keyword.
Don't handle `ExpansionFactor'.
2008-08-04 18:46:37 +00:00
Werner Lemberg
eba3eeecd9
* src/cff/cffparse.c (cff_parse_fixed_scaled): Fix thinko which
...
resulted in incorrect scaling. This fixes Savannah bug #23973 .
2008-08-04 15:54:24 +00:00
Werner Lemberg
17e6901112
Be more tolerant w.r.t. invalid entries in SFNT table directory.
...
* src/sfnt/ttload.c (check_table_dir): Ignore invalid entries and
adjust table count.
Add more trace messages.
(tt_face_load_font_dir): Updated.
2008-08-04 05:45:41 +00:00
Werner Lemberg
806f59341d
* src/cff/cffgload.c (cff_decoder_parse_charstrings): No longer
...
assume that the first argument on the stack is the bottom-most
element. Two reasons:
o According to people from Adobe it is missing in the Type 2
specification that pushing of additional, superfluous arguments
on the stack is prohibited.
o Acroread in general handles fonts differently, namely by popping
the number of arguments needed for a particular operand (as a PS
interpreter would do). In case of buggy fonts this causes a
different interpretation which of the elements on the stack are
superfluous and which not.
Since there are CFF subfonts (embedded in PDFs) which rely on
Acroread's behaviour, FreeType now does the same.
2008-07-30 05:28:37 +00:00
Werner Lemberg
7f30c0c64c
Add extra mappings for `Tcommaaccent' and `tcommaaccent'. This
...
fixes Savanna bug #23940 .
* src/psnames/psmodule.c (WGL_EXTRA_LIST_SIZE): Rename to...
(EXTRA_GLYPH_LIST_SIZE): This.
Increase by 2.
(ft_wgl_extra_unicodes): Rename to...
(ft_extra_glyph_unicodes): This.
Add two code values.
(ft_wgl_extra_glyph_names): Rename to...
(ft_extra_glyph_names): This.
Add two glyphs.
(ft_wgl_extra_glyph_name_offsets): Rename to...
(ft_extra_glyph_name_offsets): This.
Add two offsets.
(ps_check_wgl_name, ps_check_wgl_unicode): Rename to...
(ps_check_extra_glyph_name, ps_check_extra_glyph_unicode): This.
Updated.
(ps_unicodes_init): Updated.
2008-07-27 05:43:59 +00:00
Werner Lemberg
bdcfddcd43
* src/cff/cffgload.c (cff_decoder_prepare,
...
cff_decoder_parse_charstrings): Improve debug output.
2008-07-26 21:22:20 +00:00
Werner Lemberg
e75da4576e
* src/sfnt/ttcmap.c (tt_cmap4_validate, tt_cmap4_char_map_linear,
...
tt_cmap4_char_map_binary): Handle fonts which treat the last segment
specially. According to the specification, such fonts would be
invalid but acroread accepts them.
2008-07-22 20:59:59 +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
bd48d35bf8
Set FT_FACE_FLAG_CID_KEYED only if pure_cff is set.
2008-07-16 07:05:11 +00:00
Werner Lemberg
3d2f06f399
Handle CID-keyed fonts wrapped in a SFNT (with cmaps) correctly.
...
* src/cff/cffload.c (cff_font_load): Pass `pure_cff'.
Invert sids table only if `pure_cff' is set.
* src/cff/cffload.h: Udpated.
* src/cff/cffobjs.c (cff_face_init): Updated.
2008-07-16 06:13:34 +00:00
Werner Lemberg
6b19e095be
* src/truetype/ttpload.c (tt_face_load_loca): Handle buggy fonts
...
where num_locations < num_glyphs. Problem reported by Ding Li.
2008-07-09 06:20:12 +00:00
Werner Lemberg
71b8f3f2ed
* src/raster/ftraster.c (Draw_Sweep): If span is smaller than one
...
pixel, only check for dropouts if neither start nor end point lies
on a pixel center. This fixes Savannah bug #23762 .
2008-07-04 07:22:06 +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
Werner Lemberg
a741c6f2aa
* src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
...
Horizontal_Gray_Sweep_Drop): Test for intersections which
degenerate to a single point can be ignored; this has been confirmed
by Greg Hitchcock from Microsoft. (This was commented out code.)
2008-06-27 06:58:48 +00:00
Werner Lemberg
8a9b63913f
Improve navigation in API reference.
...
* src/tools/docmaker/tohtml.py (html_header_3): Renamed to...
(html_header_6): This.
(html_header_3, html_header_3i, html_header_4, html_header_5,
html_header_5t): New strings.
(toc_footer_start, toc_footer_end): New strings.
(HtmlFormatter::html_header): Updated.
(HtmlFormatter::html_index_header, HtmlFormatter::html_toc_header):
New strings.
(HtmlFormatter::index_enter): Use `html_index_header'.
(HtmlFormatter::index_exit): Print `html_footer'.
(HtmlFormatter::toc_enter): Use `html_toc_header'.
(HtmlFormatter::toc_exit): Print proper footer.
Convert ~ to non-breakable space.
* src/tools/docmaker/tohtml.py (make_html_para): Implement it.
Update header files accordingly.
Many other minor documentation fixes.
2008-06-26 19:56:51 +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
ce8853af81
* src/truetype/ttinterp. (Ins_SCANTYPE): Don't check rendering mode.
...
* src/raster/ftraster.c (Render_Glyph, Render_Gray_Glyph,
Draw_Sweep): No-dropout mode is value 2, not value 0.
(Draw_Sweep): Really skip dropout handling for no-dropout mode.
2008-06-24 11:19:03 +00:00
Werner Lemberg
5563bea093
* src/psaux/psobjs.c (t1_builder_close_contour): Don't add contour
...
if it consists of one point only. Based on a patch from Savannah
bug #23683 (from John Tytgat).
2008-06-24 05:44:28 +00:00
Werner Lemberg
745a4f42a5
* src/truetype/ttgload.c (TT_Load_Glyph): Protect bytecode stuff
...
with IS_HINTED.
* docs/CHANGES: Updated.
2008-06-22 22:41:24 +00:00
Werner Lemberg
5df5dbb722
Enable access to the various dropout rules of the B&W rasterizer.
...
Pass dropout rules from the TT bytecode interpreter to the
rasterizer; temporarily this is enabled only if
`USE_SCAN_CONVERSION_RULES' is defined.
* include/freetype/ftimage.h (FT_OUTLINE_SMART_DROPOUTS,
FT_OUTLINE_EXCLUDE_STUBS): New flags for for FT_Outline.
* src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
Horizontal_Gray_Sweep_Drop): Use same mode numbers as given in the
OpenType specification.
Fix mode 4 computation.
(Render_Glyph, Render_Gray_Glyph): Handle new outline flags.
* src/truetype/ttgload.c (TT_Load_Glyph)
[USE_SCAN_CONVERSION_RULES]: Convert scan conversion mode to
FT_OUTLINE_XXX flags.
* src/truetype/ttinterp.c (Ins_SCANCTRL): Enable ppem check.
2008-06-22 13:40:08 +00:00
Werner Lemberg
c91dfa39e8
Improve documentation of gray-level rastering and what to do if you need
...
less than 256 gray levels.
2008-06-21 06:27:53 +00:00
Werner Lemberg
5b631d894c
* src/cff/cffobjs.c (cff_face_init): Compute final
...
`dict->units_per_em' value before assigning it to
`cffface->units_per_EM'. Otherwise, CFFs without subfonts are be
scaled incorrectly if the font matrix is non-standard. This fixes
Savannah bug #23630 .
* docs/CHANGES: Updated.
2008-06-19 16:23:43 +00:00
Werner Lemberg
cd6dcca658
* src/type/t1objs.c (T1_Face_Init): Slightly improve algorithm.
2008-06-19 06:20:21 +00:00
Werner Lemberg
d57a5e9fff
* src/type/t1objs.c (T1_Face_Init): Fix change from 2008-03-21.
...
Reported by Peter Weilbacher <mozilla@weilbacher.org>.
* docs/CHANGES: Updated.
2008-06-18 06:16:39 +00:00
Werner Lemberg
ca947c2551
* src/otvalid/otvgpos.c (otv_MarkBasePos_validate): Set
...
`valid->extra2' to 1. This is undocumented in the OpenType 1.5
specification.
2008-06-16 05:33:51 +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
6174e17cf7
* Version 2.3.6 released.
...
=========================
Tag sources with `VER-2-3-6'.
* docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
version number to 2.3.6.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualce/index.html,
builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj: s/2.3.5/2.3.6/, s/235/236/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
* builds/unix/configure.raw (version_info): Set to 9:17:3.
* include/freetype/internal/psaux.h (T1_BuilderRec): Remove `scale_x'
and `scale_y'.
* src/cff/cffgload.h (CFF_Builder): Remove `scale_x' and `scale_y'.
* src/cff/cffparse.c: Include FT_INTERNAL_DEBUG_H.
* src/cff/cffobjs.h: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
2008-06-10 05:58:25 +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
d77e72295e
* src/truetype/ttinterp.c (Ins_IP): Handle case `org_dist == 0'
...
correctly. This fixes glyphs `t' and `h' of Arial Narrow at 12ppem.
2008-06-05 22:07:19 +00:00
Werner Lemberg
8e3539bf7c
Emit header info for defined FreeType objects in reference.
...
* src/tools/docmaker/content.py (re_header_macro): New regexp.
(ContentProcessor::__init__): Initialize new dictionary `headers'.
(DocBlock::__init__): Collect macro header definitions.
* src/tools/docmaker/tohtml.py (header_location_header,
header_location_footer): New strings.
(HtmlFormatter::__init__): Pass `headers' dictionary.
(HtmlFormatter::print_html_field): Don't emit paragraph tags.
(HtmlFormatter::print_html_field_list): Emit empty paragraph.
(HtmlFormatter::block_enter): Emit header info.
2008-06-02 13:53:54 +00:00
Werner Lemberg
2b0b4221ab
Cosmetic code changes.
2008-05-28 22:17:28 +00:00
Werner Lemberg
de0d00556e
* src/tools/docmaker/sources.py (SourceBlock::__init__): While
...
looking for markup tags, return immediately as soon a single one is
found.
2008-05-28 21:51:15 +00:00