Behdad Esfahbod
f0ef096b8c
Don't add reference in get_unicode_funcs() functions
...
Users don't expect a new reference returned from a get() function.
Indeed, all users of that API I foud where NOT destroying the reference.
Just change the implementations to NOT return a reference.
This applies to the following APIs:
hb_unicode_funcs_get_default()
hb_glib_get_unicode_funcs()
hb_icu_get_unicode_funcs()
Fixes https://github.com/harfbuzz/harfbuzz/issues/1134
6 years ago
Behdad Esfahbod
9bbd1cdf06
[uniscribe] Use lazy loader
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1129
6 years ago
Behdad Esfahbod
2663689936
Another clang bot fix
6 years ago
Behdad Esfahbod
989e71a982
Silence clang
6 years ago
Behdad Esfahbod
6750ec692c
[lazy] Use for C_locale
6 years ago
Behdad Esfahbod
747d2564e6
[lazy] Port more
6 years ago
Behdad Esfahbod
7bd508a0c4
[lazy] Rename free()
6 years ago
Behdad Esfahbod
a3b97db910
[lazy] Port more to it
6 years ago
Behdad Esfahbod
6901090945
[lazy] Make hb_lazy_loader_t<> more usable
6 years ago
Behdad Esfahbod
bb905e9afc
[lazy] Minor
6 years ago
Behdad Esfahbod
3945cd78a9
Minor
6 years ago
Behdad Esfahbod
c21a1b95df
[icu] Use get_relaxed for normalizer access
...
We've had the proper barriers already. No need for more with every access.
6 years ago
Behdad Esfahbod
125fefa2a6
[icu] Fix for breakage after recent change
6 years ago
Behdad Esfahbod
53442be1ed
[lazy] Use for ft_library
6 years ago
Behdad Esfahbod
7a8d480378
[lazy] Add .free()
6 years ago
Behdad Esfahbod
c7ca30a533
[ot/ft] Port font_funcs statis to lazy-loader
6 years ago
Behdad Esfahbod
cb3fc3685c
[ucdn/glib/icu] Port unicode_funcs statics to lazy-loader
6 years ago
Behdad Esfahbod
1b6b481262
[lazy] Allow calling fini() multiple times
6 years ago
Behdad Esfahbod
918ad9f5d9
[lazy] More
6 years ago
Behdad Esfahbod
5abdf5eeba
[lazy] More shuffle
6 years ago
Behdad Esfahbod
5d9863be6e
Minor
6 years ago
Behdad Esfahbod
f9a3eab810
Add explicit_operator
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1127
6 years ago
Behdad Esfahbod
470acb6c32
Rename
6 years ago
Martin Hosken
39607dc98e
Support _ in feature ids
6 years ago
Behdad Esfahbod
652cd45c65
[coretext] Another try
6 years ago
Behdad Esfahbod
3f3585ca14
Fix coretext build (hopefully)
6 years ago
Behdad Esfahbod
aa3b6017ed
Revert "[iter] Make operator bool explicit"
...
This reverts commit 66920a6bac
.
Some of our bots (Oracle Studio and Apple gcc 4.2) do not allow
explicit except for constructors.
https://github.com/harfbuzz/harfbuzz/issues/1127
6 years ago
Behdad Esfahbod
e1a2354220
[atomic] More
6 years ago
Behdad Esfahbod
f1f4b45ac3
Fix lazy_loader fini()
...
Was creating object even if wasn't there.
6 years ago
Behdad Esfahbod
1f7380944d
[atomic] Add hb_atomic_ptr_t<> and port all uses
...
Found and fixed a couple bugs.
Found a couple multithreading issues. Marked them with "XXX-MT-bug".
6 years ago
Behdad Esfahbod
6e42f4c53f
[atomic] Remove hb_atomic_int_impl_t now that it's always int
6 years ago
Behdad Esfahbod
1227a9e5a5
[atomic] Unify typedef
...
Removes volatile from fallback implementation. That was handwavy
anyway.
6 years ago
Behdad Esfahbod
5cd1888c9d
[atomic] Change Mac atomic int type to int
...
If ever int is not 32bit, we'll fix this...
6 years ago
Behdad Esfahbod
e1de86eac1
[atomic] Change Windows atomic int type to int
6 years ago
Behdad Esfahbod
aee2d10b2b
[atomic] Change Solaris atomic int to signed
6 years ago
Behdad Esfahbod
b6fdcf4f8b
1.8.7
6 years ago
Behdad Esfahbod
51ffc3e65a
Fix previous commit to use atomic operations
6 years ago
Behdad Esfahbod
883957688c
Fix assertion failure
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1476334
6 years ago
Behdad Esfahbod
e49a38b20e
1.8.6
6 years ago
Behdad Esfahbod
b0ff79acd8
Add +hb_font_get_glyph_advances_for_direction
...
New API:
+hb_font_get_glyph_advances_for_direction
6 years ago
Behdad Esfahbod
28e2f467e1
Actually add hb_font_get_glyph_[hv]_advances
...
New API:
+hb_font_get_glyph_h_advances
+hb_font_get_glyph_v_advances
6 years ago
Behdad Esfahbod
996775191a
Minor
6 years ago
Behdad Esfahbod
3d7c555a19
Remove get_advances_nil and alias it to get_advances_default
6 years ago
Behdad Esfahbod
66920a6bac
[iter] Make operator bool explicit
...
We would need to write:
for (Iter<T> it (...); bool (t); t++)
instead of:
for (Iter<T> it (...); t; t++)
But I think it's an improvement in code readability in the long term.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1127
6 years ago
Behdad Esfahbod
79e21984b1
Add batch advance width callback function
...
New API:
+hb_font_funcs_set_glyph_h_advances_func
+hb_font_funcs_set_glyph_v_advances_func
+hb_font_get_glyph_h_advances
+hb_font_get_glyph_h_advances_func_t
+hb_font_get_glyph_v_advances
+hb_font_get_glyph_v_advances_func_t
6 years ago
Koji Ishii
9533364cc3
batchwidth
6 years ago
Behdad Esfahbod
b912fbea17
Remove most uses of direct comparison to Null objects
6 years ago
Behdad Esfahbod
3506672ce9
Port _nil objects to Null() machinery
...
Finally, unified!
6 years ago
Behdad Esfahbod
1abd427acf
[BASE] Rename horzi/vert to h/v
6 years ago
Behdad Esfahbod
da48aca1be
[BASE] Misc fixes
...
The code was badly broken. In better shape now, but still, needs
a full review before ever working.
6 years ago