Commit Graph
17170 Commits
Author SHA1 Message Date
Qunxin Liu 2dabbdfc66 [instancer] fix help message for --optimize 2024-02-02 13:39:33 -08:00
Qunxin Liu f072de9359 [instancer] move iup code to a seprate file 2024-01-30 10:52:42 -08:00
Qunxin Liu 97c85ab2d0 [instancer] iup delta optimize: fix is_composite_glyph value in gvar 2024-01-26 16:36:56 -08:00
Qunxin Liu 4d5fb233e3 fix build 2024-01-26 16:11:06 -08:00
Qunxin Liu 84771374e8 [instancer] add tests for iup delta optimization 2024-01-26 15:51:49 -08:00
Qunxin Liu 0cbc812340 [instancer] add iup_optimize() call into instantiation 2024-01-26 15:42:29 -08:00
Qunxin Liu 52c3cda31b [instancer] add composite_new_gids set in subset plan
This is only used by iup delta optimization where we need to know
whether glyph is composite or not
2024-01-26 10:55:57 -08:00
Qunxin Liu a3e3473cc8 [instancer] when iup delta opt is enabled, add default deltas to coords 2024-01-26 10:42:21 -08:00
Qunxin Liu f1cdcc70c1 [instancer] add iup delta optimization functions tuple_delta_t
ported from fonttools
2024-01-26 10:12:38 -08:00
Qunxin Liu 8ad540bb84 [instancer] move compile_point_set to be a member of tuple_delta_t
Also change hb_bytes_t to vector for memory safety
2024-01-26 09:58:48 -08:00
Qunxin Liu c7a6030b31 [instancer] add a flag HB_SUBSET_FLAGS_IUP_DELTA_OPT 2024-01-26 09:27:27 -08:00
Elliot 93a148cde6 fix warning when compiling with clang-cl 2024-01-25 10:12:04 -08:00
Behdad Esfahbod 4a18c502e2 [cmake] Treat VITA like gcc
https://github.com/vitasdk/packages/issues/300
2024-01-23 05:12:43 -08:00
dependabot[bot] 4b716b101e Bump github/codeql-action from 3.23.0 to 3.23.1
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.23.0 to 3.23.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e5f05b81d5b6ff8cfa111c80c22c5fd02a384118...0b21cf2492b6b02c465a3e5d7c473717ad7721ba)

---
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>
2024-01-22 10:29:55 -08:00
dependabot[bot] e67a94017e Bump actions/upload-artifact from 4.1.0 to 4.2.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/1eb3cb2b3e0f29609092a73eb033bb759a334595...694cdabd8bdb0f10b2cea11669e1bf5453eed0a6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 10:29:40 -08:00
dependabot[bot] 62e1de7f16 Bump actions/upload-artifact from 4.0.0 to 4.1.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/c7d193f32edcb7bfad88892161225aeda64e9392...1eb3cb2b3e0f29609092a73eb033bb759a334595)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 09:07:02 -07:00
dependabot[bot] d53c97e6af Bump github/codeql-action from 3.22.12 to 3.23.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.22.12 to 3.23.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/012739e5082ff0c22ca6d6ab32e07c36df03c4a4...e5f05b81d5b6ff8cfa111c80c22c5fd02a384118)

