Behdad Esfahbod
941bbd9f25
[subset] Fix thinko
7 years ago
Behdad Esfahbod
931f8b7eb5
Fix another thinko
7 years ago
Behdad Esfahbod
39b86695cf
[subset] Fix thinko
7 years ago
Behdad Esfahbod
eeffabc875
Build
7 years ago
Behdad Esfahbod
c479a59988
[subset] Assemble font
7 years ago
Behdad Esfahbod
34ac3548b7
[set] Respect stride
...
Ouch!
7 years ago
Behdad Esfahbod
577becaf7b
[subset] Fixup
7 years ago
Behdad Esfahbod
c9acab3cfb
Whitespace
7 years ago
Behdad Esfahbod
7fd0b61dee
[subset] Create new face and copy all tables to it
...
test-subset fails now because subset-face does not know how to compile itself.
7 years ago
Garret Rieger
4e1abe2ce0
Refactor subset glyf to remove multiple calls to glyf.fini()
7 years ago
Garret Rieger
0a5d1440f8
Add implementation of glyf subsetting.
7 years ago
Garret Rieger
05d65baa1b
Extract glyf offset calculation into it's own method.
7 years ago
Behdad Esfahbod
6d7c6e19dc
Fix two undefined-behavior issues
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/761
Fixes https://github.com/harfbuzz/harfbuzz/issues/762
7 years ago
Behdad Esfahbod
b87cbe2bec
Try fixing build for platforms that have no visibility attributes
7 years ago
Behdad Esfahbod
f70100417c
[test] Minor
7 years ago
Behdad Esfahbod
6804b61d2e
[subset] Add hb_subset_face
...
It's a hb_face_t that has add_table() and in the future knows how to
compile itself into a font blob.
7 years ago
Behdad Esfahbod
af02812fc5
[subset] Change hb_subset API to remove hb_subset_face_t
7 years ago
Behdad Esfahbod
2da0d87e76
Remove NullPool visibility hack
...
We keep a separate private NullPool in libharfbuzz-subset.so
This can fire back later since now there are two separate null objects,
and comparisons to the null pool can be confused. Something to deal
with when it comes up. Ouch!
7 years ago
Rod Sheeter
b95aa204ee
glyph ids to retain should most likely keep the glyph id not the codepoint
7 years ago
Rod Sheeter
91428713bd
Remove \ns leftover from fprintf
7 years ago
Rod Sheeter
eb485bb9e9
Horrid hack to assign new gids. Use DEBUG_MSG over fprintf
7 years ago
Rod Sheeter
8b80cbb1dd
Add a subset debug category
7 years ago
Behdad Esfahbod
ee433d36fa
[aat] Set debug lookup_index
7 years ago
Rod Sheeter
38df1ec8e0
TEMPORARY: remove HB_INTERNAL from null pool so subset builds again
7 years ago
Garret Rieger
53aa0e9542
Add an instance of glyf::accelerator_t to hb-subset-glyf.
7 years ago
Rod Sheeter
ef62dfed3f
add back assert_pod
7 years ago
Rod Sheeter
d0ce3c66e2
Resolve codepoints:glyph ids. Does not compile; undefined reference to OT::_hb_NullPool
7 years ago
Garret Rieger
6a45e5df24
Add skeleton of hb-subset-glyf, call if from hb_subset(...)
7 years ago
Garret Rieger
31ec3c2ec4
Create a subset plan in hb_subset.
7 years ago
Rod Sheeter
6c52d94fd1
capture the set of codepoints passed by --unicodes
7 years ago
Garret Rieger
25e9173fe8
Make hb-subset-plan private.
7 years ago
Garret Rieger
af46a4da5a
Move definition of hb_subset_input into hb-subset-private.hh.
7 years ago
Garret Rieger
7481f0ce21
Add codepoints to subset input.
7 years ago
Garret Rieger
1cfe650f02
Add a basic sketch of hb-subset-plan.
7 years ago
Behdad Esfahbod
126ffdbe95
[aat] Fix debug compile
7 years ago
Ebrahim Byagowi
8cb8bfd5b5
[test] Fix test-subset on old distros ( #758 )
...
https://developer.gnome.org/glib/stable/glib-Testing.html#g-assert-cmpmem
7 years ago
Behdad Esfahbod
2971e9da49
[aat] Adjust unsafe-to-break logic some more
...
I believe I'm happy with it now.
7 years ago
Behdad Esfahbod
f49256d80f
[aat] Simplify unsafe-to-break logic
7 years ago
Behdad Esfahbod
cc1e0840ba
[buffer] Tweak diff re glyph_flags again
...
We expect the buffer to have no flags that the reference doesn't...
Meh. Makes MORX tests pass now. Need to better define the behavior.
7 years ago
Ebrahim Byagowi
d49ae5154e
Fix hb-buffer logic error
7 years ago
Ebrahim Byagowi
70e13ade81
[subset] Fix Windows issue on endlines ( #756 )
7 years ago
Behdad Esfahbod
f41b92134a
Fix fallthrough compiler warning with gcc >= 7
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/755
7 years ago
Behdad Esfahbod
b7b7f0ac59
[test] Minor
7 years ago
Behdad Esfahbod
0ff007daaa
[subset] Minor
7 years ago
Garret Rieger
fc1e82a5ae
Merge pull request #754 from googlefonts/master
...
Fix build for subsetting code.
7 years ago
Garret Rieger
2ea228935d
ssize_t -> size_t
7 years ago
Garret Rieger
c25898eb54
Switch to fopen() instead of open() in subset test. open wasn't compiling on windows.
7 years ago
Garret Rieger
fc04f11ce1
Rename HB_SUBSET_sources -> HB_SUBSET_CLI_sources to match what cmake is looking for.
7 years ago
Garret Rieger
e428f7b1c2
Wrap unistd.h include in ifdef.
7 years ago
Garret Rieger
5f6eb1256f
Add libharfbuzz-subset.la to linking when building api tests.
7 years ago