src/hb-coretext.cc


Log

Author Commit Date CI Message
Behdad Esfahbod 3a4e5dd4 2018-10-29T18:05:25 Remove a few unnecessary hb_auto_t<>'s See a85641446c30247c4e948263f0f8c1147ed4efb9
Behdad Esfahbod 04981ee0 2018-10-27T04:40:43 [docs] More
Behdad Esfahbod 955aa56b 2018-10-25T16:50:38 [vector] Make it act more like pointer Add pointer cast operator and plus operator.
Bruce Mitchener 8d1e479d 2018-10-18T22:18:42 Use bool literals instead of 0/1.
Behdad Esfahbod e0c5e0d9 2018-10-13T18:37:14 [aat] WIP remove feature mapping here from hb-coretext Need to map enum values to numerics since we don't have CoreText headers.
Behdad Esfahbod cb057749 2018-10-13T17:03:32 [coretext] Prepare AAT feature mapping to be moved
Behdad Esfahbod b2e398c0 2018-10-07T16:31:33 [coretext] Fix OS X check Fixes https://github.com/harfbuzz/harfbuzz/issues/1230
Behdad Esfahbod 0816a549 2018-10-06T02:40:57 [uniscribe/coretext] Fix for previous change
Behdad Esfahbod 03fb6dd4 2018-10-03T21:02:16 Rewrite grapheme-formation in terms of new work Also, don't attach ZWNJ to previous cluster. Closer to Unicode graphemes.
Behdad Esfahbod 824111d4 2018-09-25T12:47:37 Fix iOS build Fixes https://github.com/harfbuzz/harfbuzz/pull/1179
Behdad Esfahbod 7671cb9b 2018-09-19T17:10:26 [coretext] Minor
Behdad Esfahbod 606bf574 2018-09-16T19:33:48 Revert forcing use of single-parameter static_assert() Some clang versions define static_assert as a macro apparently, so we cannot redefine it... This reverts commit 94bfea0ce6a7b4d5641c198d50751748a353df11. This reverts commit 4e62627831e7457ed60ff87712570065b14b200a.
Behdad Esfahbod 4e626278 2018-09-16T18:09:36 Enforce single-param static_assert() only So we don't accidentally break it again.
Behdad Esfahbod c77ae408 2018-08-25T22:36:36 Rename hb-*private.hh to hb-*.hh Sorry for the noise, downstream custom builders. Please adjust.
Behdad Esfahbod 652cd45c 2018-08-09T01:02:02 [coretext] Another try
Behdad Esfahbod 3f3585ca 2018-08-09T00:58:17 Fix coretext build (hopefully)
Behdad Esfahbod 3d22aefe 2018-08-01T18:03:32 Rename
Behdad Esfahbod be458eb0 2018-07-10T14:41:04 Include more basic internal headers from hb-private.hh
Behdad Esfahbod f7515769 2018-06-01T17:48:37 [vector] Use Crap pool in push() as well
Behdad Esfahbod 65aeabd6 2018-05-23T16:15:28 Add hb_vector_t::push(const Type &v) Makes for cleaner code.
Ebrahim Byagowi 93bdf9b2 2018-05-09T23:24:17 Use arrayZ on hb-coretext and hb-uniscribe and fix macOS/Win bots (#1024) Following to 63f57f4
Behdad Esfahbod 37b95612 2018-05-01T19:09:00 Remove hb_auto_array_t Part of https://github.com/harfbuzz/harfbuzz/issues/1017
Ebrahim Byagowi 8b0d642e 2018-04-23T18:37:35 Resolve some of clang's zero-as-null-pointer-constant warnings
Ebrahim Byagowi f24b0b97 2018-04-12T13:40:45 Update the links and revive the dead ones
Ryan Schmidt 58e569e5 2018-04-05T17:03:36 Fix build with CoreText on OS X 10.7 and earlier (#952)
David Corbett 21646cc4 2018-02-16T12:08:55 Do not mark the first glyph as unsafe to break Fixes #791.
Bruce Mitchener dae20fb5 2018-01-31T20:16:08 Use nullptr instead of 0.
Bruce Mitchener 90218fa9 2018-01-31T20:44:45 Fix typos.
Bruce Mitchener 0c66043a 2018-01-31T20:24:27 [coretext] Fix memory leaks. In `reference_table`, if the data is empty and we return early, we still need to release the data object. In `hb_coretext_shape`, there two edge cases where an early return should release the attributed string.
Behdad Esfahbod 1245395a 2017-12-17T12:32:33 [coretext] In hb_coretext_font_create() set ptem Otherwise setting the CTFont was ineffective as it would have been recreated anyway unless font size was set to 18 CSS points.
Behdad Esfahbod d5e29303 2017-11-28T23:11:34 [coretext] Add hb_coretext_font_create() Fixes https://github.com/harfbuzz/harfbuzz/issues/628 New API: hb_coretext_font_create()
ebraminio 7c6937e7 2017-11-20T14:49:22 Move all references of old url to the new address (#622)
Behdad Esfahbod e4da3802 2017-11-10T17:14:27 [coretext/uniscribe/directwrite/graphite/fallback] Update for unsafe-to-break Fixes https://github.com/behdad/harfbuzz/issues/615 We'll see which bots I broke.
Behdad Esfahbod 40ec3bbb 2017-11-03T16:57:30 Consolidate debug stuff into hb-debug.hh Part of fixing https://github.com/behdad/harfbuzz/pull/605
Behdad Esfahbod 98acdde3 2017-10-31T11:17:43 [coretext/uniscribe] Fix build https://travis-ci.org/behdad/harfbuzz/jobs/295039536#L3468 https://ci.appveyor.com/project/behdad/harfbuzz/build/1.0.697/job/dr1ujlntxafeqbej#L142
Behdad Esfahbod 80cc0a7e 2017-10-17T11:14:48 [coretext] Fix build error: static_assert expression is not an integral constant expression
Behdad Esfahbod dbdbfe3d 2017-10-15T12:11:08 Use nullptr instead of NULL
Behdad Esfahbod c3448e8d 2017-10-15T12:02:00 Use static_assert instead of custom ASSERT_STATIC
Behdad Esfahbod c2cf68db 2017-10-13T10:30:19 [coretext] Fix build
Behdad Esfahbod 95883fc5 2017-10-13T10:21:07 [coretext] Pass correct font size to CoreText CoreText "point"s are not typographic points, but CSS pixels. Ie. they are 96 per inch, not 72 per inch.
Behdad Esfahbod 8923033e 2017-10-12T12:01:48 [coretext] Use fabs() to silence compiler warning
Dominik Röttsches dd4b321b 2017-10-12T11:49:37 [coretext] Activate tracking for system fonts Another attempt at fully fixing https://github.com/behdad/harfbuzz/issues/360
Behdad Esfahbod 6a2cbc6e 2017-10-12T10:46:09 [coretext] Use fabsf() instead of abs() Fixes bots. Link libharfbuzz.so with -lm. Surprising that we survived without it so far!
Behdad Esfahbod e1b6d923 2017-10-11T15:51:31 Remove cast of functions to (hb_destroy_func_t) Fixes https://github.com/behdad/harfbuzz/issues/474
Behdad Esfahbod 717fcb51 2017-10-11T15:38:21 [coretext] Minor
Behdad Esfahbod 06c14225 2017-10-11T15:29:53 [coretext] Minor
Behdad Esfahbod a4b46212 2017-10-11T15:29:22 [coretext] Adjust font size check for 0
Behdad Esfahbod 84686bf4 2017-10-11T15:02:48 [coretext-aat] Also pass through CoreText if font has kerx table SFNSText has kerx table which apparently is applied.
Behdad Esfahbod 296d0134 2017-10-11T14:09:30 [coretext] Change default point size to 12
Dominik Röttsches a5ebe1d4 2017-10-11T13:32:38 [coretext] Recreate CTFont if pt size changed Attempt at fixing #360
Dominik Röttsches db7a73ce 2017-10-11T13:24:39 [coretext] Fix build
Behdad Esfahbod f3341307 2017-10-11T13:17:46 [coretext] Another try
Behdad Esfahbod a8e466c3 2017-10-11T13:05:59 [coretext] Move CT_Font to font data Towards implementing optical sizing. Untested; won't compile. https://github.com/behdad/harfbuzz/issues/360
Behdad Esfahbod f9b4c657 2017-10-11T12:51:25 [coretext] Move font size to a macro
Behdad Esfahbod 16d02a58 2017-10-11T12:28:06 [coretext] Change default font size from 36 to 18
Behdad Esfahbod 239119a6 2017-08-13T15:08:34 [unsafe-to-break] Mark all positions as unsafe in alternative shapers
Cosimo Lupo 9813be3d 2017-07-14T17:11:46 [coretext] Allow to disable kern (#508) * Minor * [coretext] Fix leak * [coretext] Do not reset num_features * [coretext] allow to disable kern; re-enabling doesn't seem to be working
Behdad Esfahbod d4bb52b9 2017-02-09T14:13:25 Unbreak hb-coretext build
Behdad Esfahbod 466b3e58 2017-02-03T16:43:25 Shuffle things around a bit
Behdad Esfahbod 72ada4f0 2016-09-10T03:57:24 [GX] Hook up feature variations Shape-plan caching is not implemented.
Ebrahim Byagowi fc4e671f 2016-09-09T23:28:28 [coretext] Use intended coretext version check logic (#315)
Khaled Hosny 48677345 2016-09-08T04:44:37 Try to unbreak building on older macOS again (#314)
Dominik Röttsches b717cd7b 2016-09-07T23:56:57 Do reconfigure the cascade list for Emoji font on OS X 10.9.5 (#313) This seems to fix crash issues on 10.9.5 reported on Chrome, compare crbug.com/549610
Khaled Hosny a0f1b44b 2016-08-16T03:09:04 [coretext] Blind fix for build on MacOS 10.9
Behdad Esfahbod 33317310 2016-08-08T17:24:04 Fix sign of shift operators This one: map->mask = (1 << (next_bit + bits_needed)) - (1 << next_bit); before the fix, the shift was done as an int, causing overflow if it ever got to 1 << 31. Sprinkle 'u's around. Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=634805
Behdad Esfahbod 489acf6c 2016-07-22T17:41:43 [coretext] "Fix" crashes on CoreText < 10.10 Fixes https://github.com/behdad/harfbuzz/issues/297
Ebrahim Byagowi 87442120 2016-07-12T03:49:21 [coretext] Speculative fix for CoreText nullptr access (#288)
Behdad Esfahbod fc9de44a 2016-06-30T09:46:52 Comments
Dominik Röttsches a0223274 2016-06-16T14:19:39 Discard reconfigured CTFont if URL changes Fixes https://github.com/behdad/harfbuzz/issues/267
Behdad Esfahbod 59089622 2016-04-04T14:54:32 [coretext] Clarify comment
Behdad Esfahbod 89137e32 2016-02-22T16:00:59 Minor
Behdad Esfahbod 15063b12 2016-02-22T15:56:29 [coretext] Move CTFont construction to face_data
Behdad Esfahbod ba3d49d9 2016-02-22T15:50:12 [coretext] Move code around
Behdad Esfahbod 90194efb 2016-02-22T15:42:53 [coretext] Move code around
Behdad Esfahbod 238b943e 2016-02-22T15:31:22 [coretext] Fix leak!
Behdad Esfahbod e5611228 2016-02-22T15:28:37 [coretext] Move code around
Behdad Esfahbod 04c64431 2016-02-22T15:12:27 [coretext] Ignore PPEM in font size selection
Behdad Esfahbod 62c27111 2016-02-22T15:07:20 [coretext] Limit grapheme-cluster forming to cluster-level=0
Behdad Esfahbod 061105ec 2016-02-22T14:59:39 [coretext] Fix shaping with varying font size Fixes https://github.com/libass/libass/issues/212
Behdad Esfahbod a39ff95f 2016-01-11T12:28:37 [coretext] Speed up CoreText font fallback Fixes https://code.google.com/p/chromium/issues/detail?id=547912
Nico Weber a7f0e25d 2015-12-30T16:05:52 Remove unused HB_SHAPER_DATA_ENSURE_DECLARE lines. The coretext_aat shaper delegates to the regular coretext_..._ensure() functions, so coretext_aat_..._ensure() functions defined by these macros are unused. The compiler warns about them, which in turn can confuse people to think that the coretext_aat_..._ensure() functions weren't called by accident.
Nico Weber 8b1224f0 2015-12-28T21:31:28 Remove unused `retry:` label. Fixes a -Wunused-label warning when building harfbuzz with clang -Wall.
Behdad Esfahbod b8811429 2015-09-03T15:53:22 Fix Since tags Fixes https://github.com/behdad/harfbuzz/issues/103
Behdad Esfahbod ed6962c7 2015-08-20T15:39:53 [coretext] Use i32 instead of u32 as well Shouldn't cause *any* functional changes, but is more correct.
Behdad Esfahbod 958c268f 2015-08-19T13:22:12 [coretext] Add TODO item
Behdad Esfahbod 50ad7788 2015-08-18T10:22:16 [coretext] Remove assert that kicks in on Mac OS 10.6 http://crbug.com/419769
Behdad Esfahbod 39851ce8 2015-04-21T19:23:27 [coretext] Oops; fix issue number for previous commit
Behdad Esfahbod 24f17afe 2015-04-21T19:21:32 [coretext] Fix positioning with trailing whitespace Fixes https://code.google.com/p/chromium/issues/detail?id=476913
Behdad Esfahbod 982d94ea 2015-01-28T10:51:33 [coretext] Don't generate notdef glyph for default-ignorables As discovered on Chrome Mac: https://code.google.com/p/chromium/issues/detail?id=452326
Behdad Esfahbod 6917a045 2015-01-28T10:43:32 [coretext] Unbreak glyph positioning in presence of notdef runs As discovered on Chrome Mac: https://code.google.com/p/chromium/issues/detail?id=452326 This was originally broken in: commit 5a0eed3b50629be4826e4e9428f2c3255195395d Author: Behdad Esfahbod <behdad@behdad.org> Date: Mon Aug 11 23:47:16 2014 -0400 [coretext] Implement vertical shaping
Behdad Esfahbod b0b38bb8 2015-01-21T19:19:33 [coretext] Fix positioning of notdef
Behdad Esfahbod 221ba02b 2015-01-21T16:42:09 [coretext] Use vertical advance for notdef in vertical direction
Behdad Esfahbod 70622e50 2015-01-21T18:50:57 [coretext] Fix scaling Before we were not accounting for possible differences in x_scale and y_scale, as well as the signs of those. All should be in good shape now.
Behdad Esfahbod 522b1cc5 2014-08-14T13:29:30 [coretext] Hide feature_mappings
Behdad Esfahbod 20076cc4 2014-08-12T19:26:35 [coretext] Add version guards for kCTLanguageAttributeName
Behdad Esfahbod 1b3011c2 2014-08-12T19:17:19 [coretext] Pass buffer language to CoreText
Behdad Esfahbod 3eb6a4db 2014-08-12T19:10:33 [coretext] Minor
Behdad Esfahbod 08acfe0d 2014-08-12T18:57:08 [hb-coretext] Fix cluster order of notdef runs in RTL text
Behdad Esfahbod 81b8d977 2014-08-12T15:49:47 [coretext] Fix buffer resizing Was very broken. Now fixed and tested.
Behdad Esfahbod c3e924fb 2014-08-12T14:25:11 [coretext] Rewind scratch-allocated arrays when not needed anymore