Werner Lemberg
c52f44d4fd
Whitespace.
2011-11-30 10:46:53 +01:00
Werner Lemberg
4696dde23d
* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change
...
from 2011-05-04.
2011-06-20 19:09:02 +02:00
Werner Lemberg
58d1a5ee74
[autofit] Remove unused structure member.
...
* src/autofit/afhints.h (AF_SegmentRec): Remove `contour'.
* src/autofit/aflatin.c (af_latin_hints_compute_segments),
src/autofit/aflatin2.c (af_latin2_hints_compute_segments): Updated.
2011-06-08 09:32:56 +02:00
Werner Lemberg
6b19fd5c14
Fix g++ 4.6 compilation.
...
* src/autofit/afhints.c (af_glyph_hints_dump_segments,
af_glyph_hints_dump_edges): Use cast.
2011-05-30 07:27:59 +02:00
Werner Lemberg
71cc1a83d8
Fix gcc 4.6 compiler warnings.
...
* src/autofit/afcjk.c (af_cjk_metrics_init_blues): Use casts and
remove unused variables.
* src/autofit/aflatin.c (af_latin_hints_compute_edges): Comment out
`up_dir'.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `height_org'
and `width_org' conditionalized.
2011-05-30 07:20:37 +02:00
Werner Lemberg
735e5abb7b
[autofit] Improve tracing of hinting process.
...
* src/autofit/aflatin.c (af_latin_hint_edges): Add tracing message
`ADJUST'.
2011-05-27 10:22:42 +02:00
Daniel Zimmermann
3ad8f35537
Reduce warnings for MS Visual Studio 2010.
...
* src/autofit/afhints.c (af_glyph_hints_get_num_segments,
af_glyph_hints_get_segment_offset) [!FT_DEBUG_AUTOFIT]: Provide
return value.
* src/cff/cffgload.c (cff_slot_load): Add cast.
* src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Use proper
loop variable type.
2011-05-24 06:22:32 +02:00
sssa
4e8f9de9a0
[autofit] Make trace message for CJK bluezone more verbose.
2011-05-12 14:30:15 +09:00
Werner Lemberg
27b20e9a1e
Formatting, minor doc improvements.
2011-05-09 09:48:49 +02:00
suzuki toshiya
084abf0469
[autofit] Add bluezones for CJK Ideographs.
...
To remove extremas of vertical strokes of CJK Ideographs at
low resolution and make the top and bottom horizontal stems
aligned, bluezones for CJK Ideographs are calculated from
sample glyphs. At present, vertical bluezones (bluezones
to align vertical stems) are disabled by default. For detail, see
http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00070.html
http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00092.html
http://lists.gnu.org/archive/html/freetype-devel/2011-05/msg00001.html
* include/freetype/internal/fttrace.h: New trace component `afcjk'.
* src/autofit/afcjk.h (AF_CJK{Blue,Axis,Metric}Rec): Add CJK version
for AF_Latin{Blue,Axis,Metric}Rec.
(af_cjk_metrics_check_digits): Ditto, shared with Indic module.
(af_cjk_metrics_init_widths): Ditto.
(af_cjk_metrics_init): Take AF_CJKMetric instead of AF_LatinMetric.
(af_cjk_metrics_scale): Ditto (declaration).
(af_cjk_hints_init): Ditto (declaration).
(af_cjk_hints_apply): Ditto (declaration).
* src/autofit/afcjk.c (af_cjk_metrics_scale): Ditto (body).
(af_cjk_hints_init): Ditto (body).
(af_cjk_hints_apply): Ditto (body).
(af_cjk_metrics_init_widths): Duplicate af_latin_metrics_init_widths.
(af_cjk_metrics_check_digits): Duplicate af_latin_metrics_check_digits.
(af_cjk_metrics_init): Call CJK bluezone initializer.
(af_cjk_metrics_scale_dim): Add code to scale bluezones.
(af_cjk_hints_compute_blue_edges): New function, CJK version of
af_latin_hints_compute_blue_edges.
(af_cjk_metrics_init_blues): New function, CJK version of
af_latin_metrics_init_blues.
(af_cjk_hints_edges): Add code to align the edge stems to blue zones.
* src/autofit/afindic.c (af_indic_metrics_init): Take AF_CJKMetric
instead of AF_LatinMetric, and initialize as af_cjk_metrics_init.
However bluezones are not initialized.
(af_indic_metrics_scale): Take AF_CJKMetric instead of AF_LatinMetric.
(af_indic_hints_init): Ditto.
(af_indic_hints_apply): Ditto.
* docs/CHANGES: Note about CJK bluezone support.
2011-05-08 19:22:32 +09:00
Werner Lemberg
d2e82aa07e
[autofit] Remove unused struct member.
...
* src/autofit/aflatin.h (AF_LatinAxis): Remove `control_overshoot'.
2011-05-06 19:04:30 +02:00
Werner Lemberg
a3a0f57a1d
* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Simplify.
2011-05-04 06:14:30 +02:00
Werner Lemberg
c3135e43f5
[autofit] Fix and add comments.
2011-05-02 06:04:15 +02:00
Werner Lemberg
3a0844c8ef
[autofit] Add more debugging functions.
...
* src/autofit/afhints.c (af_glyph_hints_get_num_segments,
af_glyph_hints_get_segment_offset): New functions.
2011-05-01 13:44:44 +02:00
Werner Lemberg
b9aa1f1339
[autofit] Improve tracing messages.
...
* src/autofit/aflatin.c (af_latin_metrics_init_blues,
af_latin_align_linked_edge, af_latin_hint_edges): Do it.
2011-04-28 09:09:45 +02:00
suzuki toshiya
233f9d5dd2
[autofit] Add more Indic scripts with hanging baseline.
...
* src/autofit/afindic.c (af_indic_uniranges): Tibetan, Limbu,
Sundanese, Meetei Mayak, Syloti Nagri and Sharada scripts are
added.
2011-04-22 10:14:07 +09:00
suzuki toshiya
94eff482ca
Fix mismatched indents in src/autofit/aflatin2.c.
2011-04-21 14:03:39 +09:00
suzuki toshiya
a345c0e1d5
[autofit] Blur CJK stems if too many to preserve their gaps
2011-04-21 10:58:33 +09:00
Werner Lemberg
d503b1bce2
Integrate autofitter debugging stuff.
...
* devel/ftoption.h, include/freetype/config/ftoption.h
(FT_DEBUG_AUTOFIT): New macro.
* include/freetype/internal/fttrace.h: Add trace components for
autofitter.
* src/autofit/aftypes.h (AF_LOG): Removed.
(_af_debug): Removed.
* src/autofit/*: s/AF_DEBUG/FT_DEBUG_AUTOFIT/.
s/AF_LOG/FT_TRACE5/.
Define FT_COMPONENT where necessary.
2011-04-18 19:05:28 +02:00
Werner Lemberg
de2de6b1fb
Remove dead debugging code.
2011-04-18 16:11:18 +02:00
Werner Lemberg
7f03a2465c
Update Unicode ranges for CJK autofitter; in particular, add Hangul.
...
* src/autofit/afcjk.c (af_cjk_uniranges): Update to Unicode 6.0.
2011-04-07 07:20:38 +02:00
Werner Lemberg
948a8fb674
Fix formatting of autofit debug dumps.
...
* src/autofit/afhints.c (af_glyph_hints_dump_points,
af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Adjust
column widths.
2011-04-04 13:02:08 +02:00
Werner Lemberg
9f5ed8118c
Cosmetics.
2011-04-02 07:23:00 +02:00
Werner Lemberg
544adf7313
Whitespace, typo.
2011-04-02 07:15:33 +02:00
Werner Lemberg
ef11551868
* src/autofit/aftypes.h (AF_OutlineRec): Removed, unused.
2011-03-30 09:29:05 +02:00
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
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
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
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
Werner Lemberg
7ad15d5926
[autofit] Document warper.
2011-02-20 07:30:46 +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
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
332da87d99
[autofit] Some formatting and clean-ups.
2011-01-23 12:42:23 +01:00
Werner Lemberg
f3ce237027
*/rules.mk: Handle `*pic.c' files.
2011-01-03 07:11:54 +01:00
Werner Lemberg
fa1e6b35b4
Formatting.
2011-01-03 06:50:36 +01:00
Werner Lemberg
5220ef58c5
Fix minor issues reported by <muktha.narayan@wipro.com>.
...
* src/autofit/aflatin.c (af_latin_compute_stem_width): Remove
redundant conditional check.
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Ditto.
* src/cff/cffload.c (cff_encoding_load): Remove conditional check
which always evaluates to `true'.
* src/pshinter/pshalgo.c (ps_glyph_interpolate_strong_points):
Ditto.
* src/truetype/ttinterp.c (Ins_IUP): Ditto.
* src/cid/cidgload.c (cid_slot_load_glyph): Don't check for NULL if
value is already dereferenced.
* src/winfonts/winfnt.c (FNT_Load_Glyph): Fix check of `face'.
2010-09-13 07:32:22 +02:00
Werner Lemberg
c8f5b98be2
Remove C++ warnings.
...
*/*: Initialize pointers where necessary to make g++ happy.
2010-07-12 21:13:22 +02:00
Werner Lemberg
f765e4403c
*/*: Use module specific error names where appropriate.
2010-06-24 10:34:29 +02:00
Werner Lemberg
5d86cdce7e
Fix Savannah bug #30108 .
...
* src/autofit/afglobal.c (af_face_globals_compute_script_coverage):
Properly mask AF_DIGIT bit in comparison.
2010-06-15 08:29:30 +02:00
Werner Lemberg
370aea802c
Formatting.
2010-06-08 08:37:11 +02:00
Werner Lemberg
c217bf19f0
Remove unused variable.
...
Found by Graham.
* src/autofit/afhints.c (af_glyph_hints_reload): Remove unused
variable `first' in first block.
2010-05-26 16:16:34 +02:00
Werner Lemberg
09344385ee
autofit: Remove dead code.
...
Suggested by Graham.
* src/autofit/afhints.c (af_glyph_hints_compute_inflections):
Removed.
(af_glyph_hints_reload): Remove third argument.
Update all callers.
2010-05-22 07:43:22 +02:00
Werner Lemberg
7635ba64b7
Really fix FreeDesktop bug #21197 .
...
This also fixes Savannah bug #28021 .
* src/autofit/aflatin.c (af_latin_metrics_check_digits),
src/autofit/aflatin2.c (af_latin2_metrics_check_digits): Fix loop.
2009-11-15 10:17:44 +01:00