Ryan Schmidt
58e569e5f7
Fix build with CoreText on OS X 10.7 and earlier ( #952 )
7 years ago
David Corbett
21646cc4a6
Do not mark the first glyph as unsafe to break
...
Fixes #791 .
7 years ago
Bruce Mitchener
dae20fb5a7
Use nullptr instead of 0.
7 years ago
Bruce Mitchener
90218fa93c
Fix typos.
7 years ago
Bruce Mitchener
0c66043a92
[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.
7 years ago
Behdad Esfahbod
1245395a60
[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.
7 years ago
Behdad Esfahbod
d5e29303db
[coretext] Add hb_coretext_font_create()
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/628
New API:
hb_coretext_font_create()
7 years ago
ebraminio
7c6937e7c7
Move all references of old url to the new address ( #622 )
7 years ago
Behdad Esfahbod
e4da380200
[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.
7 years ago
Behdad Esfahbod
40ec3bbb55
Consolidate debug stuff into hb-debug.hh
...
Part of fixing https://github.com/behdad/harfbuzz/pull/605
7 years ago
Behdad Esfahbod
98acdde3c6
[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
7 years ago
Behdad Esfahbod
80cc0a7e3e
[coretext] Fix build
...
error: static_assert expression is not an integral constant expression
7 years ago
Behdad Esfahbod
dbdbfe3d7b
Use nullptr instead of NULL
7 years ago
Behdad Esfahbod
c3448e8d21
Use static_assert instead of custom ASSERT_STATIC
7 years ago
Behdad Esfahbod
c2cf68dbdf
[coretext] Fix build
7 years ago
Behdad Esfahbod
95883fc5d4
[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.
7 years ago
Behdad Esfahbod
8923033eb2
[coretext] Use fabs() to silence compiler warning
7 years ago
Dominik Röttsches
dd4b321b4a
[coretext] Activate tracking for system fonts
...
Another attempt at fully fixing
https://github.com/behdad/harfbuzz/issues/360
7 years ago
Behdad Esfahbod
6a2cbc6ef5
[coretext] Use fabsf() instead of abs()
...
Fixes bots.
Link libharfbuzz.so with -lm. Surprising that we survived without
it so far!
7 years ago
Behdad Esfahbod
e1b6d92302
Remove cast of functions to (hb_destroy_func_t)
...
Fixes https://github.com/behdad/harfbuzz/issues/474
7 years ago
Behdad Esfahbod
717fcb51dd
[coretext] Minor
7 years ago
Behdad Esfahbod
06c14225b2
[coretext] Minor
7 years ago
Behdad Esfahbod
a4b46212c5
[coretext] Adjust font size check for 0
7 years ago
Behdad Esfahbod
84686bf4c7
[coretext-aat] Also pass through CoreText if font has kerx table
...
SFNSText has kerx table which apparently is applied.
7 years ago
Behdad Esfahbod
296d0134c9
[coretext] Change default point size to 12
7 years ago
Dominik Röttsches
a5ebe1d4ae
[coretext] Recreate CTFont if pt size changed
...
Attempt at fixing #360
7 years ago
Dominik Röttsches
db7a73ce07
[coretext] Fix build
7 years ago
Behdad Esfahbod
f334130756
[coretext] Another try
7 years ago
Behdad Esfahbod
a8e466c3c1
[coretext] Move CT_Font to font data
...
Towards implementing optical sizing. Untested; won't compile.
https://github.com/behdad/harfbuzz/issues/360
7 years ago
Behdad Esfahbod
f9b4c6570a
[coretext] Move font size to a macro
7 years ago
Behdad Esfahbod
16d02a58cf
[coretext] Change default font size from 36 to 18
7 years ago
Behdad Esfahbod
239119a631
[unsafe-to-break] Mark all positions as unsafe in alternative shapers
7 years ago
Cosimo Lupo
9813be3d12
[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
7 years ago
Behdad Esfahbod
d4bb52b9fd
Unbreak hb-coretext build
8 years ago
Behdad Esfahbod
466b3e58bd
Shuffle things around a bit
8 years ago
Behdad Esfahbod
72ada4f0c6
[GX] Hook up feature variations
...
Shape-plan caching is not implemented.
8 years ago
Ebrahim Byagowi
fc4e671f31
[coretext] Use intended coretext version check logic ( #315 )
8 years ago
Khaled Hosny
4867734528
Try to unbreak building on older macOS again ( #314 )
8 years ago
Dominik Röttsches
b717cd7be5
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
8 years ago
Khaled Hosny
a0f1b44b6c
[coretext] Blind fix for build on MacOS 10.9
8 years ago
Behdad Esfahbod
333173103b
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
8 years ago
Behdad Esfahbod
489acf6c31
[coretext] "Fix" crashes on CoreText < 10.10
...
Fixes https://github.com/behdad/harfbuzz/issues/297
8 years ago
Ebrahim Byagowi
874421203e
[coretext] Speculative fix for CoreText nullptr access ( #288 )
8 years ago
Behdad Esfahbod
fc9de44a03
Comments
8 years ago
Dominik Röttsches
a0223274b9
Discard reconfigured CTFont if URL changes
...
Fixes https://github.com/behdad/harfbuzz/issues/267
9 years ago
Behdad Esfahbod
59089622db
[coretext] Clarify comment
9 years ago
Behdad Esfahbod
89137e325a
Minor
9 years ago
Behdad Esfahbod
15063b12f7
[coretext] Move CTFont construction to face_data
9 years ago
Behdad Esfahbod
ba3d49d9a5
[coretext] Move code around
9 years ago
Behdad Esfahbod
90194efb84
[coretext] Move code around
9 years ago