Ebrahim Byagowi
33c3d63a0a
Merge pull request #1594 from harfbuzz/var-subset
...
Issue 1558: [subset] TrueType/CFF2 variable font
5 years ago
Khaled Hosny
68c1798a67
[coretext] Use kCTFontOpenTypeFeatureTag
...
Instead of trying to map OpenType features to AAT feature selectors
which only works for a small subset of OpenType features, use the
simpler kCTFontOpenTypeFeatureTag with OpenType feature tags directly.
With this change, features like cvXX can be enabled in coretext shaper,
while they were previously ignored due to missing mapping.
This seems to work even with AAT fonts that don’t have OpenType layout
tables, which suggests that CoreText is doing the mapping itself in this
case.
kCTFontOpenTypeFeatureTag seems to have been introduced in macOS 10.10
and iOS 8.0, though, so its use is conditional on version check for now.
Not sure how to check iOS version, so I left this out.
5 years ago
Marcel Fabian Krüger
b28c282585
Check to avoid overflows
5 years ago
Marcel Fabian Krüger
d70afb1e5a
Clamp max_ops to upper bound in hb-sanitize.hh
5 years ago
Behdad Esfahbod
aa43e183dd
[perf Add texts/en-words.txt
...
$ cat docs/usermanual-*.xml src/hb*.cc src/hb*.{h,hh,cc} | sed 's/[^a-zA-Z ]/ /g' | tr ' ' '\n' | sort | uniq | grep . > perf/texts/en-words.txt
5 years ago
Ebrahim Byagowi
80762cc4d0
[ci] Speedup tsan bot
...
We don't expect fails thus expecting readable failure backtrace so let's speed it up instead
5 years ago
Evgeniy Reizner
b79ceac3c6
Prefer UINT_MAX instead of uint overflow.
...
Also, prefer HB_FEATURE_GLOBAL_START and HB_FEATURE_GLOBAL_END.
5 years ago
Evgeniy Reizner
b618e0ae13
Remove non-breaking spaces from comments.
...
`0xC2A0` was used, for some reasons. It's not really a problem, but Qt Creator
constatly trying to replace them with regular spaces, so I have to edit those
files separately.
5 years ago
Evgeniy Reizner
780d640c02
Remove unnecessary check in hb_buffer_t::set_masks.
...
Bounds are already checked by the caller.
Closes #2073
5 years ago
Evgeniy Reizner
34ed8e7218
Prefer _hb_glyph_info_is_unicode_mark where possible.
5 years ago
Ebrahim Byagowi
3e1a2632dc
[unscribe] fix leak issue
...
with no user_data provided, `free` will be called with `(0)` thus silently having a leak
5 years ago
Ebrahim Byagowi
e75d785b51
[doc] fix hb_blob_create call example
...
otherwise free(0) will be called that silently makes a leak
5 years ago
Daeren
4ef597e170
Fix unary minus operator applied to unsigned int
...
Applying unary minus operator to unsigned int causes the following error on MSVS: error C4146
This patch fixes the error.
5 years ago
Daeren
1770493cf5
Fix unary minus operator applied to unsigned int
...
Applying unary minus operator to unsigned int causes the following error on MSVS: error C4146
This patch fixes the error.
5 years ago
Behdad Esfahbod
a061e47fcc
Change a few HB_INTERNAL static methods to static inline
5 years ago
Behdad Esfahbod
dd3972a364
[GSUB] Simplify Extension is_reverse()
...
We don't allow extension lookups to chain to another extension lookup.
Simplify code for that.
5 years ago
Behdad Esfahbod
858b627984
[machinery] Remove CastR<>()
5 years ago
Behdad Esfahbod
b84ceb2fcf
[machinery] Remove CastP
5 years ago
Behdad Esfahbod
85574ec287
[machinery] Minor
5 years ago
Behdad Esfahbod
e101a67257
[perf] Add texts/fa-thelittleprince.txt
5 years ago
Behdad Esfahbod
2c781a6701
[perf] More rename
5 years ago
Behdad Esfahbod
d703392afe
[perf] Adjust text/fa-monologue.txt
5 years ago
Behdad Esfahbod
19d1b9d4f3
[perf] Renames
5 years ago
Behdad Esfahbod
6a60ca117c
[algs] Fold last other bsearch() in
...
Now truly have only one bsearch implementation.
5 years ago
Ebrahim Byagowi
53dc8d944f
Add initial shaping performance test and profiler
5 years ago
Behdad Esfahbod
39afe608b4
[algs] Fold one more custom bsearch() in
...
One more to go.
5 years ago
Behdad Esfahbod
b1dc676eaa
[algs] Reduce one more bsearch() impl
...
Ouch, there were three more left. Down one. Two to go.
5 years ago
Ebrahim Byagowi
6f76c325e5
[test] Update 10.15 results
...
Turned out only SFNS, which wasn't available in 10.14 anyway, needed an update
See https://crbug.com/1005969#c37 also
5 years ago
Ebrahim Byagowi
2241a676ba
[test] Add macOS 10.15 related fonts
...
breaks the test and 10.15 bot, will add the fix in next commit, also adds a broken test for f47cbade1
5 years ago
Ebrahim Byagowi
f3de3b6d3d
[ci] fix macOS 10.15 bot
...
Xcode 11.3.0 image is supposed to work per https://circleci.com/docs/2.0/testing-ios/
but isn't https://circleci.com/gh/harfbuzz/harfbuzz/118693 AFAICS
Let's try Xcode 11.2.1 image
5 years ago
Ebrahim Byagowi
49434bdd49
[ci] Add a macOS 10.15 bot
...
Should update macos.tests with the fonts, for now
5 years ago
Behdad Esfahbod
f47cbade18
[aat] Adjust fallback positioning logic
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1528
Wish could add a test...
$ ./hb-view --font-file Thonburi.ttc --unicodes U+0E17,U+0E35,U+0E48,U+0E4A --shaper ot
▃
▂▃▃▄▃▂▁▊ ▃ ▃ ▎
▗ ▅▆▆▅ ▌ ▆▆▅▆▙ ▌▗
▗ ▙ ▂ ▎▗ ▟
▅▆▆▆▇▇▇▇▇▇▇▆▆▅▄ ▇▅▅▅ ▙▆▇
▁▁▂▁ ▁▁
▖ ▖ ▂▂
▉ ▁ ▆▆ ▌ ▆ ▙▄ ▁▁
▙ ▉ ▃▖ ▟
▊ ▉ ▅▟ ▗▄
▊ ▉ ▗ ▏ ▇▆
▊ ▟ ▉ ▆ ▖
▊ ▉ ▌ ▂
▊ ▏ ▉ ▌ ▗ ▄▟
▊ ▆
5 years ago
Behdad Esfahbod
fa7edf87c9
[bsearch] Massage API some more
5 years ago
Behdad Esfahbod
70aa5071d8
[algs] Adjust return value of hb_ctz(0) to be 32 instead of 0
5 years ago
Behdad Esfahbod
eefb78f674
Minor
5 years ago
Behdad Esfahbod
9fb030585a
Rename start/end to first/last in RangeRecord
...
Because that's what they are.
5 years ago
Evgeniy Reizner
8ac4ba14dc
Fix typo in TESTING.md ( #2066 )
5 years ago
Ebrahim Byagowi
9b1d5c4a59
[number] fix where strtod_l not available
5 years ago
Ebrahim Byagowi
5c8f960289
[number] minor, include the renamed header
5 years ago
Behdad Esfahbod
48eef2724c
[algs/array] Consolidate the last two bsearch implementations!
...
Yay! Seems to work.
5 years ago
Behdad Esfahbod
ed35dea8c0
Fourth try... sighs
5 years ago
Behdad Esfahbod
9168310bb4
Fix build, third times...
5 years ago
Behdad Esfahbod
34f5cc2cc8
Second try at fixing build
5 years ago
Behdad Esfahbod
14ce5ab0b7
First try at fixing build errors
5 years ago
Behdad Esfahbod
2274270c6a
[algs] Streamline bsearch some more
5 years ago
Behdad Esfahbod
bd55d4b49f
[algs] Streamline bsearch() API more towards hb_array_t::bsearch_impl()
...
Preparing to merge the two finally!
5 years ago
Behdad Esfahbod
fd6df520a1
[array] Isolate bsearch implementation more
5 years ago
Behdad Esfahbod
06d3c2019f
[array] Simplify bfind() positioning
...
I had copied the old scheme from fontconfig's fccharset.c. I just
convinced myself that this change is correct and produces exact
same results. But I also am skeptical. Anyone else feel like
convincing themselves as well please?
5 years ago
Ebrahim Byagowi
d67ba649a3
Rename hb_array_t::in_range to hb_array_t::check_range
5 years ago
Ebrahim Byagowi
72d83a0280
Make hb_array_t::in_range similar to hb_sanitize_context_t::check_range
5 years ago