Behdad Esfahbod
518e6e07f2
Minor
6 years ago
Behdad Esfahbod
91d958acc0
[array] Simplify copy assignment/constructor
...
To fix bogus MSVC warnings:
c:\projects\harfbuzz\src\hb-array.hh(189): warning C4521: 'hb_array_t<Type>': multiple copy constructors specified [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
c:\projects\harfbuzz\src\hb-array.hh(189): warning C4522: 'hb_array_t<Type>': multiple assignment operators specified [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
6 years ago
Behdad Esfahbod
693d91cd49
[serialize] Fix offset calculation
6 years ago
Behdad Esfahbod
db0c9a1485
[subset] Assert offsets are zero during relocation
...
If they're not, it's a bug in our subsetting logic somewhere. So check.
6 years ago
Behdad Esfahbod
efbba7ad26
[serializer] Add copy()
...
Calls obj.copy() or obj.operator=() in that order.
6 years ago
Behdad Esfahbod
c67a0d581f
Add HB_RETURN
6 years ago
David Corbett
6745a600bf
Comment out ot_languages where fallback suffices
6 years ago
David Corbett
5daeff3e68
Fix "hb_script_" doc typo
6 years ago
Behdad Esfahbod
6916b77863
One more auto return type
6 years ago
Behdad Esfahbod
5b33427f2c
Rename HB_AUTO_RETURN_EXPR to HB_AUTO_RETURN
6 years ago
Behdad Esfahbod
da293b0e59
Use HB_AUTO_RETURN_EXPR in hb_min/max
6 years ago
Behdad Esfahbod
0241a40f2a
Use auto return type for hb_first/hb_second
6 years ago
Behdad Esfahbod
fe30fcd228
Use hb_deref_pointer() to reduce number of overloads
6 years ago
Behdad Esfahbod
c918a6706f
Properly prioritize hb_hash()
6 years ago
Behdad Esfahbod
75fd845a4a
Move around
6 years ago
Behdad Esfahbod
973717175d
Fix priorities
6 years ago
Behdad Esfahbod
54ece299bc
Use type aliasing for meta-functions, ie. those returning a type
6 years ago
David Corbett
1ce11b4437
Reduce LangTag from 3 language system tags to 1
6 years ago
Behdad Esfahbod
155e92f259
Reduce NullPool size
6 years ago
Behdad Esfahbod
4fc2d2d724
[meta] Flesh out hb_invoke()
6 years ago
Behdad Esfahbod
e03d9395aa
Comment
6 years ago
Behdad Esfahbod
b8e763fd71
[meta] Add hb_invoke()
6 years ago
Behdad Esfahbod
a3fcb9a370
[meta] Add HB_AUTO_RETURN_EXPR, HB_VOID_RETURN_EXPR, hb_priority, hb_has(), hb_get()
...
The first three based on range-v3.
6 years ago
Behdad Esfahbod
ff68be31bf
Add hb_void_tt<> ala std::void_t
6 years ago
Behdad Esfahbod
89fea21697
Fix copyright
6 years ago
Behdad Esfahbod
b7384c89e2
[fuzzing] Run valgrind with --leak-check=full
6 years ago
Behdad Esfahbod
3ff66c0029
[fuzzing] Fail if valgrind is requested but not found
6 years ago
Behdad Esfahbod
07776b6096
More tweaks to previous commit
...
Delete assignment operator of OffsetTo<> instead of Offset<>.
In simple ArrayOf<>::sanitize() assert that Type has assignment operator.
Ideally we should SFINAE this and fallback to calling Type::sanitize()
if assignment operator is not available. But we don't have a case of
that in the codebase.
6 years ago
Behdad Esfahbod
699de689e9
Delete default assignment operator Offset<>
6 years ago
Behdad Esfahbod
02d864aa26
Add HB_FUNCOBJ()
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1651
6 years ago
Nathan Willis
60be1450ad
[Usermanual]: fix Tamil error in Why-do-I-need-a-shaping-engine section.
6 years ago
Behdad Esfahbod
38b1d0b9b2
Move static const to post-struct for a function object
...
Just sending this to bots to see if all happy, then turn it into macro and
apply everywhere.
Part of https://github.com/harfbuzz/harfbuzz/issues/1651
6 years ago
Behdad Esfahbod
19e800c9d8
Ugh. Another try, to unbreak gcc this time!
...
Jenga.
6 years ago
Behdad Esfahbod
3a88f55c15
Move location of HB_UNUSED to make MSVC happy
6 years ago
Behdad Esfahbod
1ae265888e
Fix gcc warning
6 years ago
Ebrahim Byagowi
c0ea37b557
[ci] Fix macOS glib issue
6 years ago
Behdad Esfahbod
47e538a35f
Add HB_NO_SUBSET_LAYOUT
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
a98e4068e7
Revert "Hide symbols in hb-iter"
...
This reverts commit 98f14c4cdb
.
Same as previous commit.
6 years ago
Behdad Esfahbod
dab92bdd46
Revert "Hide more symbols"
...
This reverts commit 2e86d50915
.
I think the setup that caused me to do this is faulty and not hiding inlines.
6 years ago
Behdad Esfahbod
98f14c4cdb
Hide symbols in hb-iter
...
Painful. All template methods need to be explicitly hidden :(.
Maybe we should switch to -fvisibility=hidden pragma.
A LOT more to go.
6 years ago
Behdad Esfahbod
2e86d50915
Hide more symbols
...
Exposed by:
$ make -j5 CPPFLAGS="-O0" CXXFLAGS=-flto=thin LDFLAGS=-lc++ && ./check-symbols.sh
6 years ago
Behdad Esfahbod
caa20e4ef9
Hide a few more symbols
...
Exposed by:
$ make CPPFLAGS=-O0
6 years ago
Behdad Esfahbod
95df00aec1
Hide a few static methods
...
Looks like static methods that do not get inlined end up exported.
We have a lot more. Need to protect all at some point. Wish there
was an easier way, like the visibility flag we pass that automatically
hides all inline methods.
Was exposed by check-symbols.sh when compiling on OS X 10.14 with:
$ make CPPFLAGS=-Oz CXXFLAGS=-flto=thin LDFLAGS=-lc++
6 years ago
Behdad Esfahbod
2f4be4ba54
Add HB_NO_OPTIONS
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
079d2dcbb2
Add HB_NO_NAME_TABLE_AAT
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
60a58aa61c
Add HB_NO_OT_FONT_BITMAP
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
160c4d8b2d
Add HB_NO_OT_FONT_CFF
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
35f3b97fac
Add HB_NO_OT_SHAPE_COMPLEX_HEBREW_FALLBACK
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
414c5de26b
Add HB_NO_OT_SHAPE_FALLBACK
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
fe0018f7ef
Add HB_NO_OT_SHAPE_COMPLEX_THAI_FALLBACK
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago