Behdad Esfahbod
661340c475
[kern] Scale kern pairs before applying
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1255
Fixes https://github.com/harfbuzz/harfbuzz/issues/1252
6 years ago
Behdad Esfahbod
de0b9a4664
[vector] More of the same
6 years ago
Behdad Esfahbod
921f0e6ec7
[vector] Simplify sort
...
Hopefully this fits fine with SFINAE with all our compilers.
6 years ago
Ebrahim Byagowi
61510b63c1
[test] Minor cleanup in test-multithread and test-ot-name ( #1256 )
6 years ago
Ebrahim Byagowi
42b75dc3a7
[kerx] Minor, remove debug bit
6 years ago
Behdad Esfahbod
11703afce6
[kerx] Fix Format6 sanitize
...
Fixes https://oss-fuzz.com/v2/testcase-detail/5650286710882304
6 years ago
Behdad Esfahbod
4c27da7638
[CBDT] Fix more offsetting
...
Fixes https://oss-fuzz.com/v2/testcase-detail/5750379279548416
6 years ago
Behdad Esfahbod
0f85edb778
[morx] Another end-of-text corner case
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10990
6 years ago
Behdad Esfahbod
55d5ea666c
[kerx] Merge clusters in Ligature
6 years ago
Behdad Esfahbod
bb35725cd7
[kerx/morx] More end-of-text protection
6 years ago
Ebrahim Byagowi
8f3048a1f8
[dump-emoji] minor
6 years ago
Ebrahim Byagowi
27e095a613
[dump-emoji] better explaination of the usage
6 years ago
Behdad Esfahbod
8dc6296818
[ot-font] Implement TrueType v_origin
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/537
6 years ago
Behdad Esfahbod
6e07076fd0
[blob] Fix UBSan error
6 years ago
Behdad Esfahbod
fc812faaa9
[CBDT] Fix more offsetting issues
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/960
dump-emoji still segfaults. Needs debugging.
6 years ago
Behdad Esfahbod
6aee3bb87c
[CBDT] Fix offset handling
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/960
6 years ago
Behdad Esfahbod
da744c6b3e
[CBDT] More UnsizedArrayOf cleanup
6 years ago
Behdad Esfahbod
2995b4465b
[CBDT] Simplify sanitize
6 years ago
Behdad Esfahbod
1c76c8f6ff
[morx] Handle end-of-text conditions in Insertion
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10955
6 years ago
Behdad Esfahbod
60c1397673
[buffer] Fix output_glyph at end of buffer
...
Part of https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10955
6 years ago
Behdad Esfahbod
7efa38257b
[aat] More protection against buffer fail
6 years ago
Behdad Esfahbod
e1add2a275
[hmtx] Whitespace
6 years ago
Behdad Esfahbod
62376a7d98
Ignore signed-integer-overflow while kerning
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1247
6 years ago
Behdad Esfahbod
40f2b9355c
[kerx] Fix Format1 sanitize
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10948
6 years ago
Behdad Esfahbod
44af1f93ee
[aat] Whitespace
6 years ago
Behdad Esfahbod
56b8dd17f6
[aat] Finish off massaging table
6 years ago
Behdad Esfahbod
e0c5e0d91b
[aat] WIP remove feature mapping here from hb-coretext
...
Need to map enum values to numerics since we don't have CoreText headers.
6 years ago
Behdad Esfahbod
cb05774913
[coretext] Prepare AAT feature mapping to be moved
6 years ago
Behdad Esfahbod
de6e414c56
[kerx] Sanitize more
6 years ago
Behdad Esfahbod
71f76f2f39
[kerx] Fix-up previous commit
...
A "&" was missing. Go back to using pointers that are less error-prone.
6 years ago
Behdad Esfahbod
6d4b054234
[kerx] Use sanitizer instead of handcoded runtime sanitization
6 years ago
Behdad Esfahbod
5733113662
[kerx] Wire up context down to get_kerning
6 years ago
Behdad Esfahbod
c4502833b7
[kerx] Use sanitizer.get_num_glyphs() instead of face->get_num_glyphs()
6 years ago
Behdad Esfahbod
fc45e698f2
[kerx] Protext against overflows
6 years ago
Behdad Esfahbod
ed2ee78136
[hangul] Fix use-after-free issue
...
out_info might have moved since we copied it's position into local
info var.
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=894937
6 years ago
Ebrahim Byagowi
63109432cf
Cosmetic and minor changes
6 years ago
Behdad Esfahbod
c0a6814b49
Touch up new API
...
New API:
+hb_ot_layout_feature_get_name_ids()
+hb_ot_layout_feature_get_characters()
6 years ago
Behdad Esfahbod
477bc9aafe
Add hb-ot-name.h
...
Actual name-fetching API to come later.
New API:
hb_name_id_t
HB_NAME_ID_INVALID
6 years ago
Ebrahim Byagowi
dc49bd8d81
Add two APIs for getting stylistic set labels
...
* hb_ot_layout_feature_get_characters
* hb_ot_layout_feature_get_name_ids
However HarfBuzz currently doesn't expose an API for retrieving the actual
information associated with NameId from the `name` table and that should be
done separately.
6 years ago
Behdad Esfahbod
e9f9c0d81c
[sanitize] Reorder condition to silence bogus gcc warning
...
Was givin a dozen of:
../../src/hb-machinery.hh: In member function ‘bool AAT::ankr::sanitize(hb_sanitize_context_t*) const’:
../../src/hb-machinery.hh:307:23: warning: missed loop optimization, the loop counter may overflow [-Wunsafe-loop-optimizations]
bool ok = --this->max_ops > 0 &&
~~~~~~~~~~~~~~~~~~~~~~
this->start <= p &&
~~~~~~~~~~~~~~~~~~~
p <= this->end &&
~~~~~~~~~~~~~~~^~
(unsigned int) (this->end - p) >= len;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I believe those are bogus, but this silences them and does not introduce
logic issues I believe.
6 years ago
Behdad Esfahbod
1a6b5ac6c3
Add HB_DEPRECATED_FOR and mark relevant symbols
6 years ago
Behdad Esfahbod
c9413d7bb5
[graphite] Add HB_DEPRECATED annotation
6 years ago
Behdad Esfahbod
68c86af187
Always compile deprecated symbols
...
We haven't been keeping this updated. So, while we don't expose the
symbols in the headers if HB_DISABLE_DEPRECATED is defined, we still
always build them.
6 years ago
David Corbett
c55100000b
Add missing colons to GObject annotations
6 years ago
David Corbett
1e816d62ef
Fix Indic script tags in Graphite
6 years ago
Behdad Esfahbod
bf8469be9a
Attach CursivePositioning backwards, not forward
...
This is how Uniscribe does it. So, adjust. This is only relevant
to fonts that apply cursive positioning from a contextual lookup.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1181
6 years ago
Behdad Esfahbod
bdb53ca24a
[myanmar] Implement Zawgyi shaper
...
Enabled if script tag 'Qaag' is passed to HarfBuzz. Disables mark
advance-zeroing and fallback mark-positioning.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1162
6 years ago
Behdad Esfahbod
00c5c4a79d
[myanmar] Shuffle
6 years ago
Behdad Esfahbod
ec8f493bf9
[graphite] Remove assert
6 years ago
Behdad Esfahbod
5646dcbd11
Minor
6 years ago