Commit Graph

8820 Commits

Author SHA1 Message Date
Ebrahim Byagowi dd3624b6d5 [ci] Don't install ragel on cmake build bot images
It is not needed anyway
2019-03-29 18:27:21 -07:00
Michiharu Ariza 4f351754bb add recursion checks 2019-03-29 18:27:21 -07:00
Michiharu Ariza 0008963b28 add support of anchor point & SCALED/UNSCALED_COMPONENT_OFFSET
some code cleanup
2019-03-29 18:27:21 -07:00
Behdad Esfahbod ea281aa8d0 Use class templates for Null objects
This allows partial-instantiating custom Null object for template Lookup<T>.
Before, this had to be handcoded per instantiation.  Apparently I missed
adding one for AAT::ankr.lookupTable, so it was getting the wrong (generic)
null for Lookup object, which is wrong and unsafe.

Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=944346
2019-03-29 18:27:21 -07:00
Behdad Esfahbod 1dfc2dfff5 [aat] Add missing check to ankr table
Isn't absolutely needed.  But helps.
2019-03-29 18:27:21 -07:00
Behdad Esfahbod 782961d216 [docs] Update 2019-03-29 18:27:21 -07:00
Behdad Esfahbod d4fb54508d Update ChangeLog generation
Let's see if I can make a release on Mac...
2019-03-29 18:27:21 -07:00
Qunxin Liu 2f97cd7a52 completely remove lines that are commented out 2019-03-29 18:27:21 -07:00
Qunxin Liu e74d646d9e update arguments in_populate_gids_to_retain() and _create_old_gid_to_new_gid_map()
so they don't use deprecated variable
2019-03-29 18:27:21 -07:00
Qunxin Liu b12a5daad7 try to remove deprecated variable from struct definition 2019-03-29 18:27:21 -07:00
Michiharu Ariza 9c5d694af2 add HVAR & VVAR advance width api test 2019-03-29 18:27:21 -07:00
Michiharu Ariza ae3db1f4e3 added api test for subset VVAR & bug fix
added a mod copy of SourceSerifVariable-Roman.ttf with VVAR as a test font
2019-03-29 18:27:08 -07:00
Michiharu Ariza b3007ec209 regenerated expected full fonts data after fontTools bug 1550 fixed 2019-03-29 18:26:46 -07:00
Michiharu Ariza fe5aa8b36c added TT VF full font test & fixed bugs
updated CFF2 VF api test results too
2019-03-29 18:26:46 -07:00
Michiharu Ariza 2bd2e656f9 update CFF2 test results 2019-03-29 18:26:20 -07:00
Michiharu Ariza 212dcb758c add api test cases for HVAR with index map (and fix) 2019-03-29 18:26:20 -07:00
Michiharu Ariza dc10a7ef60 add gvar & HVAR retain-gids test cases 2019-03-29 18:26:20 -07:00
Michiharu Ariza 43420dfa96 fix test build 2019-03-29 18:26:20 -07:00
Michiharu Ariza 6ee71166b0 add api tests for subset gvar & HVAR; bug fixes 2019-03-29 18:26:20 -07:00
Michiharu Ariza 6e066464f0 replaced tt var api test with a composite glyph
for better coverage
2019-03-29 18:26:20 -07:00
Michiharu Ariza 84d0af456b move rounding advance width to glyf 2019-03-29 18:26:20 -07:00
Michiharu Ariza 10f264da75 fix empty glyf's advance width 2019-03-29 18:26:20 -07:00
Michiharu Ariza 511518c759 add api test for tt var advance widths
stripped HVAR from SourceSansVariable-Roman.abc.ttf so glyf gets parsed
2019-03-29 18:26:20 -07:00
Michiharu Ariza bee8d86671 fix build 2019-03-29 18:26:20 -07:00
Michiharu Ariza f74712a4e0 fix composite glyf extents 2019-03-29 18:26:20 -07:00
Michiharu Ariza cd817e7955 fix unpack_points 2019-03-29 18:26:20 -07:00
Michiharu Ariza a35e3dfc77 fix infer_delta
code cleanup
2019-03-29 18:26:20 -07:00
Michiharu Ariza 4f4fbb1d5e added explicit casts to metrics 2019-03-29 18:25:52 -07:00
Michiharu Ariza c302ec6d94 moved most of var code from gvar to glyf
initialize phantom points from metrics from htmx/vmtx & glyf bbox before execution
added source file hb-ot-hmtx-table.cc to call glyf from hmtx/vmtx indirectly & temporarily, workaround a cyclic reference between the two
2019-03-29 18:25:52 -07:00
Michiharu Ariza bd040a4354 add components transformation 2019-03-29 18:25:35 -07:00
Michiharu Ariza 139e87b56c fix tt var extents & add test 2019-03-29 18:25:35 -07:00
Michiharu Ariza 9584b090bb cff2 subset fuzzer issues (#1619)
* add check to FDArray::serialize

* add test files

* fix off by one
2019-03-29 18:25:21 -07:00
Michiharu Ariza 161e61fc3b minor edits 2019-03-29 18:25:06 -07:00
Michiharu Ariza ebbfe36510 calculate VF advance widths from gvar & glyf 2019-03-29 18:24:24 -07:00
Michiharu Ariza 9690461a91 Added hb-ot-var-gvar-table.hh
implemented sanitize()
placeholder subset()
some code cleanup
2019-03-29 18:22:32 -07:00
Michiharu Ariza 9168b32a1b renamed hb_map2_t to hb_bimap_h in its own .hh 2019-03-29 18:21:50 -07:00
Michiharu Ariza d102c7a652 unuse set in hb_map2_t impl
also some code cleanup
2019-03-29 18:21:15 -07:00
Michiharu Ariza dd67214210 subset HVAR
Re-implemented & repurposed CFF:remap_t as hb_map2_t (moved to hb-ot-layout-common.hh) for two-way mapping for use by index map subsetting.
Hooked up HVAR subsetter through _subset2.
Some renaming in CFF code.
2019-03-29 18:20:22 -07:00
Ebrahim Byagowi 5bbe78a0f3 Allow zero length ranges in sanitization (#1617)
Fixes fvar table sanitization where there are no named instance
by allowing zero length ranges starting from Null() address.

Fixes #1607
2019-03-29 18:15:00 -07:00
Khaled Hosny ee8719eaaf [ci] Cache FreeType build on Travis 2019-03-29 18:15:00 -07:00
David Corbett 5d7725ad1a Categorize U+09FC as Consonant_Placeholder 2019-03-29 18:15:00 -07:00
Khaled Hosny b150bb4a49 [ci] Simplify and fix Travis CI macOS build 2019-03-29 18:15:00 -07:00
Michiharu Ariza 628d457c87 add gvar::get_extents 2019-03-29 18:15:00 -07:00
Behdad Esfahbod 7b27fe5255 Remove redundant hb_ot_layout_lookup_would_substitute_fast 2019-03-29 18:15:00 -07:00
Khaled Hosny 56164f754f [doc] Add placeholder since version for new flag 2019-03-29 18:15:00 -07:00
David Corbett cb758f2669 Remove obsolete overrides from Indic/USE scripts 2019-03-29 18:15:00 -07:00
Eric Muller 40c4bd3e12 Update generation code for hb-ot-shape-complex-vowel-constraints.cc. Remove 'unlikely' 2019-03-29 18:15:00 -07:00
Eric Muller ce7f2c4da3 Fix coding style. 2019-03-29 18:15:00 -07:00
Eric Muller a86356913e Add a flag to hb_buffer_t to prevent the insertion of dotted circles on incorrect character sequences.
Current behavior unchanged if this flag is not set (and it isn't by default).
2019-03-29 18:15:00 -07:00
Ebrahim Byagowi 9b5556d985 Add a macOS 10.14.3 fonts tests (#1608) 2019-03-29 18:15:00 -07:00