Alexei Podtelezhnikov
792db0b9a9
[cff,cid,pfr,sfnt,winfonts] NULL.
2015-04-15 23:20:23 -04:00
Alexei Podtelezhnikov
eae1b3e371
[autofit,pshinter] NULL.
2015-04-13 22:40:17 -04:00
Alexei Podtelezhnikov
eabc8d72e0
[psaux,psnames,type1,type42] NULL.
2015-04-12 23:16:48 -04:00
Alexei Podtelezhnikov
adb08efcf1
[bdf,pcf,truetype] NULL.
2015-04-11 23:54:19 -04:00
Alexei Podtelezhnikov
9de55e0355
[base] NULL.
2015-04-10 23:45:11 -04:00
Werner Lemberg
5cd2155113
[cff] Update advance width handling to OpenType 1.7.
...
Problem reported by Behdad.
* src/cff/cffdrivr.c (cff_get_advances): Handle SFNT case
separately.
* src/cff/cffgload.c (cff_slot_load): Use advance width and side
bearing values from `hmtx' table if present.
2015-04-10 07:01:01 +02:00
Alexei Podtelezhnikov
67b912d2fa
* src/autofit/afhints.c (af_glyph_hints_reload): Use do-while loop.
2015-04-03 22:38:11 -04:00
Alexei Podtelezhnikov
770b5d0647
* src/autofit/aflatin.c (af_latin_hint_edges): Reduce logic.
2015-04-02 23:15:36 -04:00
Alexei Podtelezhnikov
886f4d0493
[autofit] Finish the thought.
...
* src/autofit/afhints.c (af_direction_compute): make sure the long arm
is never negative so that its `FT_ABS' is not necessary.
2015-04-01 22:57:43 -04:00
Werner Lemberg
a2fa657a03
[autofit] Call dumper functions for tracing.
...
* src/autofit/afcjk.c (af_cjk_hints_apply): Remove dead code.
* src/autofit/afhints.c (af_glyph_hints_dump_points): Minor
improvement.
* src/autofit/afmodule.c (af_autofitter_load_glyph): Implement it.
2015-04-01 15:55:41 +02:00
Werner Lemberg
db8df797d0
[autofit] Make debugging stuff work again.
...
The interface to ftgrid was broken in the series of commits starting
with
[autofit] Allocate AF_Loader on the stack instead of AF_Module.
from 2015-01-14.
* src/autofit/afmodule.c (_af_debug_hints_rec) [FT_DEBUG_AUTOFIT]:
Use a global AF_GlyphHintsRec object for debugging.
(af_autofitter_done, af_autofitter_load_glyph): Updated.
* src/autofit/afloader.c (af_loader_init, af_loader_done): Updated.
2015-04-01 13:30:55 +02:00
Werner Lemberg
16217e5f22
* src/autofit/afhints.c (af_glyph_hints_done): Fix minor thinko.
2015-04-01 13:13:56 +02:00
Werner Lemberg
f353a38e87
[cff] Fix Savannah bug #44629 .
...
* src/cff/cf2font.h (CF2_MAX_SUBR), src/cff/cffgload.h
(CFF_MAX_SUBRS_CALLS): Set to 16.
2015-03-29 14:47:49 +02:00
Werner Lemberg
10e2bb8b3d
[type1, truetype] Make the MM API more flexible w.r.t. `num_coords'.
...
This commit allows `num_coords' to be larger or smaller than the
number of available axes while selecting a design instance, either
ignoring excess data or using defaults if data is missing.
* src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design):
Implement it.
* src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design,
T1_Set_Var_Design): Ditto.
2015-03-29 13:32:47 +02:00
Werner Lemberg
dd5d6d7a80
[type1] Minor.
...
* src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design): Use
FT_THROW.
(T1_Set_Var_Design): Use T1_MAX_MM_AXIS and FT_THROW.
2015-03-29 10:04:22 +02:00
Werner Lemberg
8ce3026304
[cff] Trace charstring nesting levels.
...
* src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdCALLGSUBR,
cf2_cmdCALLSUBR, cf2_cmdRETURN>: Implement it.
* src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_callsubr, cff_op_callgsubr, cff_op_return>: Ditto.
2015-03-27 08:33:47 +01:00
Alexei Podtelezhnikov
dac5644cea
[base] Optimize `FT_Angle_Diff'.
...
Under normal circumstances we are usually close to the desired range
of angle values, so that the remainder is not really necessary.
* src/base/fttrigon.c (FT_Angle_Diff): Use loops instead of remainder.
* src/autofit/aftypes.h (AF_ANGLE_DIFF): Ditto in the unused macro.
2015-03-21 23:30:16 -04:00
Werner Lemberg
6cc425db91
[truetype] Improve `gvar' handling.
...
* src/truetype/ttgxvar.c (ft_var_readpackedpoints): Correctly handle
single-element runs. Cf. glyph `Q' in Skia.ttf with weights larger
than the default.
2015-03-21 06:51:07 +01:00
Alexei Podtelezhnikov
2d7284e962
* src/base/fttrigon.c (FT_Vector_Rotate): Minor refactoring.
2015-03-20 21:34:19 -04:00
Werner Lemberg
772a5e5ddd
Update links to Apple's TrueType specification.
2015-03-20 09:40:10 +01:00
Alexei Podtelezhnikov
6a17172687
Fix Savannah bug #44412 (part 2).
...
* src/base/fttrigon.c (FT_Sin, FT_Cos, FT_Tan): Call `FT_Vector_Unit'.
2015-03-17 22:43:08 -04:00
Werner Lemberg
d3284462c3
[autofit] Add support for Arabic script.
...
Thanks to Titus Nemeth <tn@tntypography.eu> for guidance!
* src/autofit/afblue.dat: Add blue zone data for Arabic.
* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
* src/autofit/afscript.h: Add Arabic standard characters.
* src/autofit/afranges.c: Add Arabic data.
* src/autofit/afstyles.h: Add Arabic data.
* docs/CHANGES: Document it.
2015-03-11 16:45:58 +01:00
Werner Lemberg
a451638ec5
Rename `svxf86nm.h' to `svfntfmt.h'; update related symbols.
...
* include/internal/ftserv.h (FT_SERVICE_XFREE86_NAME_H): Renamed
to...
(FT_SERVICE_FONT_FORMAT_H): This.
* include/internal/services/svfntfmt.h (FT_XF86_FORMAT_*): Renamed
to ...
(FT_FONT_FORMAT_*): This.
src/base/ftfntfmt.c, src/bdf/bdfdrivr.c, src/cff/cffdrivr.c,
src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/pfr/pfrdrivr.c,
src/truetype/ttdriver.c, src/type1/t1driver.c,
src/type42/t42drivr.c, src/winfonts/winfnt.c: Updated.
2015-03-11 08:55:12 +01:00
Werner Lemberg
ba53879ea9
Minor.
2015-03-11 08:54:33 +01:00
Werner Lemberg
dd7028c46e
Rename `FT_XFREE86_H' to `FT_FONT_FORMATS_H'.
...
* include/config/ftheader.h: Implement it.
* src/base/ftfntfmt.c, docs/CHANGES: Updated.
2015-03-11 08:54:12 +01:00
Werner Lemberg
f4d1c11faa
Rename `FT_Get_X11_Font_Format' to `FT_Get_Font_Format'.
...
* include/ftfntfmt.h, src/base/ftfntfmt.c: Implement it.
* docs/CHANGES: Updated.
2015-03-11 08:54:08 +01:00
Werner Lemberg
3e58779675
Minor copyright and e-mail address issues.
2015-03-11 08:48:15 +01:00
Werner Lemberg
cb0f7b65a8
Fix automatic copyright updating.
...
* src/tools/update-copyright: Make scanning of `no-copyright'
actually work.
* src/tools/no-copyright: Don't include README in general.
2015-03-11 08:47:48 +01:00
Werner Lemberg
0633995b55
Rename `ftxf86.[ch]' to `ftfntfmt.[ch]'.
...
CMakeLists.txt, builds/amiga/makefile, builds/amiga/makefile.os4,
builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
builds/mac/FreeType.m68k_far.make.txt,
builds/mac/FreeType.ppc_carbon.make.txt,
builds/mac/FreeType.ppc_classic.make.txt, builds/symbian/bld.inf,
builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
builds/wince/vc2008-ce/freetype.vcproj,
builds/windows/vc2005/freetype.vcproj,
builds/windows/vc2008/freetype.vcproj,
builds/windows/vc2010/freetype.vcxproj,
builds/windows/vc2010/freetype.vcxproj.filters,
builds/windows/visualc/freetype.dsp,
builds/windows/visualc/freetype.vcproj,
builds/windows/visualce/freetype.dsp,
builds/windows/visualce/freetype.vcproj, docs/INSTALL.ANY,
include/config/ftheader.h, include/ftfntfmt.h, modules.cfg,
src/base/ftfntfmt.c, vms_make.com: Updated.
2015-03-11 08:45:00 +01:00
Alexei Podtelezhnikov
6b832c872d
Fix Savannah bug #44412 (part 1).
...
* src/base/ftstroke.c (ft_stroker_inside): Handle near U-turns.
2015-03-10 23:25:49 -04:00
Werner Lemberg
eee7d8baa1
[base] Rename `FT_Bitmap_New' to `FT_Bitmap_Init'.
...
* include/ftbitmap.h, src/base/ftbitmap.c: Implement it.
Update all callers.
* docs/CHANGES: Updated.
2015-03-10 11:15:15 +01:00
Werner Lemberg
0aa36160d6
Formatting, whitespace, addition of some comments.
2015-03-08 22:50:37 +01:00
Werner Lemberg
6fce8427e4
Minor documentation improvement.
...
Based on a suggestion from Lawrence D'Oliveiro <ldo@geek-central.gen.nz>.
2015-03-06 23:53:28 +01:00
Werner Lemberg
493cc037c7
* src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning.
...
Found by Alexei.
2015-03-06 05:38:31 +01:00
Alexei Podtelezhnikov
dd7498d283
* src/base/ftstroke.c: Simplify.
2015-03-05 22:51:36 -05:00
Werner Lemberg
328b792313
[truetype] Some fixes and code refactoring in `ttgxvar.c'.
...
* src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix return value
of `point_cnt' if two bytes are read.
Use a more vertical coding style.
(ft_var_readpackeddeltas): Use FT_UInt for `delta_cnt' parameter.
Use a more vertical coding style.
2015-03-04 08:40:23 +01:00
Werner Lemberg
a374c9cfe7
[autofit] Fix Savannah bug #44241 .
...
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Reject glyphs
with less than 3 points.
2015-03-03 11:23:45 +01:00
Werner Lemberg
43d4901f32
Another minor documentation improvement.
2015-03-03 06:48:11 +01:00
Werner Lemberg
8bb4c8d454
Minor documentation improvement.
2015-03-03 06:39:01 +01:00
Werner Lemberg
a07029ef5f
Simplify `TYPEOF' macro.
...
No need for two arguments.
* include/config/ftconfig.h, builds/unix/ftconfig.in,
builds/vms/ftconfig.h (TYPEOF): Updated.
* include/internal/ftobjs.h (FT_PAD_FLOOR, FT_PIX_FLOOR),
src/autofit/afwarp.h (AF_WARPER_FLOOR): Updated.
2015-03-02 06:54:08 +01:00
Werner Lemberg
851e815127
Various compiler warning fixes for `make multi'.
...
* src/autofit/afcjk.c (af_cjk_hints_compute_blue_edges),
src/autofit/aflatin.c (af_latin_hint_compute_blue_edges,
af_latin_hint_edges), src/autofit/aflatin2.c
(af_latin2_hints_compute_blue_edges, af_latin2_hint_edges): Declare
as `static'.
* src/cache/ftccmap.c (FTC_CMAP_QUERY_HASH, FTC_CMAP_NODE_HASH):
Removed. Unused.
* src/cache/ftcimage.c: Include FT_INTERNAL_OBJECTS_H.
* src/cache/ftcmanag.c (FTC_LRU_GET_MANAGER): Removed. Unused.
* src/cff/cf2intrp.c: Include `cf2intrp.h'.
* src/cff/cffdrivr.c (PAIR_TAG): Removed. Unused.
* src/gzip/ftgzip.c (NO_DUMMY_DECL): Removed. Unused.
* src/psaux/afmparse.c (afm_parser_read_int): Declare as `static'.
* src/pshinter/pshalgo.c (STRONGER, PSH_ZONE_MIN, PSH_ZONE_MAX):
Removed. Unused.
* src/raster/ftraster.c (Render_Glyph): Declare as `static'.
* src/sfnt/ttpost.c (load_format_20): Fix signedness warning.
* src/truetype/ttdriver.c (PAIR_TAG): Removed. Unused.
* src/truetype/ttsubpix.c (is_member_of_family_class,
is_member_of_style_class): Declare as `static'.
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Declare
as `static'.
* src/type1/t1load.c (mm_axis_unmap, mm_weights_unmap): Declare as
`static'.
(T1_FIELD_COUNT): Removed. Unused.
* src/type1/t1parse.h (T1_Done_Table): Removed. Unused.
* src/type42/t42parse.c (T1_Done_Table): Removed. Unused.
2015-03-01 19:27:09 +01:00
Werner Lemberg
bd133c352e
Minor typo.
2015-03-01 07:45:36 +01:00
Werner Lemberg
6381541bd0
Update links.
2015-02-26 20:54:07 +01:00
Werner Lemberg
f9837528d3
Typo.
2015-02-26 15:03:41 +01:00
Werner Lemberg
04c223703a
[psaux] Signedness fixes.
...
* include/internal/psaux.h, src/psaux/afmparse.c,
src/psaux/afmparse.h, src/psaux/psconv.c, src/psaux/psobjs.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c: Apply.
2015-02-25 11:20:20 +01:00
Werner Lemberg
d25ec16672
[otvalid] Signedness fixes.
...
* src/otvalid/otvcommn.c, src/otvalid/otvgdef.c,
src/otvalid/otvgpos.c, src/otvalid/otvgsub.c, src/otvalid/otvmath.c:
Apply.
2015-02-25 09:19:59 +01:00
Werner Lemberg
5c9d9bf295
* src/bzip2/ftbzip2.c (ft_bzip2_alloc): Signedness fix.
2015-02-25 08:13:40 +01:00
Werner Lemberg
83d4181a36
[lzw] Signedness fixes.
...
* src/lzw/ftzopen.c, src/lzw/ftzopen.h: Apply.
2015-02-25 08:10:58 +01:00
Werner Lemberg
17b6291d26
[gxvalid] Signedness fixes.
...
* src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c,
src/gxvalid/gxvcommn.h, src/gxvalid/gxvjust.c,
src/gxvalid/gxvkern.c, src/gxvalid/gxvlcar.c, src/gxvalid/gxvmort.c,
src/gxvalid/gxvmort1.c, src/gxvalid/gxvmort2.c,
src/gxvalid/gxvmorx.c, src/gxvalid/gxvmorx1.c,
src/gxvalid/gxvmorx2.c, src/gxvalid/gxvopbd.c,
src/gxvalid/gxvprop.c, src/gxvalid/gxvtrak.c: Apply.
2015-02-25 07:56:11 +01:00
Werner Lemberg
24e4e96aff
[cache] Signedness fixes.
...
* src/cache/ftcbasic.c, src/cache/ftccmap.c, src/cache/ftcimage.c,
src/cache/ftcmanag.c, src/cache/ftcsbits.c: Apply.
2015-02-25 07:55:51 +01:00