---
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>
2024-01-15 09:06:49 -07:00
dependabot[bot] 9c143d5258 Bump fonttools from 4.47.0 to 4.47.2 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.47.0 to 4.47.2.
- [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.47.0...4.47.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 09:06:38 -07:00
Sergei Trofimovich 032c931e1c use calloc(nmemb, size), not calloc(size, nmemb)
This minor mismatch is detected by new `-Wcalloc-transposed-args`
`gcc-14` warning as:

    In file included from ../src/hb-subset-plan.cc:38:
    ../src/hb-ot-cff1-table.hh: In member function 'bool OT::cff1::accelerator_t::get_glyph_from_name(const char*, int, hb_codepoint_t*) const':
    ../src/hb-ot-cff1-table.hh:1419:60: warning: 'void* calloc(size_t, size_t)' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
     1419 |         names = (hb_sorted_vector_t<gname_t> *) hb_calloc (sizeof (hb_sorted_vector_t<gname_t>), 1);
          |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-01-13 10:34:18 -07:00
dependabot[bot] 11f8914add Bump jinja2 from 3.1.2 to 3.1.3 in /.ci
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 14:16:28 -07:00
Garret Rieger ef1f5c4e0c [subset] Re-use common Coverage subsetting function in PairPosFormat2.
Was using an identical but less efficient version. Fixes fuzzer test case: https://oss-fuzz.com/testcase-detail/6151390002806784
2024-01-08 15:34:45 -07:00
Behdad Esfahbod e0e2b29ea8 [cmap] Implement MacRoman encoding
For other Mac encodings just map the ASCII range.

Fixes https://github.com/harfbuzz/harfbuzz/issues/4540
2024-01-08 12:30:23 -07:00
Behdad Esfahbod ef289a9e20 [COLR] Reduce COLRv1 max edge count
64k sounds excessive.

Fixes https://oss-fuzz.com/testcase-detail/5383336738291712
2024-01-08 09:11:34 -07:00
Lie Yan 155015f4be refactor(math-kern): call hb_bsearch_impl instead of raw binary search 2024-01-08 07:05:56 -07:00
dependabot[bot] b42b112456 Bump hendrikmuhs/ccache-action from 1.2.10 to 1.2.11
Bumps [hendrikmuhs/ccache-action](https://github.com/hendrikmuhs/ccache-action) from 1.2.10 to 1.2.11.
- [Release notes](https://github.com/hendrikmuhs/ccache-action/releases)
- [Commits](https://github.com/hendrikmuhs/ccache-action/compare/6d1841ec156c39a52b1b23a810da917ab98da1f4...2a51777f6f64b7b7bea213601acba8f5f4fdbe03)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 05:04:40 -07:00
Behdad Esfahbod 2f41d54b85 Fix old-compiler warning 2024-01-07 13:50:56 -07:00
Ozkan Sezer 1cc7ddb3c4 hb-subset-plan.cc: Fix -Wparentheses warning.
In file included from hb-subset-plan.hh:30:0,
                 from hb-subset-plan.cc:27:
hb-subset-plan.cc: In function 'void _update_instance_metrics_map_from_cff2(hb_subset_plan_t*)':
hb-subset-plan.cc:998:81: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (unlikely (!plan->check_success (font = _get_hb_font_with_variations (plan))))
                                                                                 ^
hb.hh:263:25: note: in definition of macro 'unlikely'
 #define unlikely(expr) (expr)
                         ^

Fixes: https://github.com/harfbuzz/harfbuzz/issues/4545
2024-01-07 12:30:06 -07:00
Lie Yan c17d67467f [ot-math] Fix a bug in MathKern::get_value()
Fixes https://github.com/harfbuzz/harfbuzz/issues/4542
2024-01-07 16:10:10 +02:00
Khaled Hosny 5852d328a4 [circleci] Run pip inside a virtual environment
Looks like newer versions of python disable pip for system-managed
installations. This should unbreak alpine job and prevent other jobs
from potentially breaking in the future.
2024-01-06 17:35:15 +02:00
Behdad Esfahbod e9d727173c [cmap] Remove more unused code 2024-01-04 09:36:24 -07:00
Behdad Esfahbod f8d924e5b8 [cmap] Remove unused code 2024-01-04 09:36:24 -07:00
Behdad Esfahbod 81c2212117 [test-instancer-solver] Fix on msys32 hopefully 2024-01-01 13:52:33 -05:00
dependabot[bot] ba7dae79ee Bump ilammy/msvc-dev-cmd from 1.12.1 to 1.13.0
Bumps [ilammy/msvc-dev-cmd](https://github.com/ilammy/msvc-dev-cmd) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/ilammy/msvc-dev-cmd/releases)
- [Commits](https://github.com/ilammy/msvc-dev-cmd/compare/cec98b9d092141f74527d0afa6feb2af698cfe89...0b201ec74fa43914dc39ae48a89fd1d8cb592756)

---
updated-dependencies:
- dependency-name: ilammy/msvc-dev-cmd
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 13:49:59 -05:00
dependabot[bot] 62fd46a84e Bump meson from 1.3.0 to 1.3.1 in /.ci
Bumps [meson](https://github.com/mesonbuild/meson) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.3.0...1.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 13:49:51 -05:00
Khaled Hosny 01702d3057 Update Codacy Badge [ci skip] 2024-01-01 13:58:51 +02:00
dependabot[bot] d455066ad2 Bump fonttools from 4.46.0 to 4.47.0 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.46.0 to 4.47.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.46.0...4.47.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-12-25 14:54:09 -05:00
dependabot[bot] 74bb1be6e9 Bump setuptools from 69.0.2 to 69.0.3 in /.ci
Bumps [setuptools](https://github.com/pypa/setuptools) from 69.0.2 to 69.0.3.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v69.0.2...v69.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-25 14:54:02 -05:00
dependabot[bot] d8a5287437 Bump github/codeql-action from 3.22.11 to 3.22.12
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.22.11 to 3.22.12.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/b374143c1149a9115d881581d29b8390bbcbb59c...012739e5082ff0c22ca6d6ab32e07c36df03c4a4)

---
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-12-25 14:53:49 -05:00
Garret Rieger bb5c7ccb14 Also enforce IFTB requirements during instantiation of gvar. 2023-12-19 17:02:35 -05:00
dependabot[bot] f3efa6f6e5 Bump github/codeql-action from 2.22.9 to 3.22.11
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.9 to 3.22.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2...b374143c1149a9115d881581d29b8390bbcbb59c)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 11:43:40 -05:00
dependabot[bot] c853fc28fa Bump actions/upload-artifact from 3.1.3 to 4.0.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.3 to 4.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/a8a3f3ad30e3422c9c7b888a15615d19a852ae32...c7d193f32edcb7bfad88892161225aeda64e9392)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 11:43:31 -05:00
Garret Rieger d80e0974d2 [repacker] Increase repacker max rounds to 32.
Found an example font that needs the higher limit.
2023-12-15 16:50:08 -07:00
Behdad Esfahbod 081cbfd906 Fix warnings 2023-12-15 10:10:18 -07:00
Behdad Esfahbod 5b325c0ae9 [cff] Fix late sanitize
Last summer I changed sanitizer->check_struct() to only check
the trailing point of the struct on 64bit machines. This works
mostly because offsets are always positive.

Not anymore. Recently we introduced negative offsets in CFF,
and this was causing sanitize() for such structs pass while
the struct's leading edge was out of range.

Fix that.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64859
2023-12-13 15:27:47 -07:00
dependabot[bot] 74e8971171 Bump github/codeql-action from 2.22.8 to 2.22.9
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.8 to 2.22.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/407ffafae6a767df3e0230c3df91b6443ae8df75...c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2)

---
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-12-11 15:07:27 -05:00
dependabot[bot] 2e43c38f6a Bump actions/setup-python from 4.7.1 to 5.0.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.7.1 to 5.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236...0a5c61591373683505ea898e09a3ea4f39ef2b9c)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 15:07:01 -05:00
Qunxin Liu df735213a8 [instancer-solver] port solver fix (#4519)
* [instancer-solver] port solver fix

from https://github.com/fonttools/fonttools/pull/3374
2023-12-06 10:50:29 -07:00
Behdad Esfahbod bf84135edd [cff] Support negative offsets
Fixes https://github.com/harfbuzz/harfbuzz/issues/4508
2023-12-06 11:49:02 -05:00
Garret Rieger 7160c5b9e5 [repacker] add tests for multi-duplication.
Further improve the resolution attempt by pre-emptively raising priority of a duplicated shared node.
2023-12-05 16:25:12 -05:00
Garret Rieger 6f64fa75e3 [repacker] improve resolution of overflows to shared nodes.
Prior to this change overflows to shared nodes were handled by duplicating the link from only a single parent on each iteration. However, I've encountered fonts where there is a large number of parents sharing a single child. Using the prior strategy requires large number of overflow resolution iterations to resolve overflows. This changes shared overflow resolution to duplicate the shared child and re-assign multiple overflowing parents in a single iteration. This reduces total packing size in these cases and allows resolution to complete in far fewer iterations.
2023-12-05 16:25:12 -05:00