Boris Dalstein
32ee89dd48
[cmake] Fix double dots in CMake library location on macOS
2023-11-10 13:48:24 +01:00
Qunxin Liu
2d001a0adc
[subset] OTS doesn't allow ligature attachment offset to be 0
2023-11-08 14:10:06 -07:00
Garret Rieger
9701b0024e
[subset] Always place CFF1/2 char strings at the end of the packed table.
...
Makes the behaviour from HB_SUBSET_FLAGS_IFTB_REQUIREMENTS the default.
2023-11-06 16:49:09 -07:00
Garret Rieger
c6884377ec
[subset] Add HB_SUBSET_FLAGS_IFTB_REQUIREMENTS flag.
...
When enabled the output subset conforms to the requirements for a base font to be patched by IFTB patches. IFTB is a proposed incremental font transfer patch. This new flag is set as experimental. Currently, setting this flag causes the output subset to also use long offsets for outline data in loca/glyf, gvar, CFF, and CFF2.
This change is a version of https://github.com/skef/harfbuzz/commit/3ae2fe2084d96f61d8ad1bbe42a6ef4e62ec830a rebased onto head w/ tests added.
2023-11-06 16:49:09 -07:00
Qunxin Liu
c2f42fbb14
fix meson compiled_tests
2023-11-06 13:12:04 -07:00
Qunxin Liu
d550e16acc
[instancer] Recalc avgcharwidth after instancing
2023-11-06 13:12:04 -07:00
Behdad Esfahbod
d053426bb4
Format
2023-11-06 11:44:14 -07:00
Behdad Esfahbod
2f528ce4ed
Tweak a couple more barriers
2023-11-06 11:40:19 -07:00
Behdad Esfahbod
f31fb43155
Remove a couple unnecessary barriers
2023-11-06 11:29:30 -07:00
Behdad Esfahbod
d10cc79a6c
Move a couple of barriers
2023-11-06 10:41:46 -07:00
Qunxin Liu
80cb6b580f
[instancer_solver] port solver fix: where axisDef < lower and upper < axisMax
...
Port from https://github.com/fonttools/fonttools/commit/f1e56cd757ed457ffd3b58c262d3f4c2e4586555
2023-11-06 10:06:26 -07:00
Behdad Esfahbod
7ee7e2e340
[sanitize] Add remaining hb_barrier() annotations
...
I'm sure I've forgot some. But this is a good start.
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
3a9262cc3d
[sanitize] More hb_barrier() annotations
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
30672c7e75
Add hb_barrier()
...
And annotate some more.
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
775320a4f6
[sanitize] Add barriers to runtime-checked values
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
cf49f3f2cb
[sanitize] Add barrier()
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
b16f180044
[sanitize] Yet another hack to "fix" barrier issue
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
fd5eb10d3b
Merge pull request #4477 from googlefonts/fix_feature_variations
...
[instancer] Fix feature variations collect lookups
2023-11-03 15:30:15 -06:00
Behdad Esfahbod
cdcad93b73
[set] Mark as realloc-movable
2023-11-03 12:46:20 -06:00
Qunxin Liu
aca55dbe36
[instancer] fix feature variations collect lookups
...
We already know which record to keep, so just collect lookups and no
need to check the substitutes_map
2023-11-03 10:51:37 -07:00
Qunxin Liu
f05636e1be
[instancer] fix build issue after rebase
2023-11-03 10:27:40 -07:00
Qunxin Liu
6c017a1162
[instancer] SinglePos/PairPos: do not strip_hints for partial instancing
2023-11-03 10:27:07 -07:00
Qunxin Liu
413af0a9b2
[instancer] When partial instancing, subset LigCaretList after VarStore instantiation
2023-11-03 10:24:56 -06:00
Behdad Esfahbod
b532945987
[tuple_delta_t] Micro-optimize encoding vector access
2023-11-01 16:53:26 -06:00
Behdad Esfahbod
59cfb4c570
[instancing] Micro-optimize a loop
2023-11-01 16:25:50 -06:00
Behdad Esfahbod
29d49eced8
[vector] Introduce realloc_moves tag
...
Some types (even aggregate) can be moved using realloc().
Extend the fast path to hb_hashmap and tuple_delta_t.
2023-11-01 15:55:47 -06:00
Behdad Esfahbod
2804127ac9
[Value] Typed offsets
2023-10-31 15:30:20 -06:00
Behdad Esfahbod
38546acd83
[typed-offset] Fix sanitize()
2023-10-31 14:56:09 -06:00
Behdad Esfahbod
62117801b8
[AnchorMatrix] Annotate offset base type
2023-10-31 14:50:45 -06:00
Behdad Esfahbod
4f219385a6
[CursivePosFormat1] Use typed offsets for EntryExitRecord
2023-10-31 14:33:23 -06:00
Behdad Esfahbod
b37cc61d45
Add base types to OffsetTo<>
...
Unused so far.
2023-10-31 14:33:19 -06:00
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