Rod Sheeter
1454d82a9d
[subset] keep glyph trim separate of more general get_offset
7 years ago
Rod Sheeter
0ac8c0c1e6
[subset] zero glyf and loca memory before writing so pads are clean. Test just the part of maxp we care about
7 years ago
Garret Rieger
83af6c237f
Merge pull request #829 from googlefonts/test-checksum
...
[subset] Caclculate head table checksum adjustment
7 years ago
Behdad Esfahbod
dc5c7927e7
[subset] Caclculate head table checksum adjustment
...
Test still fails, because we do not serialize tables in the same
order that fonttools subsetter does.
7 years ago
Garret Rieger
7e5e1feb66
Merge pull request #828 from googlefonts/mem-fixes
...
[subset] Fix several memory leaks in subsetting.
7 years ago
Behdad Esfahbod
ec2538c880
[subset] Fix checksum calc out-of-bounds access
7 years ago
Garret Rieger
99967e21c6
[subset] Fix memory leak in hb-subset-glyf.
7 years ago
Garret Rieger
e61f360dc8
[subset] Fix memory leak in hb-subset-plan.
7 years ago
Garret Rieger
66b0a39079
[subset] Fix memory leak in hb-subset.
7 years ago
Garret Rieger
0fb8a5ce19
[subset] Fix memory leak in cmap subsetting.
7 years ago
Garret Rieger
4665aaa193
[subset] Fix memory leak in hmtx subsetting.
7 years ago
Garret Rieger
5a36b55fba
[subset] Fix memory leak in subset face destroy.
7 years ago
Ben Boeckel
d38f37b2e3
autoconf: provide a harfbuzz-config for use from CMake ( #822 )
7 years ago
Behdad Esfahbod
e0939d811f
Clean up check-defs and check-symbols ( #821 )
...
Also, call c++filt on their results.
Also build and fix and check harfbuzz-gobject.def
Also changes harfbuzz-gobject to distribute generated enum sources.
7 years ago
Rod Sheeter
9bd6d25254
[subset] clone trim logic from fonttools glyf handling
7 years ago
Garret Rieger
b1ec821051
Merge pull request #823 from googlefonts/hdmx
...
[subset] Add hdmx subsetting.
7 years ago
Garret Rieger
e15e41ef12
[subset] Remove commented code from run-tests.py.
7 years ago
Garret Rieger
2b84480343
[subset] Update expected files for subsetting integration test to not include cmap 4.
7 years ago
Garret Rieger
a88504c601
[subset] Fix checksum clearning in subset test diff. Add an updated expected file (has cmap4 restored).
7 years ago
Garret Rieger
537698b601
[subset] Don't compare actual to itself in Fix test/subset/run-tests. Print a diff on failure.
7 years ago
Behdad Esfahbod
c2e4713b5b
[hdmx] Fix sanitize()
7 years ago
Behdad Esfahbod
84d4bb91ce
[hdmx] Minor
7 years ago
Behdad Esfahbod
cf7a6e520e
[hdmx] Move DeviceRecord to toplevel again
...
More readable.
7 years ago
Garret Rieger
96d7805a92
[subset] More complete sanitization implementation for hdmx.
7 years ago
Garret Rieger
c02532a3d2
[subset] Formatting and comments in hdmx.
7 years ago
Garret Rieger
6b372f439b
[subset] In hb-ot-hdmx-table, s/glyf/hdmx.
7 years ago
Garret Rieger
ec302ad5bd
[subset] Fail subset if a table fails to sanitize.
7 years ago
Garret Rieger
15fc45bfed
[subset] Add a unit test for hdmx subsetting.
7 years ago
Garret Rieger
aa4aa2353c
[subset] Enable hdmx subsetting.
7 years ago
Garret Rieger
bd18b6adf8
[subset] Move DeviceRecord inside of hdmx.
7 years ago
Garret Rieger
6704cded65
[subset] Add hdmx subsetting implementation.
7 years ago
Garret Rieger
84b68e5886
[subset] In hdmx serialize set the correct value of sizeDeviceRecord.
7 years ago
Garret Rieger
dddf44279f
[subset] When serializing a DeviceRecord in hdmx pad to make 32 bit aligned.
7 years ago
Garret Rieger
ab7a8f3b74
[subset] Begin implementing serialize for hdmx.
7 years ago
Garret Rieger
fe42862ab3
[subset] Sketch out a basic hb-ot-hdmx.hh.
7 years ago
Ebrahim Byagowi
4f6f7c3b22
[util] Implement ppem/ptem on hb-{shape,view} ( #811 )
7 years ago
Ebrahim Byagowi
a6bd6bcee0
[dev-run] minor
7 years ago
Ebrahim Byagowi
fa13a04cf3
[dev-run] Add gdb/lldb shortcuts
7 years ago
Rod Sheeter
4f07437dfe
[subset] sketch out dropping in-glyf instructions. Sometimes yields differnet size glyphs than fonttools, possibly due to padding not being corrected
7 years ago
Rod Sheeter
2d0265242b
[subset] keep the result of _subset
7 years ago
Behdad Esfahbod
4fb97be78d
Add two more ragel-generated headers
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/817
7 years ago
Rod Sheeter
74e0c13a4a
[subset] drop hint tables if so flagged. Still need to dump glyf instructions.
7 years ago
Ebrahim Byagowi
edee28801e
Add .editorconfig ( #810 )
...
More information: http://editorconfig.org/
7 years ago
Rod Sheeter
0bd100e144
[subset] add --hinting flag
7 years ago
Rod Sheeter
7ecca8c0a8
[subset] keep the result of _subset
7 years ago
Behdad Esfahbod
eada749e46
Use HB_SET_VALUE_INVALID consistently
7 years ago
Garret Rieger
2cc845f311
[subset] fix calculation of range shiftz. Should be 16 * len - searchRange not 16 * (len - searchRange).
7 years ago
Garret Rieger
8e614ade5a
[subset] Reverse table order for font serialization to match what OTS expects.
7 years ago
Garret Rieger
a998eeee4a
[subset] sanity check glyph data writes during glyph subsetting to ensure they are inbounds.
7 years ago
Garret Rieger
0ab73e5942
[subset] Sanity check that loca writes are inbounds.
7 years ago