harfbuzz/test/api
David Corbett 91067716f5 Refactor the selection of script and language tags
The old hb-ot-tag.cc functions, `hb_ot_tags_from_script` and
`hb_ot_tag_from_language`, are now wrappers around a new function:
`hb_ot_tags`. It converts a script and a language to arrays of script
tags and language tags. This will make it easier to add new script tags
to scripts, like 'dev3'. It also allows for language fallback chains;
nothing produces more than one language yet though.

Where the old functions return the default tags 'DFLT' and 'dflt',
`hb_ot_tags` returns an empty array. The caller is responsible for
using the default tag in that case.

The new function also adds a new private use subtag syntax for script
overrides: "x-hbscabcd" requests a script tag of 'abcd'.

The old hb-ot-layout.cc functions,`hb_ot_layout_table_choose_script` and
`hb_ot_layout_script_find_language` are now wrappers around the new
functions `hb_ot_layout_table_select_script` and
`hb_ot_layout_script_select_language`. They are essentially the same as
the old ones plus a tag count parameter.

Closes #495.
2018-10-11 13:54:28 -04:00
..
fonts [subset] Fix hdmx subsetted size calculation. 2018-09-05 19:31:55 -07:00
.valgrind-suppressions Move valgrind suppressions to the correct directory 2013-03-06 20:20:45 -05:00
CMakeLists.txt CMake: Fix running tests on Windows 2018-03-13 20:17:58 +08:00
Makefile.am Remove HAVE_OT 2018-10-10 16:32:35 -04:00
hb-subset-test.h [test] Use an in-repo font for test-multithread (#1218) 2018-10-03 21:26:58 +03:30
hb-test.h [test] Fix -Wunused-parameter warnings 2018-09-30 18:14:50 +02:00
test-blob.c [test] Fix -Wunused-parameter warnings 2018-09-30 18:14:50 +02:00
test-buffer.c Minor, fix -Weverthing bot warnings (#1210) 2018-10-02 11:07:06 +03:30
test-c.c Remove HAVE_OT 2018-10-10 16:32:35 -04:00
test-collect-unicodes.c test/api/test-subset-*.c: Fix build on pre-C99 2018-10-09 09:43:36 -04:00
test-common.c Rename hb-*private.hh to hb-*.hh 2018-08-25 22:36:36 -07:00
test-cplusplus.cc Rename test/ to test/api/ 2012-01-19 14:52:02 -05:00
test-font.c [test] Fix -Wunused-parameter warnings 2018-09-30 18:14:50 +02:00
test-multithread.c [ft] Use mutex to lock access to FT_Face 2018-10-09 16:24:50 -04:00
test-object.c [test] Fix test-object 2015-08-30 17:33:04 +01:00
test-ot-color.c [test] Fix -Wunused-parameter warnings 2018-09-30 18:14:50 +02:00
test-ot-math.c Fix test-ot-math leak issue 2018-09-22 17:05:52 +03:30
test-ot-tag.c Refactor the selection of script and language tags 2018-10-11 13:54:28 -04:00
test-set.c Remove test for deprecated hb_set_invert() 2018-10-09 01:05:28 -04:00
test-shape.c Port test off deprecated API 2018-10-09 07:48:52 -04:00
test-subset-cmap.c [subset] Get cmap tests passing again. 2018-05-04 11:20:03 -07:00
test-subset-glyf.c test/api/test-subset-*.c: Fix build on pre-C99 2018-10-09 09:43:36 -04:00
test-subset-hdmx.c test/api/test-subset-*.c: Fix build on pre-C99 2018-10-09 09:43:36 -04:00
test-subset-hmtx.c test/api/test-subset-*.c: Fix build on pre-C99 2018-10-09 09:43:36 -04:00
test-subset-os2.c test/api: Fix building subset tests 2018-03-13 20:17:58 +08:00
test-subset-post.c test/api/test-subset-*.c: Fix build on pre-C99 2018-10-09 09:43:36 -04:00
test-subset-vmtx.c test/api/test-subset-*.c: Fix build on pre-C99 2018-10-09 09:43:36 -04:00
test-subset.c test/api/test-subset-*.c: Fix build on pre-C99 2018-10-09 09:43:36 -04:00
test-unicode.c Remove deprecated decompose_compatibility stuff 2018-10-09 00:39:42 -04:00
test-version.c Rename HB_VERSION_CHECK and hb_version_check to "atleast" 2014-06-20 14:09:57 -04:00