src


Log

Author Commit Date CI Message
Ben Wagner 94e421ab 2018-10-25T13:44:27 Remove some use of Crap in hb-set. When hb_set_t::page_for_insert needs to insert at the end of the page_map it ends up evaluating '&page_map[i + 1]' which has hb_vector return an lvalue of a Crap so that nothing can be moved to its address. This turns into issues with ThreadSanitizer on Crap when two threads modify different hb_set_t instances. This can be avoided by using '&page_map[i] + 1' instead.
Behdad Esfahbod ae9e8f29 2018-10-24T16:46:07 [vowel-constraints] Reset continuation on all dottedcircles One of the was missed before. Not intentional.
Behdad Esfahbod 401cdf07 2018-10-23T17:00:49 [ot-font] Fix sign of ascent/descent Some fonts, like msmincho, have positive number as descent in vhea table. That's wrong. Just enforce sign on ascent/descent when reading both horizontal and vertical metrics. Fixes https://github.com/harfbuzz/harfbuzz/issues/1248
Behdad Esfahbod ba502dea 2018-10-23T16:46:10 [morx] Fix cluster-merging when ligating Only merge when actual ligature happened. Fixes https://github.com/harfbuzz/harfbuzz/issues/1305
Garret Rieger aa5af8d0 2018-10-23T15:45:35 Fix size calculation in DEFINE_SIZE_ARRAY_SIZED.
Behdad Esfahbod f33ad6d6 2018-10-23T14:31:51 [aat] Fix up previous commit and add files
Behdad Esfahbod ffe34784 2018-10-23T14:14:03 [aat] Allow enabling/disabling features Only works at entire-buffer range, not sub-ranges. Test with: $ hb-shape Zapfino.dfont Zapfino [Z_a_p_f_i_n_o=0+2333] $ hb-shape Zapfino.dfont Zapfino --features=-dlig [Z=0+416|a=1@-21,0+264|p_f=2+433|i=4+181|n=5+261|o=6+250] $ hb-shape Zapfino.dfont Zapfino --features=+dlig [Z_a_p_f_i_n_o=0+2333] Fixes https://github.com/harfbuzz/harfbuzz/issues/1303
Behdad Esfahbod 8be0e5fd 2018-10-23T13:39:50 [ot-map] Minor
Behdad Esfahbod e8fccbc3 2018-10-23T13:25:03 Minor
Behdad Esfahbod 76324d95 2018-10-23T13:09:30 Shift code around
Behdad Esfahbod cf92d657 2018-10-23T03:10:56 [trak] Allow disabling tracking for ranges of text Fixes https://github.com/harfbuzz/harfbuzz/issues/1303
Behdad Esfahbod 8869436c 2018-10-23T03:07:48 When parsing feature ranges, accept ';' instead of ':'
Ebrahim Byagowi 22ecefd8 2018-10-23T00:52:05 Make tracking optout possible using 'trak' ot feature So '--features=-trak' or 'font-feature-settings: 'trak' 0;' can prevent applying of tracking if used.
Behdad Esfahbod 6d40eb83 2018-10-23T02:51:42 Touch up on previous commit https://github.com/harfbuzz/harfbuzz/pull/1273
David Corbett 205737ac 2018-10-12T16:54:54 [use] Prohibit visually ambiguous vowel sequences
Behdad Esfahbod 48ed598a 2018-10-23T02:19:32 [VORG] Hook up to hb-ot-font's v_origin Fixes https://github.com/harfbuzz/harfbuzz/issues/544 Test added with NotoSansCJK, eg. with U+FF38.
Behdad Esfahbod 097ecfd4 2018-10-23T02:09:42 [VORG] Add get_y_origin() Unhooked.
Behdad Esfahbod 6fb24d5e 2018-10-23T01:58:59 [VORG] Add VORG table Cherry-picked from cff-subset branch.
Behdad Esfahbod 531f9822 2018-10-23T01:32:08 [morx] Add a few debug messages to Ligature chain
Behdad Esfahbod 0e5bcdef 2018-10-23T00:39:44 [morx] Clear stack upon underflow when acting ligatures
Behdad Esfahbod 792071de 2018-10-22T23:38:34 [morx] Leave ligature on stack after ligating Test with Apple Color Emoji.ttf of ~66MB and following sequence: ./hb-shape Apple\ Color\ Emoji-old.ttf --font-funcs=ot -u U+1F468,200d,U+1F469,200d,U+1F467,200d,1f466 Should form full family if matching works correctly. It first makes family of three, then makes family of four out of that and the last two characters. Fixes https://github.com/harfbuzz/harfbuzz/issues/1292
Behdad Esfahbod 8c78ced9 2018-10-22T21:49:42 Unbreak builds
Behdad Esfahbod 8d689f8a 2018-10-22T21:33:18 Add hb_array<>() specialization for UnsizedArrayOf Related https://github.com/harfbuzz/harfbuzz/issues/1301
Behdad Esfahbod abfbba19 2018-10-22T21:27:45 Add hb_array<>() Simplifies transient object creation. Fixes https://github.com/harfbuzz/harfbuzz/issues/1301
Behdad Esfahbod 17ffbc07 2018-10-22T21:22:25 [color] Use Index for colorIdx Doesn't matter, but matches the description.
Behdad Esfahbod 07386ea4 2018-10-22T21:18:27 Remove const and references when binding Null() Fixes https://github.com/harfbuzz/harfbuzz/issues/1299 Removes anomaly I was seeing in cpal table trying to use implicit Null(NameID).
Behdad Esfahbod b18acab7 2018-10-22T18:20:57 [color] Add HB_COLOR Normally I would have added to_string / from_string like other types have. But since we don't use hb_color_t much, I'm not going to do that. Although, if we did, we could use it in hb-view to parse colors...
Behdad Esfahbod 228f96c9 2018-10-22T16:55:12 [color] Finish reviewing / revamping CPAL Now to hb_color_t.
Behdad Esfahbod 683fad06 2018-10-22T16:35:03 [color] Minor
Behdad Esfahbod 14474d21 2018-10-22T16:30:30 [color] Rely on CPALV1Tail Null object
Behdad Esfahbod d7865107 2018-10-22T16:18:34 Remove const from hb_array_t details Will come in through <T> if desired.
Behdad Esfahbod f3336580 2018-10-22T16:16:21 [color] Use hb_array_t in CPAL Doesn't work though, ouch :(. Need to figure out if it's unreasonable to expect Null(T) inside hb_array_t<T> to see the later specialization of Null for NameID.
Behdad Esfahbod 5ae18855 2018-10-22T14:54:55 [color] Check for null CPAL arrays We cannot use a nullable offset here though.
Behdad Esfahbod 69ab72e4 2018-10-22T14:51:40 [color] More CPAL rename
Behdad Esfahbod 0befb06c 2018-10-22T14:46:21 [color] More CPAL rename
Behdad Esfahbod 3600d206 2018-10-22T14:43:12 [color] Rename vars in CPAL
Ebrahim Byagowi 0babf761 2018-10-23T01:33:45 Adopt dump-emoji with latest unreleased APIs changes (#1297)
Behdad Esfahbod 7997144b 2018-10-22T13:02:04 [color] Revamp palette API
Behdad Esfahbod 3bf91bd2 2018-10-22T12:40:38 [color] Rewrite colr access COLR table has one function: return layers for a glyph, and we expose exactly that, so should just wire it through. Also use sub_array() for verifiable safety. Also, BaseGlyphRecord's null object is enough. We don't need to special-case the not-found.
Behdad Esfahbod 1de17bdb 2018-10-22T10:29:01 [colr] Add hb_ot_color_layer_t We never return parallel arrays from functions. That's inconvenient and hard to bind.
Behdad Esfahbod 3b3668ac 2018-10-21T19:23:11 [color] Rename / reorder a bit Implement has_data() for realz.
Behdad Esfahbod 9085a72d 2018-10-21T19:08:25 [cpal] Touch up palette flags
Behdad Esfahbod ee11fae9 2018-10-21T19:02:47 [color] Rename "gid" to "glyph" We don't expose "gid" in API.
Behdad Esfahbod 228fa71b 2018-10-21T17:43:29 [colr] Move sanitize
Ebrahim Byagowi d440c8d3 2018-10-22T22:07:59 Add chromacheck Emoji test fonts and minor preparations (#1294)
Ebrahim Byagowi d4261b4b 2018-10-21T08:48:07 Add API test for hb_ot_color_get_color_layers
Ebrahim Byagowi 456978d4 2018-10-21T08:26:40 Address COLR/CPAL reviews and revive cpal_v1 tests
Ebrahim Byagowi 687f679b 2018-10-20T17:50:39 [color] Fix alpha channel value and adjust spaces
Ebrahim Byagowi 00e94ce2 2018-10-20T00:31:04 [dump-emoji] Formatting
Ebrahim Byagowi e8a6f5b8 2018-10-19T18:23:42 Add three macros for separating color channels
Khaled Hosny d4e928b1 2018-05-01T17:16:46 [color] Minimal API for COLR/CPAL
Behdad Esfahbod b92b9d7e 2018-10-21T17:42:51 [colr] Move compare function into a static Not sure if MSVC would be unhappy about this.
Behdad Esfahbod b6b17173 2018-10-21T17:41:49 [colr] Minor
Behdad Esfahbod a6ade347 2018-10-21T17:39:39 [colr] Move sanitize() to right place Sanitize always comes just before data member definitions, so it's easy to cross-check.
Behdad Esfahbod 24adc157 2018-10-21T17:39:00 [colr] Touch up a bit When a struct is plain old data with no references, etc, it's okay to mark its members public.
Khaled Hosny cc6e77ca 2018-10-21T13:29:40 [color] Fix documentation a bit
Ebrahim Byagowi 37ba2413 2018-10-21T11:46:51 Minor
Ebrahim Byagowi 44f79b4b 2018-10-21T10:17:34 Remove _palette_entry_count as can be done with _palette_colors
Ebrahim Byagowi 6795dcfc 2018-10-21T09:51:15 [test] Test hb_ot_color_has_{colr,cpal}_data
Ebrahim Byagowi b8ee3a0e 2018-10-21T09:44:16 [CPAL] Add palette entry and enable palette flag API
Behdad Esfahbod 1e39833b 2018-10-20T16:56:06 [docs] Minor
Behdad Esfahbod a5ad8c65 2018-10-20T16:52:55 [docs] More fixes
Behdad Esfahbod 314b1af7 2018-10-20T16:49:16 [docs] Fix warning Fixes https://github.com/harfbuzz/harfbuzz/issues/1260
Behdad Esfahbod b713c139 2018-10-20T14:56:28 [kerx] Implement tuple-kerning in Format0
Behdad Esfahbod 0a3b7a0f 2018-10-20T13:14:07 2.0.2
Behdad Esfahbod 68b70507 2018-10-20T12:09:41 [kerx] Fix sanitize of KerxSubtableFormat2::array read Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11033
Behdad Esfahbod 00fdbca4 2018-10-20T12:04:51 [aat] Fix LookupFormat10 sanitize Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11060
Ebrahim Byagowi 1e55e21d 2018-10-20T07:45:46 Merge pull request #1283 from khaledhosny/cygwin Cygwin fixes and CI build
Behdad Esfahbod 7c2c8ac3 2018-10-19T19:37:46 2.0.1
Bruce Mitchener 5a24ea15 2018-10-20T08:09:52 Make more 'coords' params const.
Behdad Esfahbod 08b71729 2018-10-19T19:12:33 [font] Fix parallel funcs passing to eachover in infinite-loop Fixes test just added.
Behdad Esfahbod 29d87751 2018-10-19T16:06:54 [kerx] Implement variation-kerning tables (without the variation part) SFSNDisplay uses these. We just apply the default kern without variations right now. But at least makes the default kern work.
Behdad Esfahbod f7c0b431 2018-10-19T15:23:49 [aat] Implement LookupFormat10
Khaled Hosny 30cbe615 2018-10-19T22:04:56 Use O_BINARY instead of _O_BINARY Cygwin does not seem to have the later
Behdad Esfahbod 79b63561 2018-10-19T11:00:20 [trak] Fix extrapolation at end side
Behdad Esfahbod 2352cc35 2018-10-19T09:58:45 [kerx] Whitespace
Ebrahim Byagowi 114f66dd 2018-10-19T12:05:26 Fix hb_map_is_empty logic This needs reviewing
Ebrahim Byagowi 9df2fb16 2018-10-19T12:04:47 Add API tests for hb_map_t
Ebrahim Byagowi c6eb5e85 2018-10-19T10:14:25 Don't report deprecated symbols as unused symbols
Bruce Mitchener 4594730f 2018-10-19T22:12:25 Remove redundant return at end of void-returning function.
Bruce Mitchener 8d1e479d 2018-10-18T22:18:42 Use bool literals instead of 0/1.
Bruce Mitchener 257d0e5a 2018-10-19T22:49:21 Fix typos.
Behdad Esfahbod 3d9a0306 2018-10-18T05:58:17 2.0.0
Ebrahim Byagowi 03e14413 2018-10-18T11:06:37 [ubsan] Use unsigned int instead enum where needed (#1270) Actually the check is right, On -myanmar.hh, on that particular switch, OT_C is indic_category_t but OT_D is myanmar_category_t so we are mixing the types in one variable. And on -arabic.cc, step can goes one number higher than step_t enum in the loop so we are actually using it as an unsinged int.
Behdad Esfahbod f1ced9be 2018-10-17T23:06:53 More warning fix Okay, let's see if the gods are happy now...
Behdad Esfahbod 40606abd 2018-10-17T23:06:37 Fix build
Behdad Esfahbod c406aca1 2018-10-17T22:58:43 Fix warning
Behdad Esfahbod 270a37c3 2018-10-17T22:42:47 Kick bots
Behdad Esfahbod 6da8ef3f 2018-10-17T22:37:34 Fix some wierdness...
Behdad Esfahbod 83780308 2018-10-17T22:34:16 [aat] Fix sanitize slowdown Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11034
Behdad Esfahbod 9e8a9b84 2018-10-17T21:41:25 [aat] Another try at fixing Lookup null objects... Ugly as hell, and don't even understand why some bits are needed. But the logic is sound.
Behdad Esfahbod 9d42d702 2018-10-17T17:55:47 [trak] Fix calc We were getting the first track record always. Ie. this line: if (trackTable[i].get_track_value () == 0.f) { - trackTableEntry = &trackTable[0]; + trackTableEntry = &trackTable[i]; break; } The rest is cleanup. Fixes https://github.com/harfbuzz/harfbuzz/issues/1263 for the most part.
Behdad Esfahbod 2e7c7165 2018-10-16T18:35:03 [buffer] Add an assert See if it helps debugging https://bugs.chromium.org/p/chromium/issues/detail?id=895117
Behdad Esfahbod 25fe7e7e 2018-10-16T18:22:54 [aat] Comment
HinTak 26092bb3 2018-10-17T00:54:39 "allow-none" annotation for "out" parameters Fixes the following warnings: hb-ot-tag.cc:330: Warning: HarfBuzz: invalid "allow-none" annotation: only valid for pointer types and out parameters hb-ot-tag.cc:334: Warning: HarfBuzz: invalid "allow-none" annotation: only valid for pointer types and out parameters
HinTak 49bdb544 2018-10-17T00:36:04 typo in gobject annotation - "in/out" should be "inout" "in/out" should be "inout"
Behdad Esfahbod 36f38ea7 2018-10-16T16:24:03 [gpos] Protect mark attachment against out-of-bounds Not sure how can happen, but does...
Behdad Esfahbod 12cbe195 2018-10-16T16:13:53 [aat] Another non-null offset
Behdad Esfahbod 87205ef9 2018-10-16T15:40:44 [aat] Make sure Lookup offset is never nulled It has unbounded size... Fixes https://oss-fuzz.com/v2/testcase-detail/5718889451749376
Behdad Esfahbod 2137582c 2018-10-16T14:46:07 [morx] Reword ligation Still fails MORX-41. Am talking to Sascha to better understand what CoreText is doing.