harfbuzz/test/api
Behdad Esfahbod d2998faad3
Merge pull request #3410 from harfbuzz/boring-expansion
[Boring Expansion] >64k loca & hmtx tables

This does two things:

The num-glyphs reported by the face now is the maximum reported by the maxp and that deduced from the length of the loca table; I think this is the right thing to do anyway; According to OpenType such loca tables are invalid.

The interpretation hmtx tables that have excessive bytes at the end, again, invalid according to OpenType, has changed. Previously we were interpreting those excessive bytes as extra lsb values. Now we interpret them as extra advance values, the last of which is repeated for all missing glyphs. Again, these are tables that are invalid according to OpenType, and the advances are for glyph indices beyond maxp table's num-glyphs.

The combined effect is that the font can have shapes and advances for gid's beyond the maxp limit of 64k. In fact, maxp table becomes optional.
2022-02-16 14:37:09 -06:00
..
fonts Add a test font scale rounding behavior 2021-11-01 17:59:48 -07:00
Makefile.am Merge pull request #3410 from harfbuzz/boring-expansion 2022-02-16 14:37:09 -06:00
hb-subset-test.h [subset] In preperation for 3.0.0 release remove legacy subsetting api methods. 2021-09-16 15:31:29 -06:00
hb-test.h [test/api] Fix leaks 2022-02-15 14:30:12 -06:00
meson.build [test] Add test for current hmtx logic 2022-02-14 15:02:31 -06:00
test-aat-layout.c [test] minor, fix copyright 2019-05-28 13:54:45 +04:30
test-baseline.c [base] Add hb_ot_layout_get_baseline API 2019-07-30 04:42:51 +04:30
test-be-glyph-advance.c [config] Add HB_NO_BORING_EXPANSION 2022-02-15 17:17:49 -06:00
test-be-num-glyphs.c [config] Add HB_NO_BORING_EXPANSION 2022-02-15 17:17:49 -06:00
test-blob.c [test] Fix -Wunused-parameter warnings 2018-09-30 18:14:50 +02:00
test-buffer.c [test] Fix unused-var warning 2021-02-22 17:11:36 -07:00
test-c.c [feat] Turn AAT feature id into enum 2018-11-25 01:16:02 -05:00
test-collect-unicodes.c [cmap] Check GID before adding ranges in format 4 & 12 2019-10-29 02:09:13 +02:00
test-common.c Rename hb-*private.hh to hb-*.hh 2018-08-25 22:36:36 -07:00
test-cplusplus.cc
test-draw.c [draw/test] Swap a freetype test case with a simpler one 2022-02-14 01:54:33 +03:30
test-font-scale.c Add a test font scale rounding behavior 2021-11-01 17:59:48 -07:00
test-font.c [test] Don't call deprecated API 2019-05-13 14:34:53 -07:00
test-map.c [map] fix incorrect population count in hash map. 2021-08-10 14:00:55 -06:00
test-multithread.c [test] Unify font file opening across the tests 2018-10-21 11:27:05 +03:30
test-object.c Turn 8 spaces to tab across the project 2019-08-27 02:40:41 +04:30
test-ot-alternates.c [layout] Rename _get_alternates to _get_glyph_alternates 2020-06-18 22:56:07 +04:30
test-ot-collect-glyphs.c [test] More lookup_collect_glyphs() tests 2021-08-03 10:06:27 -06:00
test-ot-color.c [test] Avoid alloca use as clang complain 2019-08-29 14:55:54 +04:30
test-ot-extents-cff.c Apply rounding correctly when calculating glyph extents for CFF and CFF2; adjust expected test results 2021-02-19 16:53:21 -07:00
test-ot-face.c [draw] Virtualize hb_font_draw_glyph() into hb_font_get_glyph_shape() 2022-02-13 13:21:14 -06:00
test-ot-glyphname.c implement SID to glyph ID mapping with predefined Charset 2020-04-18 15:42:30 +04:30
test-ot-layout.c [test] hb_ot_layout_language_get_feature_tags() 2021-08-11 16:33:37 -06:00
test-ot-ligature-carets.c [tests] minor, ligcarets is fetched from gdef not gsub 2020-07-06 00:10:16 +04:30
test-ot-math.c [ot-math] Add hb_ot_math_get_glyph_kernings 2022-02-09 12:03:07 -06:00
test-ot-meta.c Rename hb_ot_meta_get_entries() to +hb_ot_meta_get_entry_tags() 2019-08-13 21:02:47 -07:00
test-ot-metrics-tt-var.c calculate extents based on scaled then rounded values; undo two of the earlier test result adjustments 2021-02-19 16:53:21 -07:00
test-ot-metrics.c [metrics] Make values match their enum type naming 2019-07-30 03:48:23 +04:30
test-ot-name.c [test] Add one more test for hb_ot_layout_feature_get_characters 2020-06-19 23:27:39 +04:30
test-ot-tag.c [ot-tag] Add HB_SCRIPT_MATH (Zmth) and map it to OT ‘math’ tag 2022-02-08 12:40:15 -06:00
test-set.c [test-set] Fix compiler warnings 2021-08-24 23:16:24 -06:00
test-shape.c [test] Add test for aaa85931f3 2019-08-20 14:22:57 -07:00
test-style.c [style] Prepare for release 2021-09-13 10:10:10 -06:00
test-subset-cbdt.c parent 777ba47b50 2020-01-31 16:37:30 -05:00
test-subset-cff1.c [subset] switch ..._set_flags to not take a mask. 2021-07-29 18:30:27 -07:00
test-subset-cff2.c [subset] switch ..._set_flags to not take a mask. 2021-07-29 18:30:27 -07:00
test-subset-cmap.c [subset] Add support for "--gids" option 2020-05-11 15:28:58 -07:00
test-subset-colr.c Refactor to two iterators 2020-01-29 10:21:00 -05:00
test-subset-drop-tables.c [subset] In preperation for 3.0.0 release remove legacy subsetting api methods. 2021-09-16 15:31:29 -06:00
test-subset-glyf.c [subset] In preperation for 3.0.0 release remove legacy subsetting api methods. 2021-09-16 15:31:29 -06:00
test-subset-gpos.c [subset] In preperation for 3.0.0 release remove legacy subsetting api methods. 2021-09-16 15:31:29 -06:00
test-subset-gvar.c [subset] switch ..._set_flags to not take a mask. 2021-07-29 18:30:27 -07:00
test-subset-hdmx.c [subset] Remove hb_subset(). Leaving just hb_subset_or_fail(). 2021-07-22 12:14:47 -07:00
test-subset-hmtx.c [subset] Remove hb_subset(). Leaving just hb_subset_or_fail(). 2021-07-22 12:14:47 -07:00
test-subset-hvar.c [subset] switch ..._set_flags to not take a mask. 2021-07-29 18:30:27 -07:00
test-subset-nameids.c [subset] Add unit test for str de-dup 2019-04-26 15:24:47 -07:00
test-subset-os2.c [test] Unify font file opening across the tests 2018-10-21 11:27:05 +03:30
test-subset-post.c [test] Unify font file opening across the tests 2018-10-21 11:27:05 +03:30
test-subset-sbix.c Add unittests 2020-01-15 13:36:01 -08:00
test-subset-vmtx.c [test] Unify font file opening across the tests 2018-10-21 11:27:05 +03:30
test-subset-vvar.c [subset] switch ..._set_flags to not take a mask. 2021-07-29 18:30:27 -07:00
test-subset.c [subset] In preperation for 3.0.0 release remove legacy subsetting api methods. 2021-09-16 15:31:29 -06:00
test-unicode.c [Unicode 14] Add tests 2021-09-14 18:38:50 -04:00
test-var-coords.c Remove remaining traces of HB_EXPERIMENTAL_API 2022-02-13 13:21:14 -06:00
test-version.c