Behdad Esfahbod
587d46227a
[ot-font] Start implementing 'post' table, for accessing glyph names
9 years ago
Behdad Esfahbod
6dd80faf0d
Fix FixedVersion::to_int()
...
Ouch. Had broken it in 9a13ed453e
Fixes https://github.com/behdad/harfbuzz/issues/238
Will add test soon.
9 years ago
Behdad Esfahbod
68b6296d33
Add F2DOT14 type
9 years ago
Behdad Esfahbod
9a13ed453e
Make FixedVersion a template
9 years ago
Behdad Esfahbod
53c47c8582
Increase sanitize edit count from 8 to 32
...
See previous commit.
9 years ago
Steven R. Loomis
a13b023dbf
AIX fixes
...
- use '-w' instead of '\<...\>' for check-header-guards
grep manpage says these are the same
- put '-q' first in the grep options
- move VAR into hb-private.hh
- hb-font-private.hh - use [VAR] instead of [] for variable array
9 years ago
Behdad Esfahbod
14c2de3218
Limit max edits during sanitize to 8
...
Used to be 100. If a tabe needs more than one or two edits, it's
probably completely bogus...
Might help with speeding up fuzzing for
https://github.com/behdad/harfbuzz/issues/157
9 years ago
Behdad Esfahbod
ce889189c1
Fix two more -Wshadow warnings
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1215894
9 years ago
Behdad Esfahbod
ee9b0b6cb5
Fix another sanitize bug
...
Also discovered by "libFuzzer".
10 years ago
Behdad Esfahbod
f396fbb000
Fix return value of sanitize when subformat is not readable
...
This is a fix on top of the previous issue fixed in
c917965b9e
.
This was caught by "libFuzzer" testing.
10 years ago
Behdad Esfahbod
77a1a2bc18
Add hb_dispatch_context_t
10 years ago
Behdad Esfahbod
b47159011c
Define return_trace()
...
Not functional change (expected!).
10 years ago
Behdad Esfahbod
0299b45000
Make BYTE a real type
10 years ago
Behdad Esfahbod
5175300fba
[layout] Fix comparison of GlyphID and hb_codepoint_t
...
Before, the IntType::cmp functions providing this and was truncating
the hb_codepoint_t to 16bits before comparison. I have no idea how
this was never discovered, and I'm too lazy to try to reproduce this
with Pango (which uses non-16bit codepoint numbers for missing glyphs).
10 years ago
Behdad Esfahbod
7cce809cb1
Remove unused (and wrong as of a few commits ago) cmp() function
10 years ago
Behdad Esfahbod
bbdd6fd21c
Minor simpilfy BEInt
10 years ago
Behdad Esfahbod
88a399acdc
Optimize IntType comparison to avoid branches for 16bit numbers
10 years ago
Behdad Esfahbod
37de2d5331
Minor simplify IntType
10 years ago
Behdad Esfahbod
095a1257cc
[layout] Port sanitize() to use dispatch()
...
Needed some rework of Extension table. Hopefully I got it right, and
the new template usage doesn't break any compilers...
10 years ago
Behdad Esfahbod
de2118ed7a
Make sanitize() a const method
...
This makes a lot of code safer. We only try modifying the object in one
place, after making sure it's safe to do so. So, do a const_cast<> in
that one place...
10 years ago
Behdad Esfahbod
d5a5052098
Assert that blob length doesn't overflow address.
...
This will crash now, if blob was created with wrong length.
Check for that coming next commit.
10 years ago
Behdad Esfahbod
282b13f9b4
[sanitize] Improve debug output some more
10 years ago
Behdad Esfahbod
0766ee1f4e
[sanitize] Improve debug output
10 years ago
Behdad Esfahbod
5a5640d850
Move code around
11 years ago
Behdad Esfahbod
666b42f73b
Move macros around
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=84491
11 years ago
Behdad Esfahbod
7e8c389546
Minor warnings fixes
...
Some systems insist on -Wmissing-field-initializers. We have too many,
by design. Fix a few easy ones.
11 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.
11 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
12 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