Qunxin Liu
091e538daf
[instancer] support partial instancing for FeatureVariations
2023-10-30 12:31:49 -06:00
Behdad Esfahbod
bf08205625
[deprecated] Add a mis-spelled macro
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4464
2023-10-27 12:24:33 -06:00
Behdad Esfahbod
9fc45f70ad
[ReverseChainSingleSubst] Minor optimization
2023-10-23 13:08:29 -06:00
一丝
b0150ffd05
[subset] keep East Asian spacing vhal, halt, chws, vchw by default
...
Closes: https://github.com/harfbuzz/harfbuzz/issues/4451
2023-10-20 10:18:58 -06:00
Behdad Esfahbod
fde1c3692a
Merge pull request #4452 from googlefonts/fix_test
...
[subset] bug fixes for GDEF
2023-10-19 11:04:34 -06:00
Qunxin Liu
e595fe75cc
fix bots
...
partial instancing tests are wrapped by experimenal_api, do not enable
them in Makefile
2023-10-19 09:38:38 -07:00
Alexander Borsuk
38f351d113
[docs] Fixed links to freetype FT_LOAD_XXX flags
...
Signed-off-by: Alexander Borsuk <me@alex.bio >
2023-10-18 17:25:07 -06:00
Qunxin Liu
8ceed6ee72
[subset] fix Lookup.MarkFilteringSet to use the new indices
2023-10-18 15:43:40 -07:00
Qunxin Liu
510456e953
[subset] don't retain empty coverage in MarkGlyphSetsDef
2023-10-18 14:26:11 -07:00
Qunxin Liu
16ee24c050
[subset] bug fix for GDEF
...
don't use embed(this), snapshot and revert to lower version if needed
2023-10-18 14:11:55 -07:00
Qunxin Liu
8585d600c4
[instancer] update variable device flags in ValueFormat
2023-10-18 08:07:26 -06:00
Qunxin Liu
1a5dd610be
[instancer] retain empty rows when region is empty and item_count is not
2023-10-18 08:07:26 -06:00
David Manthey
45a7f9cec3
Change the shebang used for python
...
The shebang `/usr/bin/python3` assumes python3 is installed in /usr/bin,
which isn't always true (e.g., in the manylinux docker image). Using
`/usr/bin/env python3` uses the python3 that is in the path, which is
more flexible.
2023-10-18 07:40:40 -06:00
Khaled Hosny
18a6e78549
8.2.2
2023-10-18 01:18:14 +03:00
Garret Rieger
52bc78e70d
s/PairPos/MarkBasePos/ in MarkBasePos repacking implementation.
2023-10-16 12:25:25 -06:00
Behdad Esfahbod
6190bb0b8e
[layout] Change order of feature collection
...
See comments for rationale.
Fixes https://github.com/harfbuzz/harfbuzz/issues/4445
2023-10-16 14:11:46 -04:00
Qunxin Liu
1f395cbaf9
[instancer] templatize the priority queue, use custom type for varstore
...
when instantiating varstore, we need to pop a tuple like
(combined_gain, i, j), if combined gain is the same then we compare the
value of i, and then j. So we'd like to use custom type as the key when
popping from the queue. This would match fonttool's algorithm cause it
uses heappop().
2023-10-13 14:52:27 -06:00
Behdad Esfahbod
a7b3fe3523
Fix test
2023-10-05 12:16:00 -06:00
Behdad Esfahbod
fc563bb437
Merge pull request #4421 from googlefonts/GDEF_GPOS
...
[instancer] support GDEF/GPOS tables
2023-10-05 11:07:17 -06:00
jfkthame
f360d704fa
Check for closing quote in parse_tag
...
Fixes #4414 .
2023-09-29 11:24:36 -06:00
Garret Rieger
333946b00e
[subset] Fix fuzzer timeout.
...
Fixes https://oss-fuzz.com/testcase-detail/5458896606855168 . Limit iteration over coverage in MarkLigPosFormat1 subsetting to the number of glyphs in the liga array.
2023-09-28 14:22:51 -06:00
Qunxin Liu
9ceb800ac2
fuzzer fix https://oss-fuzz.com/testcase-detail/5842152921628672
...
Access TupleVariationData through blob, because we don't sanitize
var_data
2023-09-28 12:51:44 -06:00
Behdad Esfahbod
7cb7a7999b
[map] Fix undefined integer-overflow
...
Fixes https://oss-fuzz.com/testcase-detail/5814850435284992
2023-09-28 09:24:43 -06:00
Qunxin Liu
f9b04b2145
[instancer] match fonttools'r order when calculating chars
...
Also fix a bug, make sure map set is happening before std::move
2023-09-27 12:52:59 -07:00
Qunxin Liu
f39e9bf1ed
[instancer] instantiate GPOS
...
Just need to update var_idxes and deltas
2023-09-27 11:22:53 -07:00
Qunxin Liu
5c6795e270
[instancer] make GPOS depend on GDEF when partial instancing
...
GPOS needs to wait for GDEF remapping layout var idxes
2023-09-27 11:05:53 -07:00
Qunxin Liu
c8594baa47
[instancer] instantiate GDEF varStore
...
And update layout var idxes accordingly
2023-09-27 10:58:39 -07:00
Qunxin Liu
77f24d822e
[instancer] remap layout var_idxes code update
...
make hb_collect_variation_indices_context_t only collect layout
variation indices.
2023-09-27 10:46:45 -07:00
Qunxin Liu
c8c97864e8
[instancer] simplify item_variations_t API calls
...
merge create,instantiate and as_item_varstore into one API
2023-09-25 10:41:52 -06:00
inobelar
69da5aae02
Added minor fixes to build without errors with gcc 4.9.2
2023-09-23 11:54:01 -06:00
Duncan Overbruck
b8121ccbb6
[meson] keep asserts in test programs
2023-09-21 10:04:46 -06:00
Qunxin Liu
5aa4865a86
[instancer] fix compile warnings
...
In constructor ‘OT::delta_row_encoding_t::delta_row_encoding_t(OT::delta_row_encoding_t&&)’,
inlined from ‘Type* hb_vector_t<Type, sorted>::push(Args&& ...) [with Args = {OT::delta_row_encoding_t}; Type = OT::delta_row_encoding_t; bool sorted = false]’ at ../src/hb-vector.hh:221:12,
inlined from ‘bool OT::item_variations_t::as_item_varstore(bool, bool)’ at ../src/hb-ot-var-common.hh:1985:24:
../src/hb-ot-layout-common.hh:2304:8: warning: ‘obj.OT::delta_row_encoding_t::width’ may be used uninitialized [-Wmaybe-uninitialized]
2304 | struct delta_row_encoding_t
| ^~~~~~~~~~~~~~~~~~~~
../src/hb-ot-var-common.hh: In member function ‘bool OT::item_variations_t::as_item_varstore(bool, bool)’:
../src/hb-ot-var-common.hh:1981:30: note: ‘obj.OT::delta_row_encoding_t::width’ was declared here
1981 | delta_row_encoding_t obj;
| ^~~
In constructor ‘OT::delta_row_encoding_t::delta_row_encoding_t(OT::delta_row_encoding_t&&)’,
inlined from ‘Type* hb_vector_t<Type, sorted>::push(Args&& ...) [with Args = {OT::delta_row_encoding_t}; Type = OT::delta_row_encoding_t; bool sorted = false]’ at ../src/hb-vector.hh:221:12,
inlined from ‘bool OT::item_variations_t::as_item_varstore(bool, bool)’ at ../src/hb-ot-var-common.hh:1985:24:
../src/hb-ot-layout-common.hh:2304:8: warning: ‘obj.OT::delta_row_encoding_t::overhead’ may be used uninitialized [-Wmaybe-uninitialized]
2304 | struct delta_row_encoding_t
| ^~~~~~~~~~~~~~~~~~~~
../src/hb-ot-var-common.hh: In member function ‘bool OT::item_variations_t::as_item_varstore(bool, bool)’:
../src/hb-ot-var-common.hh:1981:30: note: ‘obj.OT::delta_row_encoding_t::overhead’ was declared here
1981 | delta_row_encoding_t obj;
2023-09-20 17:05:47 -06:00
Behdad Esfahbod
4b3aa0104e
Merge pull request #4410 from googlefonts/HVAR_instance
...
[instancer] instantiate HVAR/VVAR
2023-09-20 14:37:42 -06:00
Thomas Petillon
da2c59d71f
[instancer] Delete redundant code block in cvar subsetting
...
That case is handled in hb-subset.cc.
It also made compilation with HB_NO_VAR fail because it accessed table.fvar.
2023-09-20 14:36:50 -06:00
Thomas Petillon
284889b031
[subset] Drop fvar, avar, cvar, MVAR tables when in HB_NO_VAR mode
2023-09-20 14:36:50 -06:00
Qunxin Liu
ef4ff1d6a4
[instancer] make varstore items sorting method match fonttool's
...
Also update expected tests
2023-09-20 11:45:00 -07:00
Qunxin Liu
b5f7ca1ab4
[instancer] fix bots
2023-09-20 11:28:15 -07:00
Qunxin Liu
5ec21d4af4
[instancer] fix delta_row_encoding_t constructor
...
always move chars_
2023-09-20 12:11:54 -06:00
Qunxin Liu
58e5d45de8
[instancer] instantiate HVAR/VVAR
2023-09-20 10:12:34 -07:00
Qunxin Liu
e81ad14dba
[instancer] change optimize() to as_item_varstore()
...
which allows another option to skip optimization
2023-09-20 10:00:24 -07:00
Qunxin Liu
97d0e7a19f
[instancer] add inner_maps as optional argument when creating item_variations_t
...
This allows that we create item_variations_t with only a subset of
the original varstore
2023-09-20 09:58:33 -07:00
Behdad Esfahbod
005582e0cb
Merge pull request #4370 from 2xsaiko/outgoing/cmake-now-for-real
...
Re-do and clean up CMake support, making it use relocatable paths
2023-09-20 09:10:10 -06:00
Marco Rebhan
da9b838910
Re-do and clean up CMake support, making it use relocatable paths
...
Closes #4025 .
2023-09-20 08:35:15 +02:00
Marco Rebhan
b5a1c2b483
Revert "Pass through absolute paths to cmake config directly"
...
This reverts commit db292f6f02 .
2023-09-18 23:13:16 +02:00
Qunxin Liu
c330c29175
[instancer] add a unit testcase for instantiating item variations
2023-09-18 12:24:05 -07:00
Qunxin Liu
7741fa3299
[instancer] bug fix: dont add duplicate rows into delta_row_encoding_t
...
Also fix compile_varidx_map()
2023-09-18 12:20:36 -07:00
Qunxin Liu
6c658b4105
[instancer] bug fix
2023-09-18 12:20:36 -07:00
Qunxin Liu
11cc479646
[instancer] fix columns and get_chars_overhead() in delta_row_encoding_t
...
make columns a vector of uint8_t so it supports more than 32 columns
2023-09-18 12:20:36 -07:00
Qunxin Liu
6e49128afd
[instancer] always check and update default wght/width/slnt if necessary
...
Sometimes default values in original file are incorrect, and if default value for an axis is not changed, then these values won't be updated
2023-09-18 12:20:36 -07:00
Qunxin Liu
45c2d05d00
[instancer] add subset() for MVAR
2023-09-18 12:20:36 -07:00