Behdad Esfahbod
3604f5f248
[algs] Include <initializer_list>
3 years ago
Behdad Esfahbod
c30f6834d0
[map] Add 5 methods
3 years ago
Behdad Esfahbod
38debbab7e
[set] Add successful check in swap()
3 years ago
Behdad Esfahbod
b860b44229
[bimap] Simplify initialization
3 years ago
Behdad Esfahbod
d2c364f6e7
[array] Use default methods
3 years ago
Behdad Esfahbod
6f74d80ed1
[vector] Complete sorted_vector 5-methods
3 years ago
Behdad Esfahbod
a28b5d03b5
[vector] Add swap() friend to hb_sorted_vector_t
3 years ago
Behdad Esfahbod
e97e79967e
Verbiage
3 years ago
Behdad Esfahbod
34fa5e2901
[set] More default operators
3 years ago
Behdad Esfahbod
b6c0b40fc2
[vector] Use default constructor
3 years ago
Behdad Esfahbod
1e3f57c079
[bit-set] Implement standard-5 methods plus swap
3 years ago
Behdad Esfahbod
11eadb5d28
[bit-set-invertible] Implement standard-5 methods & swap
3 years ago
Behdad Esfahbod
dcd18da611
[set] Add standard the 5 standard methods & tests
3 years ago
Behdad Esfahbod
628a0f3796
[vector] Add more tests
3 years ago
Behdad Esfahbod
f15858be5f
[vector] Pre-allocate if iterator has random-access length
3 years ago
Behdad Esfahbod
11135150a7
[vector] Move test code into separate file
3 years ago
Behdad Esfahbod
ee75e716c1
[vector] Add initializer from iterable
3 years ago
Behdad Esfahbod
18a078f968
[vector] Implement move assignment using swap
3 years ago
Matthias Clasen
8dc86d0703
Add a test font scale rounding behavior
...
This test verifies the fix for
https://github.com/harfbuzz/harfbuzz/issues/3274
3 years ago
Behdad Esfahbod
eeda2c549d
[vector] Add initializer_list constructor & tests
3 years ago
Behdad Esfahbod
c484641304
Revert "[vector] Add initializer_list constructor & tests"
...
This reverts commit aa6182453b
.
3 years ago
Behdad Esfahbod
aa6182453b
[vector] Add initializer_list constructor & tests
3 years ago
Behdad Esfahbod
8c05569930
[algs] Add hb_swap() ala, and using, std::swap()
...
Use it in vector.
Use ADL idiom.
3 years ago
Behdad Esfahbod
bbaccf23d9
Better round positions during scaling
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3274
3 years ago
Matthias Clasen
52ccdc78e6
docs: Add a link to the OpenType spec
...
Link to the name table specification in the
hb_ot_name_id_t docs.
3 years ago
Matthias Clasen
8cb2f969d9
Document hb_ot_name_t values
...
Add a short blurb for each value and refer
to the OpenType spec for more information.
Fixes : #3181
3 years ago
Qunxin Liu
85deddb16e
[subset] fuzzer fix: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40406
3 years ago
David Korczynski
de9424172d
[ci] Add CIFuzz integration
...
Add CIFuzz integration, which will run the fuzzers for a short amount
of time when a PR is submitted on Github.
Signed-off-by: David Korczynski <david@adalogics.com>
3 years ago
Behdad Esfahbod
da500568de
[API] Add hb_buffer_[sg]et_not_found_glyph() and --not-found-glyph
...
Instead of using gid=0 when a character is not found in the font,
client can now set a custom value. This is useful for shaper-driven
font fallback and to differentiate that from .notdef glyph.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1360
3 years ago
Cameron Cawley
6ea6c581ed
Remove direct link to dwrite from meson scripts
3 years ago
Cameron Cawley
ecbe224743
Revert "[hb-directwrite] Don't load dwrit.dll dynamically"
...
This reverts commit 6119ff9d80
.
3 years ago
Behdad Esfahbod
4262636926
Merge pull request #3248 from googlefonts/connected_components
...
[repacker] Keep connected subgraphs in the same space.
3 years ago
Qunxin Liu
f55d834736
[subset] Move struct DeltaSetIndexMap into hb-ot-var-common.hh
...
Also fix naming issues in review comments
3 years ago
Qunxin Liu
8c583db9b5
[subset] COLRv1: update subset() method for new strutc ClipList and VarIdxMap
...
Also fix issues in struct PaintTransform definition
3 years ago
Qunxin Liu
e51c7f8e79
[subset] COLRv1: add ClipList/ClipRecord/ClipBox struct definition
3 years ago
Qunxin Liu
2e5636eeaf
[subset] add DeltasetIndexMap struct definition
3 years ago
Qunxin Liu
d2e986fead
[subset] update COLRv1 table struct definitions
3 years ago
Khaled Hosny
792ca307b0
[meson] Add graphite2 option and deprecate graphite
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3241
Should be better handled when we can use https://github.com/mesonbuild/meson/pull/9184
3 years ago
Behdad Esfahbod
c6557747ef
[style] Use head->macStyle.isExtended in style fallback
...
https://github.com/harfbuzz/harfbuzz/issues/3263
3 years ago
Behdad Esfahbod
f3f848b506
[head] Add is_expanded() internally
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3263
3 years ago
Garret Rieger
d17155f5d2
[repacker] use possibly updated root idx after isolate_subgraph.
...
isolate_subgraph can change the root indices in some cases. So operations after the isolation need to use the roots from the output of isolate_subgraph.
3 years ago
Behdad Esfahbod
a7a3608553
[docs] Rename overflow_resolution to repacker
3 years ago
Behdad Esfahbod
9bd7ba5019
Err on -Wbitwise-instead-of-logical
...
Part of https://github.com/harfbuzz/harfbuzz/pull/3256
3 years ago
Garret Rieger
6bc64317ca
Add a writeup of the overflow resolution algorithm in harfbuzz.
3 years ago
Nico Weber
96299d70ed
Fix Wbitwise-instead-of-logical warnings
...
`a || b` only evaluates b if a is false. `a | b` always evaluates
both a and b. If a and b are of type bool, || is usually what you
want, so clang now warns on `|` where both arguments are of type bool.
This warning fires twice in harfbuzz. In both cases, `|` is used
intentionally, with a comment explaining this.
Slightly reorder the code a bit to make the compiler happy, and to
make it obvious even without a comment that both calls should be evaluated.
No intended behavior change.
3 years ago
faywong
b621c4fc29
[subset] Refine the coding style
3 years ago
faywong
f8538d3117
[subset] Export header & archive when HB_BUILD_SUBSET
...
Ease the adopt of hb-subset feature for 3rd party developers
3 years ago
Qunxin Liu
36ed56b6e8
[subset] code cleanup
...
- rename copy() method if it takes extra parameter
- get rid of same code blocks
3 years ago
David Corbett
3e635cf5e2
[USE] Categorize characters that only have AJT
3 years ago
David Corbett
ae193cd182
[USE] Insert dotted circles before lone viramas
3 years ago