Werner Lemberg
590344cde0
[docmaker] Allow `-' in tags and identifiers.
...
* src/tools/docmaker/content.py (re_identifier),
src/tools/docmaker/sources.py (re_markup_tag1, re_markup_tag2,
re_crossref): Add `-' in patterns.
2012-08-29 09:16:56 +02:00
Werner Lemberg
328aa3b203
[FT_CONFIG_OPTION_PIC] Fix g++ 4.6.2 compiler warnings.
...
* include/freetype/internal/ftdriver.h (FT_DEFINE_DRIVER),
include/freetype/internal/ftobjs.h (FT_DEFINE_RENDERER,
FT_DEFINE_MODULE), include/freetype/internal/ftserv.h
(FT_DEFINE_SERVICEDESCREC1, FT_DEFINE_SERVICEDESCREC2,
FT_DEFINE_SERVICEDESCREC3, FT_DEFINE_SERVICEDESCREC4,
FT_DEFINE_SERVICEDESCREC5, FT_DEFINE_SERVICEDESCREC6),
src/autofit/afpic.c (autofit_module_class_pic_init),
src/base/basepic.c (ft_base_pic_init), src/base/ftinit.c
(ft_create_default_module_classes), src/cff/cffparse.c
(FT_Create_Class_cff_field_handlers), src/cff/cffpic.c
(cff_driver_class_pic_init), src/pshinter/pshpic.c
(pshinter_module_class_pic_init), src/psnames/pspic.c
(psnames_module_class_pic_init), src/raster/rastpic.c
(ft_raster1_renderer_class_pic_init), src/sfnt/sfntpic.c
(sfnt_module_class_pic_init), src/sfnt/ttcmap.c
(FT_Create_Class_tt_cmap_classes), src/smooth/ftspic.c
(ft_smooth_renderer_class_pic_init), src/truetype/ttpic.c
(tt_driver_class_pic_init): Initialize allocation variable.
2012-08-27 11:23:41 +02:00
Werner Lemberg
06e31e9b5e
[truetype] Fix compilation warning.
...
* src/truetype/ttgload.c (IS_HINTED): Move macro to...
* src/truetype/ttobjs.h: This header file.
2012-08-27 09:35:22 +02:00
Werner Lemberg
d9bf44a430
[autofit, cff, pshinter, psnames] More renamings for orthogonality.
...
* src/autofit/afmodule.c, src/autofit/afpic.h:
s/AF_AUTOFITTER_/AF_/.
* src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffparse.c,
src/cff/cffpic.h: s/FT_CFF_/CFF_/.
* src/pshinter/pshmod.c, src/pshinter/pshpic.h:
s/FT_PSHINTER_/PSHINTER_/.
* src/psnames/psmodule.c, src/psnames/pspic.h:
s/FT_PSCMAPS/PSCMAPS_/.
2012-08-27 08:41:43 +02:00
Werner Lemberg
0c633e3fcd
[sfnt, truetype] More renamings for orthogonality.
...
* src/sfnt/sfdriver.c, src/sfnt/sfntpic.h, src/sfnt/ttcmap.c,
src/truetype/ttdriver.c, src/truetype/ttpic.h: s/FT_SFNT_/SFNT_/,
s/FT_TT_/TT_/, s/GET_CMAP_INFO_GET/CMAP_INFO_GET/.
2012-08-27 07:43:28 +02:00
Werner Lemberg
d0841ea73b
[autofit] Some macro and variable renamings for orthogonality.
...
* include/freetype/internal/autohint.h, src/base/ftobjs.c,
src/autofit/afmodule.c, src/autofit/afpic.c, src/autofit/afpic.h:
s/SERVICE/INTERFACE/, s/service/interface/, s/Service/Interface/.
2012-08-27 06:57:05 +02:00
Werner Lemberg
9a87937522
[pshinter] Formatting.
2012-08-27 06:01:46 +02:00
Werner Lemberg
d77b1ea012
[sfnt] Formatting.
2012-08-27 05:48:23 +02:00
Werner Lemberg
b355b5693a
Fix Savannah bug #37178 .
...
* src/base/ftobjs.c (FT_Open_Face): Initialize `error' with
`FT_Err_Missing_Module' before loop to indicate `no valid drivers'.
2012-08-26 14:00:11 +02:00
Werner Lemberg
68fe6a9afa
Formatting.
2012-08-26 13:56:56 +02:00
Werner Lemberg
6edaef3b14
[sfnt] More formatting.
2012-08-24 13:41:24 +02:00
Werner Lemberg
665c65bf86
[sfnt] Formatting.
2012-08-24 13:10:08 +02:00
Werner Lemberg
ee09c86163
[psnames] Formatting.
2012-08-23 14:50:00 +02:00
Werner Lemberg
f76f491ff7
Fix typos, add comments.
2012-08-23 13:34:26 +02:00
Werner Lemberg
37ec8c3833
Minor formatting.
2012-08-23 13:21:53 +02:00
Werner Lemberg
04affa270b
* src/base/ftsynth.c (FT_GlyphSlot_Oblique): Fix shear angle.
...
The old value was far too large (more than 20°). The new one
corresponds to 12°, quite common in typography.
2012-08-17 09:28:28 +02:00
Werner Lemberg
3d3ff4b2f9
Formatting.
2012-08-16 08:39:11 +02:00
Werner Lemberg
2f6be4c854
Document module names.
2012-08-14 20:11:17 +02:00
Alexei Podtelezhnikov
9ea55c7c33
Fix Savannah bug #37017 .
...
* src/smooth/ftgrays.c (gray_render_cubic): Use a different set of
checks when detecting super curvy splines to be split.
2012-08-12 11:14:46 -04:00
Werner Lemberg
5b995a8dd8
[autofit] Improve recognition of flat segments.
...
Problem reported by Brad Dunzer <BDunzer@extensis.com>.
* src/autofit/aflatin.c (af_latin_metrics_init_blues): We have
a flat segment if the horizontal distance of best on-points is
larger than a given threshold.
2012-08-05 11:11:44 +02:00
Werner Lemberg
e194d7cd61
[autofit] Variable renamings.
...
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Replace
`glyph' with `outline'.
s/best_first/best_contour_first/.
s/best_last/best_contour_last/.
2012-08-05 10:58:02 +02:00
Werner Lemberg
5cdeb3cd60
Fix Savannah bug #37000 .
...
* src/type1/t1load.c (parse_encoding): Fix order of checks.
2012-07-31 20:17:13 +02:00
Werner Lemberg
5987445073
Formatting, comment fixes.
2012-07-29 13:15:53 +02:00
Werner Lemberg
6274bd370f
Typo.
2012-07-25 13:10:52 +02:00
Werner Lemberg
6b440425fc
Fix Savannah bug #36833 .
...
* src/psaux/t1decode.c (t1operator_seac): `seac' is not a valid
operator if we want metrics only.
2012-07-18 10:39:18 +02:00
Werner Lemberg
01b508f247
Fix Savannah bug #36832 .
...
* src/type1/t1load.c (parse_charstrings): Reject negative number of
glyphs.
2012-07-18 10:38:54 +02:00
Werner Lemberg
a8c243514c
Fix Savannah bug #36829 .
...
* src/type1/t1load.c (parse_encoding): Check cursor position after
call to T1_Skip_PS_Token.
2012-07-18 10:38:37 +02:00
Alexei Podtelezhnikov
bc5bcecfd2
Revert the last commit 45337b07
.
2012-07-13 17:52:43 -04:00
Alexei Podtelezhnikov
45337b07a7
[ftstroke] Fix uninitialized return value.
...
* src/base/ftstroke.c (FT_Stroker_New): Return FT_Err_Ok instead.
2012-07-11 22:12:13 -04:00
Werner Lemberg
e7454a47e2
[smooth] Avoid memory like in case of failure.
...
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Use flags to
indicate what to clean up after finishing the function, with and
without errors.
2012-07-11 12:05:58 +02:00
Werner Lemberg
fff6dcf1fe
Improve documentation of FT_LOAD_NO_SCALE.
2012-07-10 08:33:50 +02:00
Werner Lemberg
26472b4f16
Fix compilation with MSVC 5.0.
...
Problem reported by Peter Breitenlohner and Akira Kakuto.
* include/freetype/config/ftstdlib.h (ft_setjmp): Updated.
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove cast.
2012-07-09 09:55:50 +02:00
Werner Lemberg
5a0af493e4
[autofit] Improve debugging messages; do some code cleanup.
...
* src/autofit/aflatin.c (af_latin_align_linked_edge,
af_latin_hint_edges): Synchronize with formatting used in the
ttfautohint project.
2012-07-09 08:19:25 +02:00
Gilles Espinasse
9123404c57
Fix strict-aliasing warning.
...
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Avoid double cast.
2012-07-07 11:17:02 +02:00
Dave Thomas
fec113d724
[ARM] Fix FT_MulFix_arm.
...
* include/freetype/config/ftconfig.h (FT_MulFix_arm) [__arm__]:
Avoid ADDS instruction to clobber condition codes.
2012-07-07 10:57:30 +02:00
Werner Lemberg
b6978dd0c9
[autofit] Do some code cleanup.
...
* src/autofit/afglobal.c (af_face_globals_new): Simplify.
* src/autofit/afhints.c: Use `FT_TRACE7' instead of `printf'
everywhere.
(FT_COMPONENT): New macro.
(af_glyph_hints_done): Simplify.
* include/freetype/internal/fttrace.h: Updated.
2012-07-06 19:38:44 +02:00
Werner Lemberg
fd5ae9599a
[autofit] Improve output of debugging information.
...
* src/autofit/afhints.c (af_glyph_hints_dump_segments): Print more
data; report no data.
(af_glyph_hints_dump_edges): Report no data.
2012-07-05 10:30:41 +02:00
Werner Lemberg
5210306145
Fix Savannah bug #36091 .
...
* src/autofit/aflatin.c (af_latin_metrics_init_blues),
src/autofit/aflatin2.c (af_latin2_metrics_init_blues): Change the
constraint for testing round vs. flat segment: Accept either a
small distance or a small angle.
2012-07-04 17:20:33 +02:00
Werner Lemberg
e8da532d2a
[autofit] Improve comment.
2012-07-04 13:51:32 +02:00
Werner Lemberg
09e9b59605
[autofit] Beautify blue zone tracing.
...
* src/autofit/aflatin.c (af_latin_metrics_init_blues),
src/autofit/aflatin2.c (af_latin2_metrics_init_blues): Implement it.
2012-07-04 13:00:06 +02:00
Werner Lemberg
2a9c4552f6
[autofit] Quantize stem widths.
...
* src/autofit/afangles.c (af_sort_widths): Rename to...
(af_sort_and_quantize_widths): This.
Add code to avoid stem widths which are almost identical.
* src/autofit/aftypes.h, src/autofit/aflatin.c, src/autofit/afcjk.c:
Updated.
2012-07-03 11:54:12 +02:00
Werner Lemberg
d4cbbf35d4
[autofit] Minor speed-up.
...
* src/autofit/afangles (af_sort_pos, af_sort_widths): Don't swap
elements if they are equal.
2012-07-03 11:01:53 +02:00
Werner Lemberg
ad866e2c9a
Fix `checking if gcc static flag -static works' test.
...
On my linux build tree, I receive yes answer in in every package I
build except freetype for this test checking if gcc static flag
`-static' works
On freetype, no is received, unless bzip2 and zlib are disabled using
./configure --without-bzip2 --without-zlib
The reason is that bzip2 and zlib tests add `-lz' and `-lbz2' to
LDFLAGS and this broke static flag test.
* builds/unix/configure.raw: Update CFLAGS and LDFLAGS only after
LT_INIT has run.
2012-06-30 07:59:28 +02:00
Infinality
d0a827b340
[truetype] Fix various artifacts.
2012-06-28 20:34:26 -05:00
Gilles Espinasse
34de9d2644
Fix CFLAGS and LDFLAGS share configure test.
...
* builds/unix/configure.raw: Fix typo.
2012-06-28 06:45:26 +02:00
Werner Lemberg
b3953aa7c4
[truetype] Set the `subpixel_positioned' flag unconditionally.
...
This is how the code currently behaves.
* src/truetype/ttgload.c (tt_loader_init): Do it.
2012-06-28 06:23:12 +02:00
Werner Lemberg
124709657a
Fix conditional compilation.
...
* src/base/basepic.c: Use FT_CONFIG_OPTION_MAC_FONTS.
2012-06-27 08:44:30 +02:00
Werner Lemberg
83c0ebabc2
Fix conditional compilation.
...
* include/freetype/internal/ftcalc.h (FT_MulDiv_No_Round): Don't
enclose with `TT_USE_BYTECODE_INTERPRETER'; we now need the function
elsewhere also.
* src/autofit/afcjk.h: Use AF_CONFIG_OPTION_CJK.
* src/truetype/ttgload.c (tt_loader_init): Fix compiler warning.
* src/truetype/ttinterp.c (Ins_MSIRP): Fix compiler warning.
* src/truetype/ttinterp.h: Use
TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
2012-06-27 08:16:06 +02:00
Infinality
ed6508c41a
[truetype] Remove unused rounding functionality.
2012-06-26 17:20:27 -05:00
Werner Lemberg
56751532d3
[cff] Fix Savannah bug #36705 .
...
Handle numbers like 2.001 correctly.
* src/cff/cffparse.c (cff_parse_real): Avoid negative values for
`shift'.
2012-06-25 10:58:20 +02:00