Andy John
4ee00f943f
Use bit shifting instead of multiplying and dividing.
3 years ago
Andy John
3125f5ae33
Add log base 2 versions of constants.
3 years ago
Behdad Esfahbod
1ffe637a0e
[coretext] Remove dead code
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3484
3 years ago
TheBluuDot
7bdc20ec81
restores unintended addition in 43be5ba
...
restores two lines in restore in _hb_allocate_lig_id function that were unintentionally deleted in 43be5ba
3 years ago
Qunxin Liu
7cb002cb58
[subset] bug fix in prune_langsys
...
we should not cache visited langsys cause 2 different Record<Langsys>
could have different Tag while pointing to the same Langsys, a langsys
is redundant in Record<Langsys> A does not mean it's redundant in Record
B. Same thing for visited_script.
Also adding the number of features in the LangSys's feature list to the
visited langsys count so it's more accurate.
Plus some improvement in langsys compare()
3 years ago
Behdad Esfahbod
cad2fe8e63
[baseline] Fix HB_NO_METRICS build
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3482
3 years ago
Behdad Esfahbod
a8a89b80b4
[layout] Whitespace
3 years ago
Behdad Esfahbod
21f5ef56f5
[metrics] Simplify x-height fallback
3 years ago
Behdad Esfahbod
6bf8f0a38f
[baseline] Use ot-metrics fallback API
3 years ago
Dominik Röttsches
965cf1d665
Make load_num_glyphs_from_loca conditional on HB_NO_BORING_EXPANSION
...
Fixes build errors complaining about this function being unused.
3 years ago
David Corbett
49fb8f9072
[USE] Treat visible viramas like dependent vowels
3 years ago
Khaled Hosny
1f79ba9407
4.0.1
3 years ago
Khaled Hosny
a34eea3013
[doc] Add experimental repacker API to private section
...
Hides the warning about them until they are no longer experimental.
3 years ago
Qunxin Liu
a35757c6bc
[repacker] expose hb_subset_repack() API, hb_object_t and hb_link_t structs
3 years ago
Matthias Clasen
e7ab42b246
[layout] Fix handling of baseline variations
...
For BASE table format 1.1, the handling of design
space vs user space coordinates was inconsistent.
We were applying design -> user transformation
twice for the deltas, leading to wrong baseline
values.
Patch by Ebrahim Byagowi <ebrahim@gnu.org>
Fixes : #3476
3 years ago
David Corbett
e5707a440c
Update IANA Language Subtag Registry to 2022-03-02
3 years ago
David Corbett
13bb46cfd5
[USE] Remove obsolete overrides
3 years ago
David Corbett
c33468d48e
[USE] Treat all gc=Cn as independent clusters
3 years ago
David Corbett
e497a8f142
[USE] Remove obsolete symbol/punctuation overrides
3 years ago
David Corbett
854219e056
[USE] Simplify `not_ccs_default_ignorable`
3 years ago
David Corbett
6e059a46b7
[USE] Allow any non-numeric tail in symbol cluster
3 years ago
David Corbett
5b0a59812d
[USE] Restore the category WJ
3 years ago
Florian Pircher
05b3bdb0b3
[aat] Update OT to AAT mappings for hist and vrtr
3 years ago
Khaled Hosny
4302466481
Merge pull request #3464 from luzpaz/typos
...
Fixed various misc. typos
3 years ago
luz paz
cf3a0f7ab5
Fixed various misc. typos
...
Found via `codespell -q 3 -S ./perf/texts -L actualy,als,ba,beng,clen,crasher,dependant,eachother,fo,gir,inout,ist,nd,ned,ot,pres,ro,statics,te,teh,timne`
3 years ago
Khaled Hosny
756395270d
Minor [ci skip]
3 years ago
Khaled Hosny
8d1b000a3e
4.0.0
3 years ago
Khaled Hosny
6e466256e4
[doc] Typo
3 years ago
Garret Rieger
f6071c16b0
[subset] Rename codepoint -> unicode in subset plan api
3 years ago
Khaled Hosny
1b5a2e0809
[doc] Various fixes to newly added documentation
3 years ago
Khaled Hosny
924dd71de3
Merge pull request #3423 from harfbuzz/revert-ci-msvc
...
Revert "[ci] Downgrade pip on MSVC jobs"
3 years ago
Behdad Esfahbod
222301bfa4
Merge pull request #3429 from harfbuzz/external_plan
...
[subset] expose subset plan in public subsetting API
3 years ago
Khaled Hosny
78f3d7f0a8
Merge pull request #3459 from jameshilliard/icu-defs-mutliarg
...
[meson] handle multiple element ICU DEFS
3 years ago
James Hilliard
256dcde149
[meson] handle multiple element ICU DEFS
3 years ago
Matthias Clasen
d4cb07728c
Add a missing file
...
The style test is using notosansitalic.ttf now,
but I forgot to add it with the test. Fix that.
3 years ago
Behdad Esfahbod
651c280d0b
[style] Move the negation into the constant
3 years ago
Matthias Clasen
16b232be0e
[hb-style] Fix the sign of slant ratios
...
We want negative slant angles to yield
positive slant ratios. Fix that.
Test included.
3 years ago
Matthias Clasen
e76061a737
[hb-style] Fix synthetic slant values
...
When reporting the slant ratio of a font
that has synthetic slant set, we were
reporting twice the expected value.
Fix that. Test included.
3 years ago
Behdad Esfahbod
56f11ec938
[buffer] Add HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3454
3 years ago
Behdad Esfahbod
c0b2f50c0b
[util] Rename template typenames to avoid clashing with actual types
...
Apparently MSVC2015 can confuse them
Fixes https://github.com/harfbuzz/harfbuzz/issues/3379
3 years ago
Garret Rieger
fc1548cf71
[subset] document return values.
3 years ago
Matthias Clasen
f6efe34f5e
[ot-metrics] Synthesize missing metrics
...
Add a variant of hb_ot_metrics_get_position that
synthesizes missing values.
New api: hb_ot_metrics_get_position_with_fallback
3 years ago
Behdad Esfahbod
f8e9e315bb
Merge pull request #3437 from matthiasclasen/synthesize-missing-baselines
...
[BASE] Synthesize missing baselines
3 years ago
Behdad Esfahbod
8e900f2cda
Revert "hb-algs.hh: Fix build on Visual Studio 2015"
...
This reverts commit 52c536bb8d
.
See https://github.com/harfbuzz/harfbuzz/pull/3448
3 years ago
Khaled Hosny
da801cdee1
Merge pull request #3449 from fanc999/msvc-meson-use-cmake
...
Meson: Use CMake more to find dependencies on Windows
3 years ago
Chun-wei Fan
e6aa4b7d0e
BUILD.md: Mention that installing CMake is recommended for MSVC
...
We are using CMake to help us find dependencies in Meson builds on Visual
Studio, so let people know that it's recommended.
3 years ago
Chun-wei Fan
d24ac4aac3
freetype2.wrap: Provide fallback for CMake dep as well
...
Add a freetype identifier in the 'provides' section so that the fallback will
kick in if FreeType is requested but was not found, and wrap mode is not
disabled.
3 years ago
Chun-wei Fan
f0573d8462
meson: Clean up finding ICU-UC on Visual Studio
...
Nowadays Meson has much better CMake support which we can use to find
dependencies on Visual Studio builds (and Visual Studio 2017 and later provides
CMake as an optional install item), so we can use it to help us find ICU-UC
on Visual Studio builds, since CMake has built-in support for finding it by
the components we need for some time.
3 years ago
Chun-wei Fan
561e8ba887
meson: Cleanup finding FreeType on Visual Studio
...
Nowadays, CMake is much better supported with Meson and is a common tool on
Windows (it is even an optionally-installed item for Visual Studio 2017+), so
make use of that to find FreeType. The package to search for, however, is
`freetype` instead of `freetype2`.
3 years ago
Matthias Clasen
95bb2ff719
[ot-layout] Add central baselines
...
Add HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_CENTRAL
and HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_CENTRAL
which are the centers of the ideographic em-box
and face box.
3 years ago