Behdad Esfahbod
7e8c389546
Minor warnings fixes
...
Some systems insist on -Wmissing-field-initializers. We have too many,
by design. Fix a few easy ones.
10 years ago
Behdad Esfahbod
7627100f42
Mark unsigned integer literals with the u suffix
...
Simplifies hb_in_range() calls as the type can be inferred.
The rest is obsessiveness, I admit.
10 years ago
Behdad Esfahbod
586b60622c
Minor: final bits of cleanup
11 years ago
Behdad Esfahbod
51d9ba09bc
Minor
11 years ago
Behdad Esfahbod
3084767e92
Minor: Remove LongArrayOf
11 years ago
Behdad Esfahbod
41ea594950
Minor: Remove LongSortedArrayOf
11 years ago
Behdad Esfahbod
bb6ecf2ce5
Minor: Remove LongOffsetArrayOf and LongOffsetLongArrayOf
11 years ago
Behdad Esfahbod
99d2817123
Minor: Remove GenericOffset
11 years ago
Behdad Esfahbod
9da552dcc5
Minor: Remove some GenericXXX templates
11 years ago
Behdad Esfahbod
36073ede5b
Minor: Reorder template parameter order
11 years ago
Behdad Esfahbod
0394ec1bfb
Minor: Introduce GenericOffset
11 years ago
Behdad Esfahbod
0d1b3419a7
Minor: Use template parameter default values for OffsetTo
11 years ago
Behdad Esfahbod
df554af99d
Rename search() to bsearch() and lsearch()
...
Such that the complexity of the algorithm used is clear at
call site.
11 years ago
Behdad Esfahbod
ce34f0b07e
[ot-font] Use binary search for format12 cmap subtable
11 years ago
Behdad Esfahbod
51f563579b
Move try_set to sanitize context
11 years ago
Behdad Esfahbod
b7878cd58e
[ot] Implement cmap subtable format 0
11 years ago
Behdad Esfahbod
4719621f20
Minor
11 years ago
Behdad Esfahbod
c7074b8798
[otlayout] Add GenericArrayOf::search()
11 years ago
Behdad Esfahbod
40a479797a
[otlayout] Add GenericSortedArrayOf
11 years ago
Behdad Esfahbod
6faff8e413
Add static storage classifier to inline functions
...
Before we were just relying on the compiler inlining them and not
leaving a trace in our public API. Try to fix. Hopefully not
breaking anyone's build.
11 years ago
Behdad Esfahbod
6775da3a7c
Fix clang warning 'private field 'xxx' is not used
...
Fixes https://github.com/behdad/harfbuzz/pull/16
11 years ago
Behdad Esfahbod
2a8c49ade0
Remove unnecessary includes
11 years ago
Behdad Esfahbod
05bad3b8c2
[uniscribe] Use OT::* types
11 years ago
Behdad Esfahbod
8659c63608
Hand-code bsearch in the hot inner loop.
...
Saves another 3 / 4 percent with Amiri.
12 years ago
Behdad Esfahbod
9c5a9ee967
[OTLayout] Rename process() to dispatch()
12 years ago
Behdad Esfahbod
05d5d3cd63
Fix "comparison between signed and unsigned" warnings
...
Patch from Jonathan Kew.
12 years ago
Behdad Esfahbod
07a52b6211
Give up sanitizing after 100 edit requests
...
Such fonts are *definitely* really broken. Give up.
Limits time spent in sanitize for extremely / deliberately broken
fonts. For example, two fonts with these md5sum / names:
9343f0a1b8c84b8123e7d201cae62ffd.ttf
eb8c978547f09d368fc204194fb34688.ttf
were spending over a second in sanitize! Not anymore.
12 years ago
Behdad Esfahbod
27589620ba
[OTLayout] Remove unused code
12 years ago
Behdad Esfahbod
e95e031b56
[GPOS] If an Anchor offset is NULL, return false
...
If in a MarkPos table, a base has no anchor for a particular mark class,
return NULL such that the subsequent subtables get a chance at it.
Test case:
hb-shape ./EBGaramond12-Regular.otf ἂ --features="ss20","smcp"
12 years ago
Behdad Esfahbod
e77b442574
[OTLayout] Fix tracing
12 years ago
Behdad Esfahbod
9b54562d63
[OTLayout] Towards correct FeatureParams handling
12 years ago
Behdad Esfahbod
bd61bc13ea
[OTLayout] Add UINT24 type
12 years ago
Behdad Esfahbod
0beb66e3a6
Fix warnings
12 years ago
Behdad Esfahbod
2c53bd3c3e
[OTLayout] Start porting sanitize() to process()
12 years ago
Behdad Esfahbod
be218c688c
Pass this object to trace macros
12 years ago
Behdad Esfahbod
902cc8aca0
[OTLayout] Start unbreaking tracing
12 years ago
Behdad Esfahbod
dabe698fcb
Minor
12 years ago
Behdad Esfahbod
81822528ef
Minor
12 years ago
Behdad Esfahbod
7d52e6601f
Whitespace
12 years ago
Behdad Esfahbod
fd0de881f4
Avoid C++ undefined behavior
...
https://bugzilla.mozilla.org/show_bug.cgi?id=810823
12 years ago
Behdad Esfahbod
811eefe225
Return NULL, not false
...
Oh well...
12 years ago
Behdad Esfahbod
fabd3113a9
[OT] Port Arabic fallback shaping to synthetic GSUB
...
All of init/medi/fina/isol and rlig implemented.
Let there be dragons... ⻯
12 years ago
Behdad Esfahbod
715e03bc21
Minor
12 years ago
Behdad Esfahbod
a930c68e9c
[OT] More serialize. Implements all basic GSUB subtables
12 years ago
Behdad Esfahbod
1f07e3382a
[OT] Implement serialize() for MultiSubst
12 years ago
Behdad Esfahbod
4912030dfb
Minor
12 years ago
Behdad Esfahbod
4b312fb288
[OT] Remove serialize alignment
...
Will reintroduce in a different way when we actually need it.
12 years ago
Behdad Esfahbod
c61be03d6d
[OT] A bit more serialize
12 years ago
Behdad Esfahbod
abcc5ac1fd
[OT] Improve serialize syntax
...
For some definition of improvement...
12 years ago
Behdad Esfahbod
bc5be24014
[OT] Restart work on serialize()
12 years ago