Armin Hasitzka
b77826e139
Triage 8ea854bfe9
.
2019-02-21 10:23:15 +00:00
Armin Hasitzka
8ea854bfe9
[truetype] Mask numeric overflows.
...
* src/truetype/ttinterp.c (Move_CVT, Move_CVT_Stretched, Ins_MIRP):
Mask numeric overflows.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11681
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11734
2019-02-21 10:14:57 +00:00
Armin Hasitzka
5e3a38b194
[psaux] Mask numeric overflow.
...
* src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Mask numeric
overflow.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13041
2019-02-21 10:04:28 +00:00
Werner Lemberg
a346abc093
s/....
/'....'/ for SFNT table tags in documentation.
2019-02-21 09:19:47 +01:00
Werner Lemberg
8de11f3def
s/NULL/NULL
/ in documentation.
2019-02-20 16:19:19 +01:00
Werner Lemberg
f92fa39341
Minor documentation fixes.
2019-02-20 16:04:48 +01:00
Werner Lemberg
de8de1ce0e
Minor (whitespace, spelling, doc update).
2019-02-20 12:48:36 +01:00
Wink Saville
0ac6921109
* src/autofit/afwarp.h (af_warper_compute): Fix declaration.
2019-02-16 07:05:39 +01:00
Werner Lemberg
29b302ad36
Minor.
2019-02-16 07:05:24 +01:00
Werner Lemberg
b66d6a9112
CHANGES: Document recent metrics change from Nikolaus.
2019-02-06 07:38:25 +01:00
Nikolaus Waxweiler
a6feefdfef
[truetype] Apply MVAR hasc, hdsc and hlgp metrics to current FT_Face metrics.
...
Instead of setting typo or win metrics as the new FT_Face metrics
indiscriminately, apply only typo deltas to the currently active FT_Face
metrics. This prevents line height differences when e.g. the default
outlines were used as the regular face and instances for everything else.
* src/truetype/ttgxvar.c (tt_apply_mvar): Implement.
2019-02-02 15:50:57 +00:00
Nikolaus Waxweiler
f72b00746c
[sfnt] Use typo metrics if OS/2 fsSelection USE_TYPO_METRICS bit is set.
...
If the OS/2 table exists and fsSelection bit 7 (USE_TYPO_METRICS) is set,
use the sTypo* set of values to compute the FT_Face's ascender, descender
and height. Otherwise, fall back to old behavior.
* src/sfnt/sfobjs.c (sfnt_load_face): Implement.
2019-02-02 15:45:31 +00:00
Werner Lemberg
f686ad46a3
Update copyright years.
2019-01-22 20:31:44 +01:00
John Tytgat
f61f49fef7
[sfnt] Handle TT fonts having two PostScript font names ( #55471 ).
...
* src/sfnt/sfdriver.c (sfnt_get_name_id): Prefer English over any
other language found for PostScript font names.
2019-01-18 13:25:23 +01:00
Alexei Podtelezhnikov
1e7a8f30c2
[psaux, type1] Align tracing.
2019-01-08 20:54:13 -05:00
Chris Liddell
b75abeb5e6
[psaux] Fix closepath ( #55414 ).
...
All of the Type 1 path building is done with code common to the
revised CFF engine, with the exception of closepath, which was still
calling ps_builder_close_contour(), thus previously cached segments
were not always written to the path, and glyph corruption, or even
invalid outlines were possible.
* src/psauc/psinterp.c (cf2_interpT2CharString) <cf2_cmdCLOSEPATH>:
Switch to calling `cf2_glyphpath_closeOpenPath'.
2019-01-08 20:51:39 -05:00
Nikhil Ramakrishnan
2875ada197
Minor documentation fix.
2018-12-30 20:02:08 +05:30
Werner Lemberg
b89166cc4d
* src/autofit/aflatin2.c: Some fixes from `aflatin.c' ( #55310 ).
2018-12-29 08:55:01 +01:00
suzuki toshiya
0238237508
* builds/mac/README: Fix a hyperlink to defunct www.gyve.org.
2018-12-26 12:04:39 +09:00
Werner Lemberg
afa043de9c
Fix links (mostly http -> https).
2018-12-25 22:44:05 +01:00
Werner Lemberg
5e02965905
* src/psaux/cffdecode.c (cff_operaor_seac): Fix numeric overflow.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11915
2018-12-25 19:24:06 +01:00
Werner Lemberg
ec439711b1
[gxvalid] Fix compiler warnings.
...
* src/gxvalid/gxvjust.c (gxv_just_check_max_gid),
src/gxvalid/gxvmort.c (gxv_mort_coverage_validate): Use `FT_UNUSED'.
2018-12-12 19:59:42 +01:00
Werner Lemberg
e8bbef85c0
Fix documentation of TrueType bytecode interpreter debug hook.
2018-12-12 14:05:47 +01:00
Werner Lemberg
2b4e61e4d6
Minor documentation fixes.
2018-12-12 09:36:39 +01:00
Werner Lemberg
3e8a2283f5
* src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test.
...
`control_len' only gets its value from `n_ins' (and vice versa),
which is always read as `unsigned short' and thus can't be larger
than 0xFFFF.
2018-12-11 23:54:17 +01:00
Werner Lemberg
0c83ba6d61
Minor documentation updates and fixes.
2018-12-10 12:14:13 +01:00
Alexei Podtelezhnikov
d01e28f41f
Important doc fix.
2018-12-06 08:12:27 -05:00
Werner Lemberg
f1b6183f36
[bdf] Ignore data after `ENDFONT'.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10798
* src/bdf/bdflib.c (_bdf_parse_end): New function.
(_bdf_parse_glyphs): Switch to `_bdf_parse_end' after `ENDFONT' has
been encountered.
2018-12-04 11:51:15 +01:00
Alexei Podtelezhnikov
456e9c8fce
* builds/windows/visualc/freetype.dsp: Dust off.
2018-12-02 23:40:55 -05:00
Nikhil Ramakrishnan
c1e58b4d93
* include/freetype/ftmm.h: Minor.
2018-11-29 12:57:35 +05:30
Alexei Podtelezhnikov
3dd4e76b19
* builds/windows/vc2010/freetype.vcxproj: Simplify.
2018-11-27 23:22:52 -05:00
Chris Liddell
78a1e69517
[type1,cff] Add FT_{Set,Get}_MM_WeightVector API calls.
...
For multiple master fonts, common usage (in Postscript) is to modify
the WeightVector of an existing font instance, this addition
supports that use.
* include/freetype/ftmm.h, src/base/ftmm.c (FT_Set_MM_WeightVector,
FT_Get_MM_WeightVector): New API functions.
* include/freetype/internalservices/svmm.h
(FT_Set_MM_WeightVector_Func, FT_Get_MM_WeightVector_Func): New
function types.
(MultiMasters): Add `set_mm_weightvector' and `get_mm_weightvector'
members.
(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
* src/cffcffdrivr.c (cff_set_mm_weightvector,
cff_get_mm_weightvector): New functions.
(cff_service_multi_masters): Register them.
* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.
This driver doesn't use the new interface.
* src/type1/t1load.c (T1_Set_MM_WeightVector,
T1_Get_MM_WeightVector): New functions.
* src/type1/t1driver.c (t1_service_multi_masters): Register them.
* src/type1/t1load.h: Updated.
2018-11-27 22:24:06 +01:00
Ben Wagner
1fc6937f7f
[cff] Fix compiler warning ( #55105 ).
...
* src/cff/cffparse.c (cff_parser_run): Guard label only used if
CFF_CONFIG_OPTION_OLD_ENGINE is active.
2018-11-27 18:02:44 +01:00
Ben Wagner
74cdd75f6f
[truetype] Fix numeric overflow ( #55103 ).
...
* src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
2018-11-27 17:56:25 +01:00
Alexei Podtelezhnikov
1c4004bb34
[builds] Belated DLL support with vc2002-vc2008.
...
The solution and project files should be automatically upgraded for
the approriate Visual C++ version.
* builds/windows/visualc/freetype.{sln,vcproj}: Major upgrades.
* builds/windows/visualc/index.html: Document the change.
* builds/windows/vc2005, builds/windows/vc2008: Removed as redundant.
2018-11-25 23:19:39 -05:00
Armin Hasitzka
55b35cd611
* src/cff/cffparse.c: Please the compiler.
2018-11-22 11:43:48 +00:00
Armin Hasitzka
642bc7590c
[cff] Fix memory overflow.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9869
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10869
* src/cff/cffparse.c (destruct_t2s_item, cff_parser_run): Store
evaluated T2 charstrings in separately allocated memory.
2018-11-22 10:29:35 +00:00
Alexei Podtelezhnikov
81f43a9d36
* builds/windows/{visualc,vc2005,vc2008}/freetype.vcproj: Fix it.
2018-11-18 14:47:32 -05:00
Alexei Podtelezhnikov
8d517e679b
Clarification.
2018-11-10 15:47:48 -05:00
Alexei Podtelezhnikov
78db9eecff
[smooth] Placeholder only for library-enabled LCD filtering.
...
* src/smooth/ftsmooth.c (ft_smooth_init): Add disabled
`FT_Library_SetLcdFilter' call.
2018-11-10 15:39:19 -05:00
Werner Lemberg
58e48e9287
[psaux] Add safety guard ( #54985 ).
...
* src/psaux/psobjs.c (cff_builder_close_contour): Do it.
2018-11-09 12:14:35 +01:00
Alexei Podtelezhnikov
3b6e65f7bf
* builds/unix/configure.raw: Require `windows.h' for windres.
2018-11-08 23:36:37 -05:00
Alexei Podtelezhnikov
181033d396
[ftstroke] Fix unpredictable failures ( #54986 ).
...
* src/base/ftstroke.c (ft_sroke_border_lineto): Fix lineto check.
2018-11-08 21:04:56 -05:00
Alexei Podtelezhnikov
81c31f62cb
[ftstroke] Fix unpredictable failures ( #54976 ).
...
* src/base/ftstroke.c (ft_sroke_border_close): Set the start tags.
2018-11-08 07:54:47 -05:00
Ben Wagner
fb0d66d04c
[truetype] Fix VF check from 2018-09-12 ( #54973 ).
...
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Use correct
offsets for estimates.
2018-11-07 00:47:44 +01:00
Werner Lemberg
fbd2452346
[pshinter] Fix numeric overflow.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11242
* src/pshinter/pshrec.c (ps_dimension_add_t1stem): Implement it.
2018-11-06 11:15:31 +01:00
Werner Lemberg
5b86f53dd6
[psaux] Fix timeout in old CFF engine.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11260
* src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
<cff_op_sqrt> [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix potential endless
loop.
2018-11-06 11:08:41 +01:00
Alexei Podtelezhnikov
cc288e383b
Minor.
2018-11-04 22:09:16 -05:00
Alexei Podtelezhnikov
1f43affc09
* src/truetype/ttgxvar.c: Use enum definitions.
2018-11-04 13:11:16 -05:00
Alexei Podtelezhnikov
d95a12b88d
* src/truetype/ttgxvar.c (ft_var_apply_tuple): Adjust condition.
2018-11-03 23:02:58 -04:00