Behdad Esfahbod
6be66b0ef2
[ft/coretext] Fail setting font-funcs gracefully
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/5020
2025-01-24 16:26:54 -07:00
Behdad Esfahbod
4df11621ce
[VARC] Fix variable binding
...
Ouch.
2025-01-24 05:00:05 -07:00
Behdad Esfahbod
2fa9ccee61
[VARC] Simplify
2025-01-23 23:14:53 -07:00
Behdad Esfahbod
2d2418ebac
[VARC] Avoid float div-by-zero
2025-01-23 23:14:45 -07:00
Behdad Esfahbod
fe9398e9a9
[VARC] Chain transforms
...
Previous code was actually wrong even, for non-uniform x/y font scale.
Fixes https://github.com/harfbuzz/harfbuzz/issues/5017
2025-01-23 22:59:12 -07:00
David Corbett
22fbc75688
[ot-tags] Update IANA and OT language registries
2025-01-22 11:03:02 -07:00
Khaled Hosny
a888761a78
[hb-ft] Hopefully clarify hb_ft_font_create() life cycle even more
...
Add “only” to one more place.
2025-01-21 15:57:10 +02:00
Behdad Esfahbod
3a7ebc320d
[config] Fix build with HB_LEAN
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4997
2025-01-13 14:53:31 -07:00
Khaled Hosny
1e629c3511
[morx] Blocklist dysfunctional morx table of AALMAGHRIBI.ttf font
...
Fixes #4108
2025-01-13 11:30:00 -07:00
Khaled Hosny
7b27c8edd4
10.2.0
2025-01-11 18:13:18 +02:00
Behdad Esfahbod
021b443886
Garay script is RTL
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4996
2025-01-10 13:57:16 -07:00
Khaled Hosny
fc42cdd68d
[docs] Reduce warnings
2025-01-08 22:17:03 +02:00
Khaled Hosny
1ce8191289
[subset-serialize] Formatting
2025-01-08 15:56:10 +02:00
Khaled Hosny
e943a0098b
[subset-serialize] Try to fix MSVC build
2025-01-08 15:56:10 +02:00
Khaled Hosny
9d5beeafa1
[subset-serialize] Fix doc generation
...
gtk-doc is rather sensitive to white space, and it does not seem to be
able to parse bare `unsigned` without `int`.
2025-01-08 15:12:40 +02:00
Garret Rieger
bdb50f1c6e
[repacker] Also rename api method from hb_subset_repack_or_fail -> hb_subset_serialize_or_fail.
2025-01-07 13:39:51 -07:00
Garret Rieger
056504168c
[repacker] rename hb-subset-repacker -> hb-subset-serialize.
...
Also hb_link_t and hb_object_t to hb_subset_serialize_link_t and hb_subset_serialize_object_t.
2025-01-07 13:39:51 -07:00
Behdad Esfahbod
503553c3d2
[docs] Fix build for real this time
2025-01-07 11:50:12 -07:00
Behdad Esfahbod
fca062eb4c
[docs] Fix build fail
2025-01-07 11:38:25 -07:00
Behdad Esfahbod
379e3c989a
[shape] Wrap justify API in EXPERIMENTAL
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4984
2025-01-07 11:29:35 -07:00
Garret Rieger
5a6f5922dd
[repacker] Promote repacking API to stable.
...
For #227 .
2025-01-07 11:28:38 -07:00
David Corbett
57569baa65
Don’t insert U+25CC before super/subscript digits
2025-01-03 05:19:13 -07:00
wang-bin
3258b1f248
[coretext]: fix tvOS build
...
define kCTFont* when unavailable, i.e. ios < 6.0, macOS < 10.8 or tvOS < 9.0.
MAC_OS_X_VERSION_MIN_REQUIRED is always defined in AvailabilityMacros.h for all targets,
while __ENVIRONMENT_*_VERSION_MIN_REQUIRED__ is defined by compiler when building a specific target
2024-12-20 00:25:45 -07:00
Khaled Hosny
524e0f0ad5
[doc] Improve hb_face_reference_table() docs
2024-12-19 11:54:10 +02:00
David Corbett
f887096ab1
[myanmar] Allow all tones (& visarga) in any order
2024-12-15 12:32:08 -07:00
Behdad Esfahbod
c8050b3872
[coretext] Fix build on old Mac
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4968
2024-12-10 11:22:15 -07:00
David Corbett
40ef6c0577
[ot-tags] Update OpenType language system registry
2024-12-05 15:59:39 -07:00
Kesavan Yogeswaran
1c249be96e
Sidestep nontrivial-memaccess warning in Crap()
...
With -Wnontrivial-memaccess, recent versions of clang flag the usage of
memcpy in hb-null.hh with pointers to nontrivially-copyable types.
Sidestep this warning by casting the problematic pointer to void*.
2024-12-02 14:55:50 -07:00
Caleb Maclennan
10cf348a67
[gsubgpos] Guard integer arithmetic against wrapping below zero
...
When either casting a signed integer to an unsigned one or subtracting
a value from an unsigned one, add assertions to verify we will not end
up below expected bounds.
2024-11-28 16:22:33 -07:00
Luca Ebach
780aaca89b
set harfbuzz version in cmake config file
2024-11-28 02:31:46 +02:00
Qunxin Liu
3bb89eebd6
[instancer] use hb_parse_double() for parsing axis positions
...
Added hb_subset_axis_range_from/to_string()
2024-11-25 09:38:13 -07:00
Khaled Hosny
056cc56044
[config] Improve language handling with HB_LEAN
...
Remove HB_NO_LANGUAGE_LONG and HB_NO_LANGUAGE_PRIVATE_SUBTAG defines to
support language tags longer than 2 letters and private language tags
(needed to set language using OpenType language tags) respectively.
HB_LEAN is used when smaller binary size is desired, but in general it
should not produce different shaping output.
Fixes https://github.com/harfbuzz/harfbuzzjs/issues/108
2024-11-24 17:42:43 -07:00
Garret Rieger
0b7beefd0b
Raise table growth limit during subsetting. Real case encountered that exceeded the current limit. Fixes #4943 .
2024-11-21 18:10:21 -07:00
Khaled Hosny
773fe85018
[layout] Blocklist the GDEF table of various Courier New versions
...
These files have incorrectly give several base glyphs GDEF mark glyph
class leading in zeroing there advance widths.
Fixes https://github.com/harfbuzz/harfbuzz/issues/4936
2024-11-21 14:40:57 -07:00
Behdad Esfahbod
392463267f
[cairo] Protect against some invalid matrices
...
hb-view --font-size 0,10 still fails with cairo error.
To be debugged separately.
2024-11-16 12:20:24 -07:00
Behdad Esfahbod
d759ee5a8d
[ft] Guard FT_LOAD_NO_SVG
...
Also pass FT_LOAD_NO_BITMAP.
2024-11-15 16:18:34 -07:00
Behdad Esfahbod
965790764a
[ft-colr] Don't load SVG table since we don't support it
...
Part of https://github.com/harfbuzz/harfbuzz/issues/4938
2024-11-15 15:33:11 -07:00
Behdad Esfahbod
21cba9e5bc
[cairo] Fix scaling in paint_color_glyph
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4938
2024-11-15 15:21:21 -07:00
Behdad Esfahbod
de7f97b7f7
[COLR] Add comment
2024-11-15 15:14:37 -07:00
Garret Rieger
b0d52abe97
[subset] consider variation selectors subsetting cmap14
...
cmap14 subsetting code was not considering variation selectors in the input unicode set when deciding which variant glyphs to keep. This updates subsetting to only keeps variant glyphs if their variation selector code point is in the input unicodes set.
For https://github.com/harfbuzz/harfbuzz/issues/4911
2024-11-11 13:45:08 -07:00
Behdad Esfahbod
1767f99e2e
[cairo] Guard hb_cairo_glyphs_from_buffer() against bad UTF-8
...
Previously it was assuming valid UTF-8.
2024-11-10 22:43:28 -07:00
Qunxin Liu
b5ed7846d6
[subset-serialize] release discarded objects
2024-11-08 18:06:35 -07:00
Qunxin Liu
622e9c33c3
[instancer] fix for incorrect offset calculation when we have gvar padding
2024-11-06 12:38:00 -07:00
Khaled Hosny
9ef44a2d67
10.1.0
2024-11-05 08:04:49 +02:00
Behdad Esfahbod
c85a6c2a22
[cairo] Respect HB_NO_VAR
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4924
2024-11-04 17:34:02 -05:00
Behdad Esfahbod
9974a66169
[icu] Make it build with ICU 76
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4915
2024-10-27 16:14:53 -07:00
Qunxin Liu
e5139c51aa
bug fix in hashmap get_with_hash()
2024-10-21 15:46:06 -06:00
Behdad Esfahbod
de1a1e27d4
[coretext-font] Implement get_glyph_v_origin()
...
For a font without vertical metrics, I'm getting different
values from ot/ft. But that's expected, since in ot we just
implemented the same heuristics as ft.
2024-10-15 14:58:13 -06:00
Behdad Esfahbod
786097029e
[coretext-font] Implement get_glyph_v_advances
2024-10-15 14:58:13 -06:00
Behdad Esfahbod
e1026a2252
[coretext-font] Implement get_variation_glyph()
...
Not sure if I got it right, but *seems* to work.
2024-10-15 14:58:13 -06:00