Behdad Esfahbod
1cb47eff8f
Rename VariationStore to ItemVariationStore
1 year ago
Behdad Esfahbod
cb320d2222
Revert "[cff] Use float instead of double"
...
This reverts commit c8f67ac28e
.
Tests failing.
2 years ago
Behdad Esfahbod
c8f67ac28e
[cff] Use float instead of double
...
Reduces memory usage slightly.
2 years ago
Behdad Esfahbod
76879c5763
[subset-cff] Minor hide num_coords again
2 years ago
Behdad Esfahbod
576b36a31b
[cff2] Undo rounding change in draw() codepath
2 years ago
Behdad Esfahbod
4867e0b192
[subset-cff2] Faster instancing
...
Instantiate blends during parsing. Dedups code as well.
2 years ago
Behdad Esfahbod
c632a164b9
[subset/cff] Support instancing
2 years ago
Behdad Esfahbod
8f2345ca36
Use more vector resize_exact
2 years ago
Behdad Esfahbod
b1c4cb0cae
[cff2] Use a shrink instead of resize
...
Such that we can free the allocation.
2 years ago
Behdad Esfahbod
b803024caf
[cff2] Another exact-size allocation
2 years ago
Behdad Esfahbod
3d4659beaa
[cff2] Use exact-size vector allocation for blends
2 years ago
Behdad Esfahbod
b33297ee26
[cff2] Remove unused typedef
2 years ago
Behdad Esfahbod
70d97d079b
[subset-cff] Remove unused argument
2 years ago
Behdad Esfahbod
4167e93a15
[subset-cff2] Micro-optimize blend operator
2 years ago
Behdad Esfahbod
f159bf075b
[cff2] Micro-optimize blend operator
2 years ago
Behdad Esfahbod
bff78e6515
[cff] Convert interpretation environment to use constructor
3 years ago
Behdad Esfahbod
0a42410dc8
[cff2] Change extents/shape stack to be just a number
...
Do the blending immediately.
Fixes https://github.com/harfbuzz/harfbuzz/issues/3559
Benchmark on AdobeVFPrototype shows 35% speedup. Now we're faster
than FreeType:
Benchmark Time CPU Time Old Time New CPU Old CPU New
------------------------------------------------------------------------------------------------------------------------------------------------
BM_Font/glyph_extents/AdobeVFPrototype.otf/hb -0.3792 -0.3792 1584 983 1581 982
BM_Font/glyph_extents/AdobeVFPrototype.otf/ft +0.0228 +0.0224 1220 1248 1218 1245
BM_Font/glyph_extents/AdobeVFPrototype.otf/var/hb -0.3513 -0.3518 1616 1048 1613 1046
BM_Font/glyph_extents/AdobeVFPrototype.otf/var/ft +0.0172 +0.0169 1232 1254 1230 1251
3 years ago
Behdad Esfahbod
8aa54aaca2
[cff] Replace byte_str_t with hb_bytes_t use
3 years ago
Behdad Esfahbod
29f60d1eaa
[cff] Remove init/fini from blend_arg_t
3 years ago
luz paz
e2e305066a
Fix various typos
...
Found via `codespell -q 3 -S ./perf/texts -L actualy,ba,beng,fo,gir,inout,nd,ot,pres,ro,te,teh,timne`
3 years ago
Behdad Esfahbod
ff1fe25a5d
[VarStore] Rename internal get_scalars() to get_region_scalars()
4 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Ebrahim Byagowi
efd716de3f
[cff] Check for scalars array resize result
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24504
5 years ago
Ebrahim Byagowi
d0e2addd43
minor
5 years ago
Ebrahim Byagowi
2be859d289
minor, replace nullptr checks with implicit ones
5 years ago
Ebrahim Byagowi
2dda6dd744
minor, tweak spacing
...
turn 8 spaces to tab, add space before Null/Crap
5 years ago
Ebrahim Byagowi
5f23a76e99
[cff] Don't remove coords const qualification
...
We should find some way to audit all the const removals, perhaps by
enabling -Wold-style-cast warning on the project and turning all the
implicit const removals to const_cast.
5 years ago
Michiharu Ariza
01832fd16b
alternate fix for https://crbug.com/971933
6 years ago
Ebrahim Byagowi
92588782d7
Remove space between right angle brackets now that we have C++11 ( #1689 )
6 years ago
Michiharu Ariza
29f0b6bce7
CFF renaming ( #1507 )
...
* reimplement ByteStr as byte_str_t based on hb_ubytes_t
Unuse start_embed<ByteStr>
Also renamed SubByteStr to byte_str_ref_t
More renaming to come
* substr renamed to str_ref in line with its type byte_str_ref_t
* uncamelize non-table struct names
* uncamelized non-struct types OpCode etc
* add byte_str_t copy ctor
* test
* test2
* undo tests
* fix bot failure
* undo the previous change
* fixed tabs, added inline
* Revert "fixed tabs, added inline"
This reverts commit 21163c30e9
.
* fix tabs
6 years ago
Behdad Esfahbod
474a12058d
[array/vector] Rename len to length
6 years ago
Behdad Esfahbod
f1e95e40ed
[arrays] Remove hb_supplier_t<>
6 years ago
Ebrahim Byagowi
e412008599
Remove redundant void from C++ sources ( #1486 )
6 years ago
Ebrahim Byagowi
b2ebaa9afa
Remove redundant 'inline' from methods ( #1483 )
6 years ago
Michiharu Ariza
59345cdef3
[CFF] Refix oss-fuzz 11714: set_blends (PR #1458 ) ( #1460 )
...
* pass subarray of stack to set_blends
* get_subarray to return a value, not ref
* restored error check (with tweak)
6 years ago
Michiharu Ariza
14d29a1043
check number of blends against args on stack
6 years ago
Michiharu Ariza
c48f53d309
more double changes
6 years ago
Michiharu Ariza
5fff6ab002
additional precision made a difference in extents test
6 years ago
Behdad Esfahbod
825df6dbc7
[CFF] Change spaces to tabs
6 years ago
Behdad Esfahbod
592f39b3c4
[CFF] Whitespace
6 years ago
Michiharu Ariza
d8c6913765
undo 0u
6 years ago
Michiharu Ariza
9483da145d
redo fixes
6 years ago
Michiharu Ariza
9784cff556
fix another pesky gcc error
6 years ago
Michiharu Ariza
0dfa584cb4
changed Adobe company name
6 years ago
Michiharu Ariza
0996c0ff62
implented no-desubroutinize with CFF2 along with API test
...
replaced AdobeVFPrototype.abc.otf with a hinted (maually) & subroutinized copy
replaced expected results as well
6 years ago
Michiharu Ariza
ae8fd0dbfb
clear stack after vsindex op
6 years ago
Michiharu Ariza
2840a104c1
tweaks to build with new merge
6 years ago
Michiharu Ariza
d56e338a90
CFF1 no-desubroutinize + no-hinting
...
no-desubroutinize option is disabled for now
code cleanup (esp. CFF1 width handling)
bug fixes & renaming
6 years ago
Michiharu Ariza
7d99a6cef8
overhauled error handling in CFF interpreter
...
minimized "if (error) return false" idiom
6 years ago
Michiharu Ariza
af61c3b10f
added vsindex test & fixed process_vsindex
6 years ago