Commit graph

17038 commits

Author SHA1 Message Date
Qunxin Liu
f6f35f73bc [instancer] add tests for feature variations partial instancing 2023-10-30 12:31:49 -06:00
Qunxin Liu
091e538daf [instancer] support partial instancing for FeatureVariations 2023-10-30 12:31:49 -06:00
dependabot[bot]
e5040c2352 Bump ossf/scorecard-action from 2.3.0 to 2.3.1
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](483ef80eb9...0864cf1902)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 09:42:58 -06:00
dependabot[bot]
16a76829f7 Bump github/codeql-action from 2.22.4 to 2.22.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.4 to 2.22.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](49abf0ba24...74483a38d3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 09:42: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
598de82f3a [hb-subset] Fix warning 2023-10-27 12:13:13 -06:00
Behdad Esfahbod
9fc45f70ad [ReverseChainSingleSubst] Minor optimization 2023-10-23 13:08:29 -06:00
dependabot[bot]
156de3c048 Bump meson from 1.2.2 to 1.2.3 in /.ci
Bumps [meson](https://github.com/mesonbuild/meson) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.2.2...1.2.3)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 10:03:47 -06:00
dependabot[bot]
d7cd687b74 Bump github/codeql-action from 2.22.3 to 2.22.4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.3 to 2.22.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](0116bc2df5...49abf0ba24)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 10:02:58 -06:00
dependabot[bot]
4d123ece5f Bump actions/checkout from 4.1.0 to 4.1.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 10:02:45 -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
ce46698929 [subset] update tests
to reflect changes in GDEF.MarkGlyphSetsDef and Lookup.MarkFilteringSet
2023-10-18 15:49:57 -07: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
bde6fb83ea add missing file for test empty_region_vardata 2023-10-18 10:21:02 -07:00
Qunxin Liu
57dac23d79 [instancer] add tests
Also update tests to gei rid of no-tables-with-item-variations profile
2023-10-18 08:07:26 -06: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
dependabot[bot]
4992456cfa Bump ninja from 1.11.1 to 1.11.1.1 in /.ci
Bumps [ninja](https://github.com/ninja-build/ninja) from 1.11.1 to 1.11.1.1.
- [Release notes](https://github.com/ninja-build/ninja/releases)
- [Commits](https://github.com/ninja-build/ninja/commits)

---
updated-dependencies:
- dependency-name: ninja
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-16 10:01:12 -06:00
dependabot[bot]
397b32e585 Bump github/codeql-action from 2.22.0 to 2.22.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.0 to 2.22.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](2cb752a87e...0116bc2df5)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-16 10:00:59 -06: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
Garret Rieger
bbd53fcfa4 Remove glyph_map test that uses retain gids.
We no longer allow the use of glyph map + retain gids (see: https://github.com/harfbuzz/harfbuzz/blob/main/src/hb-subset-plan.cc#L817). Also add the test to the meson file so it will be run by default.
2023-10-10 17:59:05 -06:00
dependabot[bot]
9648799e53 Bump ossf/scorecard-action from 2.2.0 to 2.3.0
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](08b4669551...483ef80eb9)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 10:29:20 -06:00
dependabot[bot]
cf930decce Bump actions/setup-python from 4.7.0 to 4.7.1
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](61a6322f88...65d7f2d534)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 10:29:08 -06:00
dependabot[bot]
0cfc4ebfba Bump github/codeql-action from 2.21.9 to 2.22.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.21.9 to 2.22.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](ddccb87388...2cb752a87e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 10:28:51 -06:00
dependabot[bot]
a317b5a7ea Bump fonttools from 4.43.0 to 4.43.1 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.43.0 to 4.43.1.
- [Release notes](https://github.com/fonttools/fonttools/releases)
- [Changelog](https://github.com/fonttools/fonttools/blob/main/NEWS.rst)
- [Commits](https://github.com/fonttools/fonttools/compare/4.43.0...4.43.1)

---
updated-dependencies:
- dependency-name: fonttools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 10:28: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
dependabot[bot]
f26fd69d85 Bump github/codeql-action from 2.21.8 to 2.21.9
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.21.8 to 2.21.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](6a28655e3d...ddccb87388)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 12:39:16 -06:00
dependabot[bot]
1522eb9199 Bump fonttools from 4.42.1 to 4.43.0 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.42.1 to 4.43.0.
- [Release notes](https://github.com/fonttools/fonttools/releases)
- [Changelog](https://github.com/fonttools/fonttools/blob/main/NEWS.rst)
- [Commits](https://github.com/fonttools/fonttools/compare/4.42.1...4.43.0)

---
updated-dependencies:
- dependency-name: fonttools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 12:39:08 -06:00
dependabot[bot]
2d67e52a47 Bump meson from 1.2.1 to 1.2.2 in /.ci
Bumps [meson](https://github.com/mesonbuild/meson) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.2.1...1.2.2)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 12:38:59 -06:00
Khaled Hosny
6e06a193b3 Add some tests for hb_feature_[from|to]_string() 2023-09-29 18:22:44 -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
2415d5f239 [instancer] update tests to include GDEF/GPOS tables 2023-09-27 13:33:09 -07: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