Garret Rieger
198859bb37
[subset] For retain gids don't truncate glyphs past the highest requested subset glyph.
6 years ago
Garret Rieger
490d52f908
[subset] Add retain-gids option to hb-subset executable.
6 years ago
Garret Rieger
a903f9c228
[subset] Add some subsetting integration tests covering retain gids.
6 years ago
Garret Rieger
05e99c86ba
[subset] A few small fixes for the new subset plan api.
6 years ago
Garret Rieger
bdbe047d6c
[subset] Update hb-subset-plan.cc to match hb-subset-plan.hh.
6 years ago
Garret Rieger
74c44ffeba
[subset] Update hb-subset-glyf.cc to use new hb-subset-plan API.
6 years ago
Garret Rieger
4842294b86
[subset] Update gsub to use glyphset() method of subset plan.
6 years ago
Garret Rieger
853b1f1aa5
[subset] Correct maxp num glyph's to use new subset plan method.
6 years ago
Garret Rieger
846e05a298
[subset] Re-add glyphs array to subset plan, with new name 'glyphs_deprecated'. Switch CFF subsetting to use it.
6 years ago
Garret Rieger
03e88eab5c
Re-implement HMTX/VMTX subsetting. Update it to support glyph renumbering and simplify the implementation.
6 years ago
Garret Rieger
925be29223
Update hb-ot-vorg-table and hb-ot-layout-common to use the updated subset plan api.
6 years ago
Garret Rieger
4af3be6ef8
Remove glyph array from subset plan, make num_glyphs and glyphset private.
6 years ago
Garret Rieger
23f364429d
[subset] Fix hdmx subsetting when retain gids is enabled.
6 years ago
Garret Rieger
2da1654aef
[subset] Compute num_glyphs during subset plan construction.
...
Update maxp to use the correct num glyphs.
6 years ago
Garret Rieger
ccc59dc612
[subset] Add unit test for glyf subsetting and retain gids.
6 years ago
Garret Rieger
96b038f375
[subset] fix failure to init instruction ranges values for an invalid glyph.
6 years ago
Garret Rieger
4b1ac3a2fa
[subset] Do some refactoring in hb-subset-glyf.cc.
...
- Extract code out into helper methods in several places.
- Bundle loca address, size and is short into a struct.
6 years ago
Garret Rieger
b7f971884e
Add retain_gids option to subset input. Update glyf and loca handling to respect retain_gids.
6 years ago
Michiharu Ariza
b379900755
Merge branch 'master' into cff-more-arrayof-fixes
6 years ago
Behdad Esfahbod
e75b22039f
Move hb_addressof() to hb-meta.hh
6 years ago
Behdad Esfahbod
6cf25c2971
Merge branch 'master' into iter
6 years ago
Behdad Esfahbod
71157a4520
[meta] Remove _ft struct names
...
Using decltype() instead.
6 years ago
Behdad Esfahbod
9103bd056f
[pair] Use decltype
6 years ago
Behdad Esfahbod
fe53292310
[CI] Peg CircleCI badge link to master branch
...
[skip ci]
6 years ago
Behdad Esfahbod
9569819e24
[ci] Peg build status badges to master branch
...
[skip ci]
6 years ago
Behdad Esfahbod
1e29906a77
Switch README / README.md
...
[skip ci]
6 years ago
Behdad Esfahbod
a30e13469e
[iter] Add operator << to set / vector
6 years ago
Behdad Esfahbod
d438e61042
[iter] Fix operator() impls
6 years ago
Behdad Esfahbod
57795bc8dd
[iter] Add operator>> and operator<<
6 years ago
Behdad Esfahbod
8bd96be994
[iter] Use auto c = C.iter() internally
6 years ago
Behdad Esfahbod
073fa4ac5a
Merge branch 'master' into iter
6 years ago
Behdad Esfahbod
9a1df82e3f
[uniscribe] Whitelist function type cast
6 years ago
Behdad Esfahbod
6e1c3eaf70
Fix sign comparison error
6 years ago
Behdad Esfahbod
9db7a7da63
Fix warning
...
c:\projects\harfbuzz\src\hb-ot-color-cbdt-table.hh(59): warning C4146: unary minus operator applied to unsigned type, result still unsigned [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
6 years ago
Behdad Esfahbod
51b584880e
[pragma] Silence MSVC unknown-pragma warning
6 years ago
Behdad Esfahbod
d592bd16cd
Try fixing MSVC build
6 years ago
Behdad Esfahbod
0363ce650b
[iter] Accept C arrays in hb_iter()
6 years ago
Behdad Esfahbod
b62e7f9223
[test] Test unary operator+
...
"Test" as in compiles..
6 years ago
Behdad Esfahbod
778c96b8d7
[iter] Fix hb_iter()
6 years ago
Behdad Esfahbod
2f5b1a9104
[iter] Add unary operator+ that returns a copy
6 years ago
Behdad Esfahbod
fbab07f9b3
[iter] Add hb_bool() and make hb_filter default to it for predicate
6 years ago
Behdad Esfahbod
313d63e240
[meta] Back to using _ft suffix for function-object types
...
Seprate namespace, cleaner, more clear.
6 years ago
Behdad Esfahbod
2aff6d9625
[iter] Test that default-constructed iterators are empty
6 years ago
Behdad Esfahbod
f35e7eabf1
pragma GCC diagnostic error "-Winjected-class-name"
...
See 6b6783e158
6 years ago
Behdad Esfahbod
509353357c
[iter] Use hb_declval() instead of Null() to get instance
...
I had used Null to make one of the bots happy before. Not going
to bend to such demands anymore..
6 years ago
Behdad Esfahbod
6b6783e158
[iter/meta] Fix build on newer clang
...
The mystery failure had to do with SFINAE failure because the template
function involved was accessing ::iter_t of a type that was also named iter_t.
In this context, apparently:
warning: ISO C++ specifies that qualified reference to 'iter_t' is a
constructor name rather than a type in this context, despite preceding 'typename' keyword
[-Winjected-class-name]
We use a new macro, also called hb_iter_t(), to get iterator type of
a type. This uses declval/hb_decltype, and has the added benefit
that it returns correct type for const vs non-const objects, if they
have different iterators.
6 years ago
Behdad Esfahbod
5adb113baf
[meta] Mark function-objects as const
6 years ago
Behdad Esfahbod
ac90f17c55
Merge branch 'master' into iter
6 years ago
Behdad Esfahbod
60022ecced
Fix -Wcast-function-type warnings in util/ with gcc 4.8
6 years ago
Behdad Esfahbod
a9321cb5f8
Fix mac test
6 years ago