Ebrahim Byagowi
ac3518af58
Define post table only when used
2019-07-20 12:09:26 -07:00
Ebrahim Byagowi
471f798ace
Merge ot-metrics-internal.cc with ot-metrics now that isn't needed in subset
2019-07-20 12:09:26 -07:00
Ebrahim Byagowi
29444d7e9f
Don't cache ascender/descender metrics
2019-07-20 12:09:26 -07:00
Ebrahim Byagowi
5e28c2654d
[doc] minor, improve hb-ot-metrics doc a bit
2019-07-20 14:08:11 +04:30
Ebrahim Byagowi
ac8b6e330a
Merge pull request #1844 from ebraminio/hhea
...
Fallback hhea's ascender/descender to OS2
2019-07-20 13:16:16 +04:30
Ebrahim Byagowi
08b48e89d3
[os2] minor spacing tweaks
2019-07-20 12:53:40 +04:30
Ebrahim Byagowi
54b9ab704d
Fallback hhea's ascender/descender to OS2
2019-07-20 12:51:38 +04:30
Behdad Esfahbod
ec8dde8142
[metrics] Fall back to hhea if OS2 metrics are empty
...
Reinstates previous logic, even if it might be unnecessary.
2019-07-19 11:14:20 -07:00
Ebrahim Byagowi
2e5b49d11d
Add HB_NO_METRICS and fix HB_TINY build ( #1839 )
2019-07-19 11:41:07 +04:30
Ebrahim Byagowi
bdfdac0f26
[ci][fuzzer] print valgrind failure if an error happened
2019-07-19 10:33:00 +04:30
Behdad Esfahbod
2bd953ff4f
[metrics] Fix weird use of xor
...
I believe that was a try to use one approach as fallback to other. But
felt wrong. Just believe what's in OS/2 table to be correct.
2019-07-18 14:25:45 -07:00
Behdad Esfahbod
9675a067bf
[ot-metrics] Touch up
2019-07-18 14:16:11 -07:00
Ebrahim Byagowi
87e628436e
Implement a simple API for fetching opentype metrics
...
Fixes https://github.com/harfbuzz/harfbuzz/pull/1432
2019-07-18 14:15:58 -07:00
David Corbett
ed67efcc8c
Revert "[Myanmar] Prevent reordering between Asat and Dot below"
...
This reverts commit 1c8654ead4
.
2019-07-18 10:42:20 -07:00
Ebrahim Byagowi
504bb17287
[ci] Bring back -linux-arm64 bot
...
Let's see if 576065b
has fixed it
2019-07-17 22:57:46 +04:30
Behdad Esfahbod
6157bbe512
Revert "Revert previous change"
...
This reverts commit b8e90ca1a1
.
Works now.
2019-07-17 11:20:08 -07:00
Behdad Esfahbod
576065b442
[iter] Fix reduce type deduction
2019-07-17 11:19:34 -07:00
Ebrahim Byagowi
4552864c82
[ci] Disable -linux-arm64 bot
...
This is its failure https://circleci.com/gh/harfbuzz/harfbuzz/99864
Trying to fix like ee05627
, interestingly, makes the bot and the
others to fail like this https://circleci.com/gh/harfbuzz/harfbuzz/99841
2019-07-17 22:08:39 +04:30
Ebrahim Byagowi
b8e90ca1a1
Revert previous change
...
Interestingly all of the bots disagreed with the change and the complain is... weird.
2019-07-17 21:38:19 +04:30
Ebrahim Byagowi
ee05627aff
Improve syntax to make out linux-arm64 a little happy
...
Decided to apply is we did the same on other places however this won't
fix all of its complains
2019-07-17 21:28:25 +04:30
Ebrahim Byagowi
6a6bf7b7bc
Downgrade -Wdeprecated-declarations to warning
...
Fixes #1834 at least till fix of #1829
2019-07-17 21:22:38 +04:30
Behdad Esfahbod
25e2562fdf
[amalgam] Fix redundant-declaration warning/error
2019-07-17 09:35:56 -07:00
Ali Javadi
c184180228
Fix C++20 compile warning on implicit capture of this with '=' default capture ( #1833 )
...
Happens when compiled with -std=c++2a, the fix just makes the captures explicit to resolve the issue. Just adding this in addition to = doesn't work in C++11.
src/hb-ot-layout-gpos-table.hh:737:18: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture]
{ return (this+_).intersects (glyphs, valueFormat); })
^
src/hb-ot-layout-gpos-table.hh:736:16: note: add an explicit capture of 'this' to capture '*this' by reference
| hb_map ([=] (const OffsetTo<PairSet> &_)
^
, this
2019-07-16 22:10:24 +04:30
Ebrahim Byagowi
1f94388516
[usp] define atfree callback only if used
2019-07-16 11:24:29 +04:30
Qunxin Liu
1da1b4dc94
[subset] For option "--unicodes", add support for "*" to retain all code points
2019-07-15 11:18:50 -07:00
Behdad Esfahbod
4730b350b7
Revert "Update Graphite API to latest ( #1215 )"
...
This reverts commit e4e74c2751
.
See https://github.com/harfbuzz/harfbuzz/issues/1829
2019-07-12 15:38:35 -07:00
Ebrahim Byagowi
f8242b61ab
[fuzz] Increase subset runner timeout for tsan bot
...
Now is flaky let's just increase and maybe investigate later
2019-07-11 15:10:36 +04:30
Ebrahim Byagowi
b65bad18aa
[fuzz] Don't fail when blob is empty
...
And enable more tests able to trig the issue.
2019-07-11 14:31:55 +04:30
Ebrahim Byagowi
7a9d643c29
Fix unintialized memory read in cmap subset ( #1826 )
2019-07-11 01:35:07 +04:30
Ebrahim Byagowi
a6065d05cf
Don't call memcpy when a table is empty
2019-07-10 23:38:07 +04:30
Ebrahim Byagowi
c85f624b51
Force blob generation and memory check in hb-subset-fuzzer
2019-07-10 23:38:07 +04:30
Dominik Röttsches
2e7021da7d
Revert "Minor" - revert moving extern "C" definitions in-function
...
This reverts commit 62e60322cb
since it
breaks building HarfBuzz as part of Chromium.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1821 .
2019-07-08 10:51:47 +03:00
Behdad Esfahbod
f18ea1dd3a
[font] Remove division when scaling
...
Yoohoo. This seems to be precise enough! Let's see if it sticks.
I'm asking Dominik to run this in Chrome test suite and report.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1801
2019-07-05 13:56:45 -07:00
Behdad Esfahbod
b847769292
[font] Keep font-space to user-space multiplier
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1801
2019-07-05 13:52:09 -07:00
Behdad Esfahbod
df6edcd44c
Make face immutable in hb_font_set_face()
2019-07-05 13:45:15 -07:00
Behdad Esfahbod
0d425e1eea
[ot-font] Optimize rounding
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1801
The assumption that compiler optimizes "upem/2" to a shift only
works if upem is unsigned... Anyway, spoon-feed the compiler.
2019-07-05 13:42:02 -07:00
Simon Sapin
144326e215
Clusters are reversed based on the direction, not script
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1818
2019-07-05 10:07:07 -07:00
Simon Sapin
cf1a782a5c
Docs: fix a typo in function name
2019-07-05 08:10:11 -07:00
Simon Sapin
ffa736f151
hb_set_previous_range docs: fix presumed copy/paste error
2019-07-05 08:09:25 -07:00
Simon Sapin
641f337380
Docs typo fix: slower → lower
2019-07-05 08:09:09 -07:00
Ebrahim Byagowi
9fea6b4dd4
[amalgam] Use it in cmake port and fix conflicts ( #1812 )
2019-07-05 18:46:41 +04:30
Behdad Esfahbod
b240d701fd
[amalgam] Include integration source files as well
...
Just for those that are normally built into libharfbuzz itself.
Part of https://github.com/harfbuzz/harfbuzz/issues/1809
2019-07-03 12:17:57 -07:00
Behdad Esfahbod
d515242045
[amalgam] Rename hb.cc to harfbuzz.cc
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1809
2019-07-03 12:10:03 -07:00
Behdad Esfahbod
4cb180d227
Revert "Use constexpr to replace passthru_ bools"
...
This reverts commit c4aa10ebc8
.
Broke several compilers... Sigh. The version without constexpr
didn't fully optimize out the unreachable code on clang.
So, revert it is...
2019-07-02 19:44:18 -07:00
Behdad Esfahbod
c4aa10ebc8
Use constexpr to replace passthru_ bools
2019-07-02 19:15:03 -07:00
Behdad Esfahbod
2e48fd0779
Sprinkle constexpr around
...
Being conservative. Also not sure it makes any real difference
in our codebase.
2019-07-02 17:55:58 -07:00
Behdad Esfahbod
df4448064e
Remove unused 'inline' specifier
2019-07-02 17:11:09 -07:00
Behdad Esfahbod
04a4957040
[amalgam] Add hb.cc to git
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1809
2019-07-02 16:19:18 -07:00
Behdad Esfahbod
62e60322cb
Minor
2019-07-02 16:08:53 -07:00
Behdad Esfahbod
ceb4c212dc
[amalgam] Fix UCD issue
...
This actually makes it build now!
Part https://github.com/harfbuzz/harfbuzz/issues/1809
Keeping open to add tests, CI, etc.
2019-07-02 16:08:53 -07:00