laag-harfbuzz 1.7.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +57 -0
- data/LICENSE.txt +36 -0
- data/README.org +34 -0
- data/ext/laag/harfbuzz/extconf.rb +16 -0
- data/laag-harfbuzz.gemspec +20 -0
- data/lib/laag/harfbuzz.rb +29 -0
- data/vendor/github.com/harfbuzz/harfbuzz/.ci/deploy-docs.sh +36 -0
- data/vendor/github.com/harfbuzz/harfbuzz/.ci/fail.sh +18 -0
- data/vendor/github.com/harfbuzz/harfbuzz/.ci/run-coveralls.sh +14 -0
- data/vendor/github.com/harfbuzz/harfbuzz/.ci/trigger-coverity.sh +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/.circleci/config.yml +190 -0
- data/vendor/github.com/harfbuzz/harfbuzz/.editorconfig +18 -0
- data/vendor/github.com/harfbuzz/harfbuzz/.travis.yml +89 -0
- data/vendor/github.com/harfbuzz/harfbuzz/AUTHORS +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/BUILD.md +50 -0
- data/vendor/github.com/harfbuzz/harfbuzz/CMakeLists.txt +848 -0
- data/vendor/github.com/harfbuzz/harfbuzz/COPYING +36 -0
- data/vendor/github.com/harfbuzz/harfbuzz/Makefile.am +85 -0
- data/vendor/github.com/harfbuzz/harfbuzz/NEWS +1832 -0
- data/vendor/github.com/harfbuzz/harfbuzz/README +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/README.md +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/README.python +30 -0
- data/vendor/github.com/harfbuzz/harfbuzz/RELEASING.md +99 -0
- data/vendor/github.com/harfbuzz/harfbuzz/THANKS +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/TODO +42 -0
- data/vendor/github.com/harfbuzz/harfbuzz/appveyor.yml +61 -0
- data/vendor/github.com/harfbuzz/harfbuzz/autogen.sh +48 -0
- data/vendor/github.com/harfbuzz/harfbuzz/configure.ac +542 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/HarfBuzz.png +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/HarfBuzz.svg +277 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/Makefile.am +123 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/harfbuzz-docs.xml +210 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/harfbuzz-overrides.txt +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/harfbuzz-sections.txt +627 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-buffers-language-script-and-direction.xml +77 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-clusters.xml +304 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-fonts-and-faces.xml +18 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-glyph-information.xml +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-hello-harfbuzz.xml +183 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-install-harfbuzz.xml +70 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-opentype-features.xml +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/usermanual-what-is-harfbuzz.xml +115 -0
- data/vendor/github.com/harfbuzz/harfbuzz/docs/version.xml.in +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/git.mk +400 -0
- data/vendor/github.com/harfbuzz/harfbuzz/harfbuzz.doap +24 -0
- data/vendor/github.com/harfbuzz/harfbuzz/m4/ax_code_coverage.m4 +264 -0
- data/vendor/github.com/harfbuzz/harfbuzz/m4/ax_cxx_compile_stdcxx.m4 +982 -0
- data/vendor/github.com/harfbuzz/harfbuzz/m4/ax_pthread.m4 +485 -0
- data/vendor/github.com/harfbuzz/harfbuzz/m4/pkg.m4 +157 -0
- data/vendor/github.com/harfbuzz/harfbuzz/mingw32.sh +22 -0
- data/vendor/github.com/harfbuzz/harfbuzz/mingw64.sh +22 -0
- data/vendor/github.com/harfbuzz/harfbuzz/replace-enum-strings.cmake +21 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/Makefile.am +445 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/Makefile.sources +214 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/check-c-linkage-decls.sh +27 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/check-externs.sh +22 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/check-header-guards.sh +24 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/check-includes.sh +44 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/check-libstdc++.sh +44 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/check-static-inits.sh +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/check-symbols.sh +62 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/dev-run.sh +98 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/dump-indic-data.cc +43 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/dump-khmer-data.cc +43 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/dump-myanmar-data.cc +43 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/dump-use-data.cc +38 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/gen-arabic-table.py +269 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/gen-def.py +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/gen-indic-table.py +260 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/gen-unicode-ranges.py +52 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/gen-use-table.py +484 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/harfbuzz-config.cmake.in +82 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/harfbuzz-gobject.pc.in +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/harfbuzz-icu.pc.in +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/harfbuzz-subset.pc.in +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/harfbuzz.pc.in +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-aat-layout-ankr-table.hh +80 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-aat-layout-common-private.hh +728 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-aat-layout-kerx-table.hh +339 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-aat-layout-morx-table.hh +728 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-aat-layout-private.hh +43 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-aat-layout-trak-table.hh +201 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-aat-layout.cc +143 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-atomic-private.hh +189 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-blob.cc +504 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-blob.h +129 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer-deserialize-json.hh +643 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer-deserialize-json.rl +132 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer-deserialize-text.hh +571 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer-deserialize-text.rl +126 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer-private.hh +388 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer-serialize.cc +486 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer.cc +2010 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-buffer.h +562 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-common.cc +1050 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-common.h +397 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-coretext.cc +1401 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-coretext.h +64 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-debug.hh +444 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-deprecated.h +65 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-directwrite.cc +931 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-directwrite.h +38 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-dsalgs.hh +161 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-face-private.hh +111 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-face.cc +506 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-face.h +121 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-fallback-shape.cc +149 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-font-private.hh +561 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-font.cc +1846 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-font.h +641 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ft.cc +783 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ft.h +132 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-glib.cc +431 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-glib.h +56 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-gobject-enums.cc.tmpl +73 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-gobject-enums.h.tmpl +56 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-gobject-structs.cc +83 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-gobject-structs.h +138 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-gobject.h +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-graphite2.cc +421 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-graphite2.h +52 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-icu.cc +394 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-icu.h +52 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-mutex-private.hh +141 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-object-private.hh +196 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-open-file-private.hh +372 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-open-type-private.hh +1238 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-cmap-table.hh +789 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-color-cbdt-table.hh +471 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-color-colr-table.hh +142 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-color-cpal-table.hh +208 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-color.cc +183 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-font.cc +281 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-font.h +45 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-glyf-table.hh +473 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-hdmx-table.hh +198 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-head-table.hh +154 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-hhea-table.hh +98 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-hmtx-table.hh +328 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-kern-table.hh +394 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-base-table.hh +655 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-common-private.hh +1773 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-gdef-table.hh +459 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-gpos-table.hh +1654 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-gsub-table.hh +1364 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-gsubgpos-private.hh +2374 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-jstf-table.hh +234 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout-private.hh +683 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout.cc +1313 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-layout.h +338 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-map-private.hh +250 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-map.cc +336 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-math-table.hh +722 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-math.cc +253 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-math.h +209 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-maxp-table.hh +148 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-name-table.hh +138 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-os2-table.hh +181 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-os2-unicode-ranges.hh +247 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-post-macroman.hh +294 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-post-table.hh +282 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-arabic-fallback.hh +354 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-arabic-private.hh +50 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-arabic-table.hh +398 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-arabic-win1256.hh +323 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-arabic.cc +721 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-default.cc +46 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-hangul.cc +431 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-hebrew.cc +186 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-indic-machine.hh +1319 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-indic-machine.rl +125 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-indic-private.hh +401 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-indic-table.cc +486 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-indic.cc +1569 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-khmer-machine.hh +294 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-khmer-machine.rl +107 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-khmer-private.hh +124 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-khmer.cc +835 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-myanmar-machine.hh +413 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-myanmar-machine.rl +129 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-myanmar-private.hh +171 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-myanmar.cc +401 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-private.hh +397 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-thai.cc +383 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-tibetan.cc +63 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-use-machine.hh +502 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-use-machine.rl +176 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-use-private.hh +97 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-use-table.cc +788 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-complex-use.cc +612 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-fallback-private.hh +53 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-fallback.cc +559 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-normalize-private.hh +69 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-normalize.cc +433 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape-private.hh +108 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape.cc +970 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-shape.h +53 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-tag.cc +1094 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-tag.h +59 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-var-avar-table.hh +149 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-var-fvar-table.hh +209 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-var-hvar-table.hh +165 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-var-mvar-table.hh +114 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-var.cc +159 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot-var.h +105 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ot.h +45 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-private.hh +1073 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-set-digest-private.hh +179 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-set-private.hh +658 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-set.cc +519 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-set.h +165 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shape-plan-private.hh +67 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shape-plan.cc +578 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shape-plan.h +108 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shape.cc +161 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shape.h +62 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shaper-impl-private.hh +43 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shaper-list.hh +58 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shaper-private.hh +124 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-shaper.cc +111 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-string-array.hh +81 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset-glyf.cc +307 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset-glyf.hh +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset-input.cc +119 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset-plan.cc +227 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset-plan.hh +85 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset-private.hh +62 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset.cc +339 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-subset.h +83 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn.cc +273 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn/COPYING +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn/Makefile.am +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn/Makefile.sources +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn/README +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn/ucdn.c +360 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn/ucdn.h +453 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-ucdn/ucdn_db.h +5540 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-unicode-private.hh +371 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-unicode.cc +563 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-unicode.h +471 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-uniscribe.cc +1039 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-uniscribe.h +46 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-utf-private.hh +282 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-version.h +66 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-version.h.in +66 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb-warning.cc +39 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/hb.h +51 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/main.cc +201 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/sample.py +78 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/test-buffer-serialize.cc +129 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/test-size-params.cc +94 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/test-unicode-ranges.cc +67 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/test-would-substitute.cc +104 -0
- data/vendor/github.com/harfbuzz/harfbuzz/src/test.cc +134 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/CMakeLists.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/Makefile.am +15 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/.valgrind-suppressions +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/CMakeLists.txt +29 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/Makefile.am +169 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Inconsolata-Regular.ab.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Inconsolata-Regular.abc.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Inconsolata-Regular.abc.widerc.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Inconsolata-Regular.ac.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Inconsolata-Regular.ac.widerc.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/MathTestFontEmpty.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/MathTestFontFull.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/MathTestFontNone.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/MathTestFontPartial1.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/MathTestFontPartial2.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/MathTestFontPartial3.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/MathTestFontPartial4.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/README +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.abc.cmap-format12-only.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.abc.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.ac.cmap-format12-only.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.ac.nohints.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.ac.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.components.1fc.nohints.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.components.subset.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/fonts/Roboto-Regular.components.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/hb-subset-test.h +136 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/hb-test.h +314 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-blob.c +349 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-buffer.c +884 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-c.c +64 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-common.c +225 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-cplusplus.cc +30 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-font.c +550 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-object.c +375 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-ot-color.c +319 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-ot-math.c +712 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-ot-tag.c +320 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-set.c +399 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-shape.c +208 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-subset-cmap.c +82 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-subset-glyf.c +183 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-subset-hdmx.c +81 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-subset-hmtx.c +162 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-subset-os2.c +59 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-unicode.c +937 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/api/test-version.c +81 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/fuzzing/CMakeLists.txt +18 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/fuzzing/Makefile.am +52 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/fuzzing/README +21 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/fuzzing/hb-fuzzer.cc +52 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/fuzzing/hb-fuzzer.hh +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/fuzzing/main.cc +21 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/fuzzing/run-fuzzer-tests.py +32 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/CMakeLists.txt +17 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/Makefile.am +35 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/README.md +41 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/Makefile.am +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/COPYING +95 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/Makefile.am +20 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/Makefile.sources +47 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/0509e80afb379d16560e9e47bdd7d888bebdebc6.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/051d92f8bc6ff724511b296c27623f824de256e9.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/074a5ae6b19de8f29772fdd5df2d3d833f81f5e6.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/07f054357ff8638bac3711b422a1e31180bba863.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/1735326da89f0818cd8c51a0600e9789812c0f94.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/191826b9643e3f124d865d617ae609db6a2ce203.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/1a3d8f381387dd29be1e897e4b5100ac8b4829e1.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/1a6f1687b7a221f9f2c834b0b360d3c8463b6daf.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/1c04a16f32a39c26c851b7fc014d2e8d298ba2b8.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/1c2c3fc37b2d4c3cb2ef726c6cdaaabd4b7f3eb9.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/1c2fb74c1b2aa173262734c1f616148f1648cfd6.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/1ed7e9064f008f62de6ff0207bb4dd29409597a5.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/205edd09bd3d141cc9580f650109556cc28b22cb.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/217a934cfe15c548b572c203dceb2befdf026462.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/21b7fb9c1eeae260473809fbc1fe330f66a507cd.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/226bc2deab3846f1a682085f70c67d0421014144.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/233c1e252e737ca79e03a9fd56b71aaa4a230f2b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/243798dd281c1c77c065958e1ff467420faa9bde.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/24b8d24d00ae86f49791b746da4c9d3f717a51a8.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/270b89df543a7e48e206a2d830c0e10e5265c630.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/2de1ab4907ab688c0cfc236b0bf51151db38bf2e.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/319f5d7ebffbefc5c5e6569f8cea73444d7a7268.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/341421e629668b1a1242245d39238ca48432d35d.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/3493e92eaded2661cadde752a39f9d58b11f0326.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/3511ff5c1647150595846ac414c595cccac34f18.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/37033cc5cf37bb223d7355153016b6ccece93b28.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/373e67bf41ca264e260a9716162b71a23549e885.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/375d6ae32a3cbe52fbf81a4e5777e3377675d5a3.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/3cae6bfe5b57c07ba81ddbd54c02fe4f3a1e3bf6.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/3d0b77a2360aa6faa1385aaa510509ab70dfbeff.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/43979b90b2dd929723cf4fe1715990bcb9c9a56b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/43ef465752be9af900745f72fe29cb853a1401a5.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/45855bc8d46332b39c4ab9e2ee1a26b1f896da6b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/49c9f7485c1392fa09a1b801bc2ffea79275f22e.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/4fac3929fc3332834e93673780ec0fe94342d193.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/5028afb650b1bb718ed2131e872fbcce57828fff.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/53374c7ca3657be37efde7ed02ae34229a56ae1f.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/54674a3111d209fb6be0ed31745314b7a8d2c244.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/558661aa659912f4d30ecd27bd09835171a8e2b0.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/55c88ebbe938680b08f92c3de20713183e0c7481.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/56cfd0e18d07f41c38e9598545a6d369127fc6f9.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/573d3a3177c9a8646e94c8a0d7b224334340946a.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/59a585a63b3df608fbeef00956c8c108deec7de6.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/5a5daf5eb5a4db77a2baa3ad9c7a6ed6e0655fa8.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/5dfad7735c6a67085f1b90d4d497e32907db4c78.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/641bd9db850193064d17575053ae2bf8ec149ddc.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/663aef6b019dbf45ffd74089e2b5f2496ceceb18.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/6991b13ce889466be6de3f66e891de2bc0f117ee.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/6ff0fbead4462d9f229167b4e6839eceb8465058.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/706c5d7b625f207bc0d874c67237aad6f1e9cd6f.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/7a37dc4d5bf018456aea291cee06daf004c0221c.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/7e14e7883ed152baa158b80e207b66114c823a8b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/8099955657a54e9ee38a6ba1d6f950ce58e3cc25.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/81c368a33816fb20e9f647e8f24e2180f4720263.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/8228d035fcd65d62ec9728fb34f42c63be93a5d3.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/8240789f6d12d4cfc4b5e8e6f246c3701bcf861f.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/82f4f3b57bb55344e72e70231380202a52af5805.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/8454d22037f892e76614e1645d066689a0200e61.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/85414f2552b654585b7a8d13dcc3e8fd9f7970a3.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/856ff9562451293cbeff6f396d4e3877c4f0a436.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/85fe0be440c64ac77699e21c2f1bd933a919167e.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/87f85d17d26f1fe9ad28d7365101958edaefb967.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/94a5d6fb15a27521fba9ea4aee9cb39b2d03322a.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/96490dd2ff81233b335a650e7eb660e0e7b2eeea.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/98b7887cff91f722b92a8ff800120954606354f9.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/9d8a94a67932a3ab75a596fc8b5c6d0392ca9e49.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a014549f766436cf55b2ceb40e462038938ee899.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a02a7f0ad42c2922cb37ad1358c9df4eb81f1bca.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a34a7b00f22ffb5fd7eef6933b81c7e71bc2cdfb.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a34a9191d9376bda419836effeef7e75c1386016.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a69118c2c2ada48ff803d9149daa54c9ebdae30e.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a6c76d1bafde4a0b1026ebcc932d2e5c6fd02442.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a919b33197965846f21074b24e30250d67277bce.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/a98e908e2ed21b22228ea59ebcc0f05034c86f2e.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/af3086380b743099c54a3b11b96766039ea62fcd.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/b151cfcdaa77585d77f17a42158e0873fc8e2633.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/b6acef662e0beb8d5fcf5b61c6b0ca69537b7402.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/b9e2aaa0d75fcef6971ec3a96d806ba4a6b31fe2.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/bb0c53752e85c3d28973ebc913287b8987d3dfe8.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/bb9473d2403488714043bcfb946c9f78b86ad627.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/bbf4a308c402f0678c3e82844892a4da2ebe598f.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/bf39b0e91ef9807f15a9e283a21a14a209fd2cfc.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/bf962d3202883a820aed019d9b5c1838c2ff69c6.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/c4e48b0886ef460f532fb49f00047ec92c432ec0.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/cc5f3d2d717fb6bd4dfae1c16d48a2cb8e12233b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/d23d76ea0909c14972796937ba072b5a40c1e257.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/d629e7fedc0b350222d7987345fe61613fa3929a.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/dd9f0c7c7c36f75a18be0cab1cddf8f3ab0f366b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/df768b9c257e0c9c35786c47cae15c46571d56be.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/e207635780b42f898d58654b65098763e340f5c7.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/e68a88939e0f06e34d2bc911f09b70890289c8fd.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/e88c339237f52d21e01c55f01b9c1b4cc14a0467.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/e90374e5e439e00725b4fe7a8d73db57c5a97f82.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/ee39587d13b2afa5499cc79e45780aa79293bbd4.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/ef2511f215aa3ca847cbfffbf861793b42170875.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/f22416c692720a7d46fadf4af99f4c9e094f00b9.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/f443753e8ffe8e8aae606cfba158e00334b6efb1.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/f499fbc23865022234775c43503bba2e63978fe1.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/f518eb6f6b5eec2946c9fbbbde44e45d46f5e2ac.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/f9b1dd4dcb515e757789a22cb4241107746fd3d0.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/fab39d60d758cb586db5a504f218442cd1395725.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/fbb6c84c9e1fe0c39e152fbe845e51fd81f6748e.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/fcdcffbdf1c4c97c05308d7600e4c283eb47dbca.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/fonts/ffa0f5d2d9025486d8469d8b1fdd983e7632499b.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/arabic-fallback-shaping.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/arabic-feature-order.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/arabic-like-joining.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/arabic-mark-order.tests +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/arabic-stch.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/automatic-fractions.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/cluster.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/color-fonts.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/context-matching.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/cursive-positioning.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/default-ignorables.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/emoji-flag-tags.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/fallback-positioning.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/fuzzed.tests +23 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/hangul-jamo.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/hyphens.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-consonant-with-stacker.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-init.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-joiner-candrabindu.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-joiners.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-old-spec.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-pref-blocking.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-script-extensions.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-special-cases.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/indic-syllable.tests +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/language-tags.tests +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/ligature-id.tests +36 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/mark-attachment.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/mark-filtering-sets.tests +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/mongolian-variation-selector.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/myanmar-syllable.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/simple.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/spaces.tests +17 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/tibetan-contractions-1.tests +60 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/tibetan-contractions-2.tests +53 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/tibetan-vowels.tests +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/use-marchen.tests +35 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/use-syllable.tests +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/use.tests +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/variations-rvrn.tests +100 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/vertical.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/in-house/tests/zero-width-marks.tests +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/COPYING +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/DISABLED +35 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/Makefile.am +26 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/Makefile.sources +66 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/README +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/extract-tests.py +49 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/AdobeVFPrototype-Subset.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/FDArrayTest257.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/FDArrayTest65535.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/NotoSansBalinese-Regular.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/NotoSansKannada-Regular.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/NotoSerifKannada-Regular.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/Selawik-README.md +60 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/Selawik-variable.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestAVAR.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestCMAP14.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestCMAPMacTurkish.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestCVARGVAROne.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestCVARGVARTwo.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGLYFOne.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGPOSFour.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGPOSOne.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGPOSThree.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGPOSTwo.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGSUBOne.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGVAREight.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGVARFour.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGVARNine.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGVAROne.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGVARThree.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestGVARTwo.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestHVAROne.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestHVARTwo.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestKERNOne.otf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXEight.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXEighteen.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXEleven.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXFour.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXFourteen.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXNine.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXOne.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXSeventeen.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXSixteen.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTen.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXThirteen.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXThree.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwelve.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwenty.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwentyfive.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwentyone.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwentysix.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwentythree.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwentytwo.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestMORXTwo.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestShapeAran.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/TestShapeEthi.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/fonts/Zycon.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/AVAR-1.tests +17 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CFF-1.tests +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CFF-2.tests +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CFF2-1.tests +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CMAP-1.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CMAP-2.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CMAP-3.tests +20 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CVAR-1.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/CVAR-2.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GLYF-1.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GPOS-1.tests +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GPOS-2.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GPOS-3.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GPOS-4.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GPOS-5.tests +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GSUB-1.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GSUB-2.tests +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-1.tests +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-2.tests +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-3.tests +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-4.tests +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-5.tests +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-6.tests +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-7.tests +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-8.tests +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/GVAR-9.tests +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/HVAR-1.tests +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/HVAR-2.tests +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/KERN-1.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/KERN-2.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-1.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-10.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-11.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-12.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-13.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-14.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-16.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-17.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-18.tests +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-19.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-2.tests +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-20.tests +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-21.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-22.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-23.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-25.tests +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-26.tests +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-3.tests +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-4.tests +15 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-5.tests +25 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-6.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-7.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-8.tests +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/MORX-9.tests +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/SHARAN-1.tests +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/SHBALI-1.tests +22 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/SHBALI-2.tests +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/SHBALI-3.tests +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/SHKNDA-1.tests +34 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/SHKNDA-2.tests +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/tests/SHKNDA-3.tests +31 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/data/text-rendering-tests/update.sh +46 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb-diff +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb-diff-colorize +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb-diff-filter-failures +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb-diff-stat +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb-unicode-decode +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb-unicode-encode +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb-unicode-prettyname +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/hb_test_tools.py +571 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/record-test.sh +107 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/run-tests.py +98 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-persian/mehran.txt +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/2grams.txt +601 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/3grams.txt +3415 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/4grams.txt +6316 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/5grams.txt +5029 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/6grams.txt +1542 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/7grams.txt +354 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/8grams.txt +26 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/LICENSE +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/README +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/SOURCES +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/misc/diacritics/lam-alef.txt +28 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/misc/diacritics/language-arabic.txt +695 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/misc/diacritics/language-persian.txt +48 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/misc/diacritics/language-urdu.txt +188 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/misc/diacritics/ligature-components.txt +18 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/misc/diacritics/ligature-diacritics.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-arabic/misc/diacritics/mark-skipping.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-mongolian/misc/misc.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-mongolian/misc/non-joining.txt +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-mongolian/misc/poem.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-mongolian/misc/variation-selectors.txt +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-nko/misc/misc.txt +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-phags-pa/misc/misc.txt +14 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-syriac/misc/abbreviation-mark.txt +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-arabic/script-syriac/misc/alaph.txt +98 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-default/script-ethiopic/misc/misc.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-default/script-han/misc/cjk-compat.txt +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-default/script-hiragana/misc/kazuraki-liga-lines.txt +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-default/script-hiragana/misc/kazuraki-liga.txt +53 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-default/script-linear-b/misc/misc.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-default/script-tifinagh/misc/misc.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-hangul/script-hangul/misc/misc.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-hebrew/script-hebrew/misc/diacritics.txt +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +59 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt +131 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-assamese/utrrs/gsub/IndicFontFeatureGSUB.txt +139 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/misc/misc.txt +53 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/misc/reph.txt +14 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +36 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +58 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt +119 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-bengali/utrrs/gsub/IndicFontFeatureGSUB.txt +215 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/misc/dottedcircle.txt +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/misc/eyelash.txt +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/misc/joiners.txt +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/misc/misc.txt +36 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/misc/spec-deviations.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/misc/tricky-reordering.txt +5 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +45 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +14 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DevnagariSpecificAddition.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-GenericPunctuation.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +185 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt +185 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-devanagari/utrrs/gsub/IndicFontFeatureGSUB.txt +1367 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +34 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +170 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt +170 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gujarati/utrrs/gsub/IndicFontFeatureGSUB.txt +1156 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/misc/misc.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +38 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-GurmukhiSpecific.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +22 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-gurmukhi/utrrs/gsub/IndicFontFeatureGSUB.txt +152 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/misc/misc.txt +20 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/misc/right-matras.txt +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +14 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +188 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-kannada/utrrs/gsub/IndicFontFeatureGSUB.txt +306 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/misc/cibu.txt +188 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/misc/dot-reph.txt +15 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/misc/misc.txt +65 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +36 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +14 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-malayalam/utrrs/gsub/IndicFontFeatureGSUB.txt +254 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/misc/bindu.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/misc/misc.txt +28 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +34 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-OriyaSpecific.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +8 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-oriya/utrrs/gsub/IndicFontFeatureGSUB.txt +170 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/misc/extensive.txt +4390 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/misc/misc.txt +41 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/misc/reph.txt +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/misc/split-matras.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +41 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +17 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +18 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Punctuation.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gpos/IndicFontFeatureGPOS.txt +162 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Conjunct.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Rakaaraansaya.txt +41 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Repaya.txt +42 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Special-Cases.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-TouchingLetters.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Yansaya.txt +41 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/misc/misc.txt +43 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +23 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-CurrencySymbols.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Numerics.txt +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Symbols.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-TamilSymbol.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +64 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt +44 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-tamil/utrrs/gsub/IndicFontFeatureGSUB.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/misc/misc.txt +12 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/LICENSE +19 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/README +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/SOURCES +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt +38 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt +14 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt +385 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/indic/script-telugu/utrrs/gsub/IndicFontFeatureGSUB.txt +287 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/south-east-asian/script-javanese/misc.txt +54 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/south-east-asian/script-khmer/misc/misc.txt +23 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/south-east-asian/script-khmer/misc/other-marks-invalid.txt +4 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-indic/south-east-asian/script-khmer/misc/other-marks.txt +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-myanmar/script-myanmar/misc/misc.txt +7 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-myanmar/script-myanmar/misc/otspec.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-myanmar/script-myanmar/misc/utn11.txt +34 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-thai/script-lao/misc/sara-am.txt +20 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-thai/script-thai/misc/misc.txt +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-thai/script-thai/misc/phinthu.txt +16 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-thai/script-thai/misc/pua-shaping.txt +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-thai/script-thai/misc/sara-am.txt +20 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-tibetan/script-tibetan/misc/contractions.txt +612 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-tibetan/script-tibetan/misc/misc.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-use/script-batak/misc.txt +9 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-use/script-buginese/misc.txt +70 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-use/script-cham/misc.txt +3 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-use/script-kaithi/misc.txt +6 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-use/script-kharoshti/misc.txt +36 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-use/script-tai-tham/misc.txt +2 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/shaping/texts/in-house/shaper-use/script-tai-tham/torture.txt +23 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/CMakeLists.txt +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/Makefile.am +22 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/Makefile.am +24 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/Makefile.sources +10 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.default.61,62,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.default.61,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.default.61.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.default.62.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.default.63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.drop-hints.61,62,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.drop-hints.61,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.drop-hints.61.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.drop-hints.62.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/basics/Roboto-Regular.abc.drop-hints.63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/full-font/Roboto-Regular.default.1FC,21,41,20,62,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/full-font/Roboto-Regular.default.61,62,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/full-font/Roboto-Regular.drop-hints.1FC,21,41,20,62,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/expected/full-font/Roboto-Regular.drop-hints.61,62,63.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/fonts/Roboto-Regular.abc.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/fonts/Roboto-Regular.ttf +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/profiles/default.txt +0 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/profiles/drop-hints.txt +1 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/tests/basics.tests +13 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/data/tests/full-font.tests +11 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/generate-expected-outputs.py +47 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/run-tests.py +133 -0
- data/vendor/github.com/harfbuzz/harfbuzz/test/subset/subset_test_suite.py +87 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/Makefile.am +75 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/Makefile.sources +37 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/ansi-print.cc +427 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/ansi-print.hh +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/hb-fc-list.c +222 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/hb-fc.cc +149 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/hb-fc.h +46 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/hb-ot-shape-closure.cc +119 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/hb-shape.cc +165 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/hb-subset.cc +127 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/hb-view.cc +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/helper-cairo-ansi.cc +102 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/helper-cairo-ansi.hh +40 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/helper-cairo.cc +553 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/helper-cairo.hh +86 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/main-font-text.hh +96 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/options.cc +1026 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/options.hh +690 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/shape-consumer.hh +101 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/view-cairo.cc +133 -0
- data/vendor/github.com/harfbuzz/harfbuzz/util/view-cairo.hh +102 -0
- metadata +939 -0
@@ -0,0 +1,349 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright © 2011 Google, Inc.
|
3
|
+
*
|
4
|
+
* This is part of HarfBuzz, a text shaping library.
|
5
|
+
*
|
6
|
+
* Permission is hereby granted, without written agreement and without
|
7
|
+
* license or royalty fees, to use, copy, modify, and distribute this
|
8
|
+
* software and its documentation for any purpose, provided that the
|
9
|
+
* above copyright notice and the following two paragraphs appear in
|
10
|
+
* all copies of this software.
|
11
|
+
*
|
12
|
+
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
13
|
+
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
14
|
+
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
15
|
+
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
16
|
+
* DAMAGE.
|
17
|
+
*
|
18
|
+
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
19
|
+
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
21
|
+
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
22
|
+
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
23
|
+
*
|
24
|
+
* Google Author(s): Behdad Esfahbod
|
25
|
+
*/
|
26
|
+
|
27
|
+
#include "hb-test.h"
|
28
|
+
|
29
|
+
/* Unit tests for hb-blob.h */
|
30
|
+
|
31
|
+
#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_MPROTECT) && defined(HAVE_MMAP)
|
32
|
+
|
33
|
+
# define TEST_MMAP 1
|
34
|
+
|
35
|
+
#ifdef HAVE_SYS_MMAN_H
|
36
|
+
#ifdef HAVE_UNISTD_H
|
37
|
+
#include <unistd.h>
|
38
|
+
#endif /* HAVE_UNISTD_H */
|
39
|
+
#include <sys/mman.h>
|
40
|
+
#endif /* HAVE_SYS_MMAN_H */
|
41
|
+
|
42
|
+
#endif
|
43
|
+
|
44
|
+
|
45
|
+
static void
|
46
|
+
test_blob_empty (void)
|
47
|
+
{
|
48
|
+
hb_blob_t *blob;
|
49
|
+
unsigned int len;
|
50
|
+
const char *data;
|
51
|
+
char *data_writable;
|
52
|
+
|
53
|
+
g_assert (hb_blob_is_immutable (hb_blob_get_empty ()));
|
54
|
+
g_assert (hb_blob_get_empty () != NULL);
|
55
|
+
g_assert (hb_blob_get_empty () == hb_blob_create (NULL, 0, HB_MEMORY_MODE_READONLY, NULL, NULL));
|
56
|
+
g_assert (hb_blob_get_empty () == hb_blob_create ("asdf", 0, HB_MEMORY_MODE_READONLY, NULL, NULL));
|
57
|
+
g_assert (hb_blob_get_empty () == hb_blob_create (NULL, -1, HB_MEMORY_MODE_READONLY, NULL, NULL));
|
58
|
+
g_assert (hb_blob_get_empty () == hb_blob_create ("asdfg", -1, HB_MEMORY_MODE_READONLY, NULL, NULL));
|
59
|
+
|
60
|
+
blob = hb_blob_get_empty ();
|
61
|
+
g_assert (blob == hb_blob_get_empty ());
|
62
|
+
|
63
|
+
len = hb_blob_get_length (blob);
|
64
|
+
g_assert_cmpint (len, ==, 0);
|
65
|
+
|
66
|
+
data = hb_blob_get_data (blob, NULL);
|
67
|
+
g_assert (data == NULL);
|
68
|
+
|
69
|
+
data = hb_blob_get_data (blob, &len);
|
70
|
+
g_assert (data == NULL);
|
71
|
+
g_assert_cmpint (len, ==, 0);
|
72
|
+
|
73
|
+
data_writable = hb_blob_get_data_writable (blob, NULL);
|
74
|
+
g_assert (data_writable == NULL);
|
75
|
+
|
76
|
+
data_writable = hb_blob_get_data_writable (blob, &len);
|
77
|
+
g_assert (data_writable == NULL);
|
78
|
+
g_assert_cmpint (len, ==, 0);
|
79
|
+
}
|
80
|
+
|
81
|
+
static const char test_data[] = "test\0data";
|
82
|
+
|
83
|
+
static const char *blob_names[] = {
|
84
|
+
"duplicate",
|
85
|
+
"readonly",
|
86
|
+
"writable"
|
87
|
+
#ifdef TEST_MMAP
|
88
|
+
, "readonly-may-make-writable"
|
89
|
+
#endif
|
90
|
+
};
|
91
|
+
|
92
|
+
typedef struct
|
93
|
+
{
|
94
|
+
hb_blob_t *blob;
|
95
|
+
int freed;
|
96
|
+
char *data;
|
97
|
+
unsigned int len;
|
98
|
+
} fixture_t;
|
99
|
+
|
100
|
+
static void
|
101
|
+
free_up (fixture_t *fixture)
|
102
|
+
{
|
103
|
+
g_assert_cmpint (fixture->freed, ==, 0);
|
104
|
+
fixture->freed++;
|
105
|
+
}
|
106
|
+
|
107
|
+
static void
|
108
|
+
free_up_free (fixture_t *fixture)
|
109
|
+
{
|
110
|
+
free_up (fixture);
|
111
|
+
free (fixture->data);
|
112
|
+
}
|
113
|
+
|
114
|
+
|
115
|
+
#ifdef TEST_MMAP
|
116
|
+
static uintptr_t
|
117
|
+
get_pagesize (void)
|
118
|
+
{
|
119
|
+
uintptr_t pagesize = (uintptr_t) -1;
|
120
|
+
|
121
|
+
#if defined(HAVE_SYSCONF) && defined(_SC_PAGE_SIZE)
|
122
|
+
pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE);
|
123
|
+
#elif defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
|
124
|
+
pagesize = (uintptr_t) sysconf (_SC_PAGESIZE);
|
125
|
+
#elif defined(HAVE_GETPAGESIZE)
|
126
|
+
pagesize = (uintptr_t) getpagesize ();
|
127
|
+
#endif
|
128
|
+
|
129
|
+
g_assert (pagesize != (uintptr_t) -1);
|
130
|
+
|
131
|
+
return pagesize;
|
132
|
+
}
|
133
|
+
|
134
|
+
static void
|
135
|
+
free_up_munmap (fixture_t *fixture)
|
136
|
+
{
|
137
|
+
free_up (fixture);
|
138
|
+
munmap (fixture->data, get_pagesize ());
|
139
|
+
}
|
140
|
+
#endif
|
141
|
+
|
142
|
+
#include <errno.h>
|
143
|
+
static void
|
144
|
+
fixture_init (fixture_t *fixture, gconstpointer user_data)
|
145
|
+
{
|
146
|
+
hb_memory_mode_t mm = (hb_memory_mode_t) GPOINTER_TO_INT (user_data);
|
147
|
+
unsigned int len;
|
148
|
+
const char *data;
|
149
|
+
hb_destroy_func_t free_func;
|
150
|
+
|
151
|
+
switch (GPOINTER_TO_INT (user_data))
|
152
|
+
{
|
153
|
+
case HB_MEMORY_MODE_DUPLICATE:
|
154
|
+
data = test_data;
|
155
|
+
len = sizeof (test_data);
|
156
|
+
free_func = (hb_destroy_func_t) free_up;
|
157
|
+
break;
|
158
|
+
|
159
|
+
case HB_MEMORY_MODE_READONLY:
|
160
|
+
data = test_data;
|
161
|
+
len = sizeof (test_data);
|
162
|
+
free_func = (hb_destroy_func_t) free_up;
|
163
|
+
break;
|
164
|
+
|
165
|
+
case HB_MEMORY_MODE_WRITABLE:
|
166
|
+
data = malloc (sizeof (test_data));
|
167
|
+
memcpy ((char *) data, test_data, sizeof (test_data));
|
168
|
+
len = sizeof (test_data);
|
169
|
+
free_func = (hb_destroy_func_t) free_up_free;
|
170
|
+
break;
|
171
|
+
|
172
|
+
#ifdef TEST_MMAP
|
173
|
+
case HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE:
|
174
|
+
{
|
175
|
+
uintptr_t pagesize = get_pagesize ();
|
176
|
+
|
177
|
+
data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
|
178
|
+
g_assert (data != (char *) -1);
|
179
|
+
memcpy ((char *) data, test_data, sizeof (test_data));
|
180
|
+
mprotect ((char *) data, pagesize, PROT_READ);
|
181
|
+
len = sizeof (test_data);
|
182
|
+
free_func = (hb_destroy_func_t) free_up_munmap;
|
183
|
+
break;
|
184
|
+
}
|
185
|
+
#endif
|
186
|
+
|
187
|
+
default:
|
188
|
+
g_assert_not_reached ();
|
189
|
+
}
|
190
|
+
|
191
|
+
fixture->freed = 0;
|
192
|
+
fixture->data = (char *) data;
|
193
|
+
fixture->len = len;
|
194
|
+
fixture->blob = hb_blob_create (data, len, mm, fixture, free_func);
|
195
|
+
}
|
196
|
+
|
197
|
+
static void
|
198
|
+
fixture_finish (fixture_t *fixture, gconstpointer user_data)
|
199
|
+
{
|
200
|
+
hb_blob_destroy (fixture->blob);
|
201
|
+
g_assert_cmpint (fixture->freed, ==, 1);
|
202
|
+
}
|
203
|
+
|
204
|
+
|
205
|
+
static void
|
206
|
+
test_blob (fixture_t *fixture, gconstpointer user_data)
|
207
|
+
{
|
208
|
+
hb_blob_t *b = fixture->blob;
|
209
|
+
hb_memory_mode_t mm = GPOINTER_TO_INT (user_data);
|
210
|
+
unsigned int len;
|
211
|
+
const char *data;
|
212
|
+
char *data_writable;
|
213
|
+
unsigned int i;
|
214
|
+
|
215
|
+
g_assert (b);
|
216
|
+
|
217
|
+
len = hb_blob_get_length (b);
|
218
|
+
g_assert_cmpint (len, ==, fixture->len);
|
219
|
+
|
220
|
+
data = hb_blob_get_data (b, &len);
|
221
|
+
g_assert_cmpint (len, ==, fixture->len);
|
222
|
+
if (mm == HB_MEMORY_MODE_DUPLICATE) {
|
223
|
+
g_assert (data != fixture->data);
|
224
|
+
g_assert_cmpint (fixture->freed, ==, 1);
|
225
|
+
mm = HB_MEMORY_MODE_WRITABLE;
|
226
|
+
} else {
|
227
|
+
g_assert (data == fixture->data);
|
228
|
+
g_assert_cmpint (fixture->freed, ==, 0);
|
229
|
+
}
|
230
|
+
|
231
|
+
data_writable = hb_blob_get_data_writable (b, &len);
|
232
|
+
g_assert_cmpint (len, ==, fixture->len);
|
233
|
+
g_assert (data_writable);
|
234
|
+
g_assert (0 == memcmp (data_writable, fixture->data, fixture->len));
|
235
|
+
if (mm == HB_MEMORY_MODE_READONLY) {
|
236
|
+
g_assert (data_writable != data);
|
237
|
+
g_assert_cmpint (fixture->freed, ==, 1);
|
238
|
+
} else {
|
239
|
+
g_assert (data_writable == data);
|
240
|
+
}
|
241
|
+
|
242
|
+
data = hb_blob_get_data (b, &len);
|
243
|
+
g_assert_cmpint (len, ==, fixture->len);
|
244
|
+
g_assert (data == data_writable);
|
245
|
+
|
246
|
+
memset (data_writable, 0, fixture->len);
|
247
|
+
|
248
|
+
/* Now, make it immutable and watch get_data_writable() fail */
|
249
|
+
|
250
|
+
g_assert (!hb_blob_is_immutable (b));
|
251
|
+
hb_blob_make_immutable (b);
|
252
|
+
g_assert (hb_blob_is_immutable (b));
|
253
|
+
|
254
|
+
data_writable = hb_blob_get_data_writable (b, &len);
|
255
|
+
g_assert (!data_writable);
|
256
|
+
g_assert_cmpint (len, ==, 0);
|
257
|
+
|
258
|
+
data = hb_blob_get_data (b, &len);
|
259
|
+
g_assert_cmpint (len, ==, fixture->len);
|
260
|
+
for (i = 0; i < len; i++)
|
261
|
+
g_assert ('\0' == data[i]);
|
262
|
+
}
|
263
|
+
|
264
|
+
static void
|
265
|
+
test_blob_subblob (fixture_t *fixture, gconstpointer user_data)
|
266
|
+
{
|
267
|
+
hb_blob_t *b = fixture->blob;
|
268
|
+
hb_memory_mode_t mm = GPOINTER_TO_INT (user_data);
|
269
|
+
unsigned int len;
|
270
|
+
const char *data;
|
271
|
+
char *data_writable;
|
272
|
+
unsigned int i;
|
273
|
+
|
274
|
+
if (mm == HB_MEMORY_MODE_DUPLICATE) {
|
275
|
+
g_assert_cmpint (fixture->freed, ==, 1);
|
276
|
+
fixture->data = (char *) hb_blob_get_data (b, NULL);
|
277
|
+
} else {
|
278
|
+
g_assert_cmpint (fixture->freed, ==, 0);
|
279
|
+
}
|
280
|
+
fixture->blob = hb_blob_create_sub_blob (b, 1, fixture->len - 2);
|
281
|
+
hb_blob_destroy (b);
|
282
|
+
b = fixture->blob;
|
283
|
+
|
284
|
+
/* A sub-blob is always created READONLY. */
|
285
|
+
|
286
|
+
g_assert (b);
|
287
|
+
|
288
|
+
len = hb_blob_get_length (b);
|
289
|
+
g_assert_cmpint (len, ==, fixture->len - 2);
|
290
|
+
|
291
|
+
data = hb_blob_get_data (b, &len);
|
292
|
+
g_assert_cmpint (len, ==, fixture->len - 2);
|
293
|
+
g_assert (data == fixture->data + 1);
|
294
|
+
|
295
|
+
data_writable = hb_blob_get_data_writable (b, &len);
|
296
|
+
g_assert_cmpint (len, ==, fixture->len - 2);
|
297
|
+
g_assert (data_writable);
|
298
|
+
if (mm == HB_MEMORY_MODE_READONLY)
|
299
|
+
g_assert (0 == memcmp (data_writable, fixture->data + 1, fixture->len - 2));
|
300
|
+
g_assert (data_writable != data);
|
301
|
+
g_assert_cmpint (fixture->freed, ==, 1);
|
302
|
+
|
303
|
+
data = hb_blob_get_data (b, &len);
|
304
|
+
g_assert_cmpint (len, ==, fixture->len - 2);
|
305
|
+
g_assert (data == data_writable);
|
306
|
+
|
307
|
+
memset (data_writable, 0, fixture->len - 2);
|
308
|
+
|
309
|
+
/* Now, make it immutable and watch get_data_writable() fail */
|
310
|
+
|
311
|
+
g_assert (!hb_blob_is_immutable (b));
|
312
|
+
hb_blob_make_immutable (b);
|
313
|
+
g_assert (hb_blob_is_immutable (b));
|
314
|
+
|
315
|
+
data_writable = hb_blob_get_data_writable (b, &len);
|
316
|
+
g_assert (!data_writable);
|
317
|
+
g_assert_cmpint (len, ==, 0);
|
318
|
+
|
319
|
+
data = hb_blob_get_data (b, &len);
|
320
|
+
g_assert_cmpint (len, ==, fixture->len - 2);
|
321
|
+
for (i = 0; i < len; i++)
|
322
|
+
g_assert ('\0' == data[i]);
|
323
|
+
}
|
324
|
+
|
325
|
+
|
326
|
+
int
|
327
|
+
main (int argc, char **argv)
|
328
|
+
{
|
329
|
+
unsigned int i;
|
330
|
+
|
331
|
+
hb_test_init (&argc, &argv);
|
332
|
+
|
333
|
+
hb_test_add (test_blob_empty);
|
334
|
+
|
335
|
+
for (i = 0; i < G_N_ELEMENTS (blob_names); i++)
|
336
|
+
{
|
337
|
+
const void *blob_type = GINT_TO_POINTER (i);
|
338
|
+
const char *blob_name = blob_names[i];
|
339
|
+
|
340
|
+
hb_test_add_fixture_flavor (fixture, blob_type, blob_name, test_blob);
|
341
|
+
hb_test_add_fixture_flavor (fixture, blob_type, blob_name, test_blob_subblob);
|
342
|
+
}
|
343
|
+
|
344
|
+
/*
|
345
|
+
* create_sub_blob
|
346
|
+
*/
|
347
|
+
|
348
|
+
return hb_test_run ();
|
349
|
+
}
|
@@ -0,0 +1,884 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright © 2011 Google, Inc.
|
3
|
+
*
|
4
|
+
* This is part of HarfBuzz, a text shaping library.
|
5
|
+
*
|
6
|
+
* Permission is hereby granted, without written agreement and without
|
7
|
+
* license or royalty fees, to use, copy, modify, and distribute this
|
8
|
+
* software and its documentation for any purpose, provided that the
|
9
|
+
* above copyright notice and the following two paragraphs appear in
|
10
|
+
* all copies of this software.
|
11
|
+
*
|
12
|
+
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
13
|
+
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
14
|
+
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
15
|
+
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
16
|
+
* DAMAGE.
|
17
|
+
*
|
18
|
+
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
19
|
+
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
21
|
+
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
22
|
+
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
23
|
+
*
|
24
|
+
* Google Author(s): Behdad Esfahbod
|
25
|
+
*/
|
26
|
+
|
27
|
+
#include "hb-test.h"
|
28
|
+
|
29
|
+
/* Unit tests for hb-buffer.h */
|
30
|
+
|
31
|
+
|
32
|
+
static const char utf8[10] = "ab\360\240\200\200defg";
|
33
|
+
static const uint16_t utf16[8] = {'a', 'b', 0xD840, 0xDC00, 'd', 'e', 'f', 'g'};
|
34
|
+
static const uint32_t utf32[7] = {'a', 'b', 0x20000, 'd', 'e', 'f', 'g'};
|
35
|
+
|
36
|
+
|
37
|
+
typedef enum {
|
38
|
+
BUFFER_EMPTY,
|
39
|
+
BUFFER_ONE_BY_ONE,
|
40
|
+
BUFFER_UTF32,
|
41
|
+
BUFFER_UTF16,
|
42
|
+
BUFFER_UTF8,
|
43
|
+
BUFFER_NUM_TYPES,
|
44
|
+
} buffer_type_t;
|
45
|
+
|
46
|
+
static const char *buffer_names[] = {
|
47
|
+
"empty",
|
48
|
+
"one-by-one",
|
49
|
+
"utf32",
|
50
|
+
"utf16",
|
51
|
+
"utf8"
|
52
|
+
};
|
53
|
+
|
54
|
+
typedef struct
|
55
|
+
{
|
56
|
+
hb_buffer_t *buffer;
|
57
|
+
} fixture_t;
|
58
|
+
|
59
|
+
static void
|
60
|
+
fixture_init (fixture_t *fixture, gconstpointer user_data)
|
61
|
+
{
|
62
|
+
hb_buffer_t *b;
|
63
|
+
unsigned int i;
|
64
|
+
|
65
|
+
b = fixture->buffer = hb_buffer_create ();
|
66
|
+
|
67
|
+
switch (GPOINTER_TO_INT (user_data))
|
68
|
+
{
|
69
|
+
case BUFFER_EMPTY:
|
70
|
+
break;
|
71
|
+
|
72
|
+
case BUFFER_ONE_BY_ONE:
|
73
|
+
for (i = 1; i < G_N_ELEMENTS (utf32) - 1; i++)
|
74
|
+
hb_buffer_add (b, utf32[i], i);
|
75
|
+
break;
|
76
|
+
|
77
|
+
case BUFFER_UTF32:
|
78
|
+
hb_buffer_add_utf32 (b, utf32, G_N_ELEMENTS (utf32), 1, G_N_ELEMENTS (utf32) - 2);
|
79
|
+
break;
|
80
|
+
|
81
|
+
case BUFFER_UTF16:
|
82
|
+
hb_buffer_add_utf16 (b, utf16, G_N_ELEMENTS (utf16), 1, G_N_ELEMENTS (utf16) - 2);
|
83
|
+
break;
|
84
|
+
|
85
|
+
case BUFFER_UTF8:
|
86
|
+
hb_buffer_add_utf8 (b, utf8, G_N_ELEMENTS (utf8), 1, G_N_ELEMENTS (utf8) - 2);
|
87
|
+
break;
|
88
|
+
|
89
|
+
default:
|
90
|
+
g_assert_not_reached ();
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
static void
|
95
|
+
fixture_finish (fixture_t *fixture, gconstpointer user_data)
|
96
|
+
{
|
97
|
+
hb_buffer_destroy (fixture->buffer);
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
static void
|
102
|
+
test_buffer_properties (fixture_t *fixture, gconstpointer user_data)
|
103
|
+
{
|
104
|
+
hb_buffer_t *b = fixture->buffer;
|
105
|
+
hb_unicode_funcs_t *ufuncs;
|
106
|
+
|
107
|
+
/* test default properties */
|
108
|
+
|
109
|
+
g_assert (hb_buffer_get_unicode_funcs (b) == hb_unicode_funcs_get_default ());
|
110
|
+
g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID);
|
111
|
+
g_assert (hb_buffer_get_script (b) == HB_SCRIPT_INVALID);
|
112
|
+
g_assert (hb_buffer_get_language (b) == NULL);
|
113
|
+
|
114
|
+
|
115
|
+
/* test property changes are retained */
|
116
|
+
ufuncs = hb_unicode_funcs_create (NULL);
|
117
|
+
hb_buffer_set_unicode_funcs (b, ufuncs);
|
118
|
+
hb_unicode_funcs_destroy (ufuncs);
|
119
|
+
g_assert (hb_buffer_get_unicode_funcs (b) == ufuncs);
|
120
|
+
|
121
|
+
hb_buffer_set_direction (b, HB_DIRECTION_RTL);
|
122
|
+
g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_RTL);
|
123
|
+
|
124
|
+
hb_buffer_set_script (b, HB_SCRIPT_ARABIC);
|
125
|
+
g_assert (hb_buffer_get_script (b) == HB_SCRIPT_ARABIC);
|
126
|
+
|
127
|
+
hb_buffer_set_language (b, hb_language_from_string ("fa", -1));
|
128
|
+
g_assert (hb_buffer_get_language (b) == hb_language_from_string ("Fa", -1));
|
129
|
+
|
130
|
+
hb_buffer_set_flags (b, HB_BUFFER_FLAG_BOT);
|
131
|
+
g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAG_BOT);
|
132
|
+
|
133
|
+
hb_buffer_set_replacement_codepoint (b, (unsigned int) -1);
|
134
|
+
g_assert (hb_buffer_get_replacement_codepoint (b) == (unsigned int) -1);
|
135
|
+
|
136
|
+
|
137
|
+
/* test clear_contents clears all these properties: */
|
138
|
+
|
139
|
+
hb_buffer_clear_contents (b);
|
140
|
+
|
141
|
+
g_assert (hb_buffer_get_unicode_funcs (b) == ufuncs);
|
142
|
+
g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID);
|
143
|
+
g_assert (hb_buffer_get_script (b) == HB_SCRIPT_INVALID);
|
144
|
+
g_assert (hb_buffer_get_language (b) == NULL);
|
145
|
+
|
146
|
+
/* but not these: */
|
147
|
+
|
148
|
+
g_assert (hb_buffer_get_flags (b) != HB_BUFFER_FLAGS_DEFAULT);
|
149
|
+
g_assert (hb_buffer_get_replacement_codepoint (b) != HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
|
150
|
+
|
151
|
+
|
152
|
+
/* test reset clears all properties */
|
153
|
+
|
154
|
+
hb_buffer_set_direction (b, HB_DIRECTION_RTL);
|
155
|
+
g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_RTL);
|
156
|
+
|
157
|
+
hb_buffer_set_script (b, HB_SCRIPT_ARABIC);
|
158
|
+
g_assert (hb_buffer_get_script (b) == HB_SCRIPT_ARABIC);
|
159
|
+
|
160
|
+
hb_buffer_set_language (b, hb_language_from_string ("fa", -1));
|
161
|
+
g_assert (hb_buffer_get_language (b) == hb_language_from_string ("Fa", -1));
|
162
|
+
|
163
|
+
hb_buffer_set_flags (b, HB_BUFFER_FLAG_BOT);
|
164
|
+
g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAG_BOT);
|
165
|
+
|
166
|
+
hb_buffer_set_replacement_codepoint (b, (unsigned int) -1);
|
167
|
+
g_assert (hb_buffer_get_replacement_codepoint (b) == (unsigned int) -1);
|
168
|
+
|
169
|
+
hb_buffer_reset (b);
|
170
|
+
|
171
|
+
g_assert (hb_buffer_get_unicode_funcs (b) == hb_unicode_funcs_get_default ());
|
172
|
+
g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID);
|
173
|
+
g_assert (hb_buffer_get_script (b) == HB_SCRIPT_INVALID);
|
174
|
+
g_assert (hb_buffer_get_language (b) == NULL);
|
175
|
+
g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAGS_DEFAULT);
|
176
|
+
g_assert (hb_buffer_get_replacement_codepoint (b) == HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
|
177
|
+
}
|
178
|
+
|
179
|
+
static void
|
180
|
+
test_buffer_contents (fixture_t *fixture, gconstpointer user_data)
|
181
|
+
{
|
182
|
+
hb_buffer_t *b = fixture->buffer;
|
183
|
+
unsigned int i, len, len2;
|
184
|
+
buffer_type_t buffer_type = GPOINTER_TO_INT (user_data);
|
185
|
+
hb_glyph_info_t *glyphs;
|
186
|
+
|
187
|
+
if (buffer_type == BUFFER_EMPTY) {
|
188
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
189
|
+
return;
|
190
|
+
}
|
191
|
+
|
192
|
+
len = hb_buffer_get_length (b);
|
193
|
+
hb_buffer_get_glyph_infos (b, NULL); /* test NULL */
|
194
|
+
glyphs = hb_buffer_get_glyph_infos (b, &len2);
|
195
|
+
g_assert_cmpint (len, ==, len2);
|
196
|
+
g_assert_cmpint (len, ==, 5);
|
197
|
+
|
198
|
+
for (i = 0; i < len; i++) {
|
199
|
+
g_assert_cmphex (glyphs[i].mask, ==, 0);
|
200
|
+
g_assert_cmphex (glyphs[i].var1.u32, ==, 0);
|
201
|
+
g_assert_cmphex (glyphs[i].var2.u32, ==, 0);
|
202
|
+
}
|
203
|
+
|
204
|
+
for (i = 0; i < len; i++) {
|
205
|
+
unsigned int cluster;
|
206
|
+
cluster = 1+i;
|
207
|
+
if (i >= 2) {
|
208
|
+
if (buffer_type == BUFFER_UTF16)
|
209
|
+
cluster++;
|
210
|
+
else if (buffer_type == BUFFER_UTF8)
|
211
|
+
cluster += 3;
|
212
|
+
}
|
213
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
|
214
|
+
g_assert_cmphex (glyphs[i].cluster, ==, cluster);
|
215
|
+
}
|
216
|
+
|
217
|
+
/* reverse, test, and reverse back */
|
218
|
+
|
219
|
+
hb_buffer_reverse (b);
|
220
|
+
for (i = 0; i < len; i++)
|
221
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]);
|
222
|
+
|
223
|
+
hb_buffer_reverse (b);
|
224
|
+
for (i = 0; i < len; i++)
|
225
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
|
226
|
+
|
227
|
+
/* reverse_clusters works same as reverse for now since each codepoint is
|
228
|
+
* in its own cluster */
|
229
|
+
|
230
|
+
hb_buffer_reverse_clusters (b);
|
231
|
+
for (i = 0; i < len; i++)
|
232
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]);
|
233
|
+
|
234
|
+
hb_buffer_reverse_clusters (b);
|
235
|
+
for (i = 0; i < len; i++)
|
236
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
|
237
|
+
|
238
|
+
/* now form a cluster and test again */
|
239
|
+
glyphs[2].cluster = glyphs[1].cluster;
|
240
|
+
|
241
|
+
/* reverse, test, and reverse back */
|
242
|
+
|
243
|
+
hb_buffer_reverse (b);
|
244
|
+
for (i = 0; i < len; i++)
|
245
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]);
|
246
|
+
|
247
|
+
hb_buffer_reverse (b);
|
248
|
+
for (i = 0; i < len; i++)
|
249
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
|
250
|
+
|
251
|
+
/* reverse_clusters twice still should return the original string,
|
252
|
+
* but when applied once, the 1-2 cluster should be retained. */
|
253
|
+
|
254
|
+
hb_buffer_reverse_clusters (b);
|
255
|
+
for (i = 0; i < len; i++) {
|
256
|
+
unsigned int j = len-1-i;
|
257
|
+
if (j == 1)
|
258
|
+
j = 2;
|
259
|
+
else if (j == 2)
|
260
|
+
j = 1;
|
261
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+j]);
|
262
|
+
}
|
263
|
+
|
264
|
+
hb_buffer_reverse_clusters (b);
|
265
|
+
for (i = 0; i < len; i++)
|
266
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
|
267
|
+
|
268
|
+
|
269
|
+
/* test setting length */
|
270
|
+
|
271
|
+
/* enlarge */
|
272
|
+
g_assert (hb_buffer_set_length (b, 10));
|
273
|
+
glyphs = hb_buffer_get_glyph_infos (b, NULL);
|
274
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 10);
|
275
|
+
for (i = 0; i < 5; i++)
|
276
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
|
277
|
+
for (i = 5; i < 10; i++)
|
278
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, 0);
|
279
|
+
/* shrink */
|
280
|
+
g_assert (hb_buffer_set_length (b, 3));
|
281
|
+
glyphs = hb_buffer_get_glyph_infos (b, NULL);
|
282
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 3);
|
283
|
+
for (i = 0; i < 3; i++)
|
284
|
+
g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
|
285
|
+
|
286
|
+
|
287
|
+
g_assert (hb_buffer_allocation_successful (b));
|
288
|
+
|
289
|
+
|
290
|
+
/* test reset clears content */
|
291
|
+
|
292
|
+
hb_buffer_reset (b);
|
293
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
294
|
+
}
|
295
|
+
|
296
|
+
static void
|
297
|
+
test_buffer_positions (fixture_t *fixture, gconstpointer user_data)
|
298
|
+
{
|
299
|
+
hb_buffer_t *b = fixture->buffer;
|
300
|
+
unsigned int i, len, len2;
|
301
|
+
hb_glyph_position_t *positions;
|
302
|
+
|
303
|
+
/* Without shaping, positions should all be zero */
|
304
|
+
len = hb_buffer_get_length (b);
|
305
|
+
hb_buffer_get_glyph_positions (b, NULL); /* test NULL */
|
306
|
+
positions = hb_buffer_get_glyph_positions (b, &len2);
|
307
|
+
g_assert_cmpint (len, ==, len2);
|
308
|
+
for (i = 0; i < len; i++) {
|
309
|
+
g_assert_cmpint (0, ==, positions[i].x_advance);
|
310
|
+
g_assert_cmpint (0, ==, positions[i].y_advance);
|
311
|
+
g_assert_cmpint (0, ==, positions[i].x_offset);
|
312
|
+
g_assert_cmpint (0, ==, positions[i].y_offset);
|
313
|
+
g_assert_cmpint (0, ==, positions[i].var.i32);
|
314
|
+
}
|
315
|
+
|
316
|
+
/* test reset clears content */
|
317
|
+
hb_buffer_reset (b);
|
318
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
319
|
+
}
|
320
|
+
|
321
|
+
static void
|
322
|
+
test_buffer_allocation (fixture_t *fixture, gconstpointer user_data)
|
323
|
+
{
|
324
|
+
hb_buffer_t *b = fixture->buffer;
|
325
|
+
|
326
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
327
|
+
|
328
|
+
g_assert (hb_buffer_pre_allocate (b, 100));
|
329
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
330
|
+
g_assert (hb_buffer_allocation_successful (b));
|
331
|
+
|
332
|
+
/* lets try a huge allocation, make sure it fails */
|
333
|
+
g_assert (!hb_buffer_pre_allocate (b, (unsigned int) -1));
|
334
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
335
|
+
g_assert (!hb_buffer_allocation_successful (b));
|
336
|
+
|
337
|
+
/* small one again */
|
338
|
+
g_assert (hb_buffer_pre_allocate (b, 50));
|
339
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
340
|
+
g_assert (!hb_buffer_allocation_successful (b));
|
341
|
+
|
342
|
+
hb_buffer_reset (b);
|
343
|
+
g_assert (hb_buffer_allocation_successful (b));
|
344
|
+
|
345
|
+
/* all allocation and size */
|
346
|
+
g_assert (!hb_buffer_pre_allocate (b, ((unsigned int) -1) / 20 + 1));
|
347
|
+
g_assert (!hb_buffer_allocation_successful (b));
|
348
|
+
|
349
|
+
hb_buffer_reset (b);
|
350
|
+
g_assert (hb_buffer_allocation_successful (b));
|
351
|
+
|
352
|
+
/* technically, this one can actually pass on 64bit machines, but
|
353
|
+
* I'm doubtful that any malloc allows 4GB allocations at a time.
|
354
|
+
* But let's only enable it on a 32-bit machine. */
|
355
|
+
if (sizeof (long) == 4) {
|
356
|
+
g_assert (!hb_buffer_pre_allocate (b, ((unsigned int) -1) / 20 - 1));
|
357
|
+
g_assert (!hb_buffer_allocation_successful (b));
|
358
|
+
}
|
359
|
+
|
360
|
+
hb_buffer_reset (b);
|
361
|
+
g_assert (hb_buffer_allocation_successful (b));
|
362
|
+
}
|
363
|
+
|
364
|
+
|
365
|
+
typedef struct {
|
366
|
+
const char utf8[8];
|
367
|
+
const uint32_t codepoints[8];
|
368
|
+
} utf8_conversion_test_t;
|
369
|
+
|
370
|
+
/* note: we skip the first and last byte when adding to buffer */
|
371
|
+
static const utf8_conversion_test_t utf8_conversion_tests[] = {
|
372
|
+
{"a\303\207", {(hb_codepoint_t) -1}},
|
373
|
+
{"a\303\207b", {0xC7}},
|
374
|
+
{"ab\303cd", {'b', (hb_codepoint_t) -1, 'c'}},
|
375
|
+
{"ab\303\302\301cd", {'b', (hb_codepoint_t) -1, (hb_codepoint_t) -1, (hb_codepoint_t) -1, 'c'}}
|
376
|
+
};
|
377
|
+
|
378
|
+
static void
|
379
|
+
test_buffer_utf8_conversion (void)
|
380
|
+
{
|
381
|
+
hb_buffer_t *b;
|
382
|
+
hb_glyph_info_t *glyphs;
|
383
|
+
unsigned int bytes, chars, i, j, len;
|
384
|
+
|
385
|
+
b = hb_buffer_create ();
|
386
|
+
hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -1);
|
387
|
+
|
388
|
+
for (i = 0; i < G_N_ELEMENTS (utf8_conversion_tests); i++)
|
389
|
+
{
|
390
|
+
const utf8_conversion_test_t *test = &utf8_conversion_tests[i];
|
391
|
+
char *escaped;
|
392
|
+
|
393
|
+
escaped = g_strescape (test->utf8, NULL);
|
394
|
+
g_test_message ("UTF-8 test #%d: %s", i, escaped);
|
395
|
+
g_free (escaped);
|
396
|
+
|
397
|
+
bytes = strlen (test->utf8);
|
398
|
+
for (chars = 0; test->codepoints[chars]; chars++)
|
399
|
+
;
|
400
|
+
|
401
|
+
hb_buffer_clear_contents (b);
|
402
|
+
hb_buffer_add_utf8 (b, test->utf8, bytes, 1, bytes - 2);
|
403
|
+
|
404
|
+
glyphs = hb_buffer_get_glyph_infos (b, &len);
|
405
|
+
g_assert_cmpint (len, ==, chars);
|
406
|
+
for (j = 0; j < chars; j++)
|
407
|
+
g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]);
|
408
|
+
}
|
409
|
+
|
410
|
+
hb_buffer_destroy (b);
|
411
|
+
}
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
/* Following test table is adapted from glib/glib/tests/utf8-validate.c
|
416
|
+
* with relicensing permission from Matthias Clasen. */
|
417
|
+
|
418
|
+
typedef struct {
|
419
|
+
const char *utf8;
|
420
|
+
int max_len;
|
421
|
+
unsigned int offset;
|
422
|
+
gboolean valid;
|
423
|
+
} utf8_validity_test_t;
|
424
|
+
|
425
|
+
static const utf8_validity_test_t utf8_validity_tests[] = {
|
426
|
+
/* some tests to check max_len handling */
|
427
|
+
/* length 1 */
|
428
|
+
{ "abcde", -1, 5, TRUE },
|
429
|
+
{ "abcde", 3, 3, TRUE },
|
430
|
+
{ "abcde", 5, 5, TRUE },
|
431
|
+
/* length 2 */
|
432
|
+
{ "\xc2\xa9\xc2\xa9\xc2\xa9", -1, 6, TRUE },
|
433
|
+
{ "\xc2\xa9\xc2\xa9\xc2\xa9", 1, 0, FALSE },
|
434
|
+
{ "\xc2\xa9\xc2\xa9\xc2\xa9", 2, 2, TRUE },
|
435
|
+
{ "\xc2\xa9\xc2\xa9\xc2\xa9", 3, 2, FALSE },
|
436
|
+
{ "\xc2\xa9\xc2\xa9\xc2\xa9", 4, 4, TRUE },
|
437
|
+
{ "\xc2\xa9\xc2\xa9\xc2\xa9", 5, 4, FALSE },
|
438
|
+
{ "\xc2\xa9\xc2\xa9\xc2\xa9", 6, 6, TRUE },
|
439
|
+
/* length 3 */
|
440
|
+
{ "\xe2\x89\xa0\xe2\x89\xa0", -1, 6, TRUE },
|
441
|
+
{ "\xe2\x89\xa0\xe2\x89\xa0", 1, 0, FALSE },
|
442
|
+
{ "\xe2\x89\xa0\xe2\x89\xa0", 2, 0, FALSE },
|
443
|
+
{ "\xe2\x89\xa0\xe2\x89\xa0", 3, 3, TRUE },
|
444
|
+
{ "\xe2\x89\xa0\xe2\x89\xa0", 4, 3, FALSE },
|
445
|
+
{ "\xe2\x89\xa0\xe2\x89\xa0", 5, 3, FALSE },
|
446
|
+
{ "\xe2\x89\xa0\xe2\x89\xa0", 6, 6, TRUE },
|
447
|
+
|
448
|
+
/* examples from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt */
|
449
|
+
/* greek 'kosme' */
|
450
|
+
{ "\xce\xba\xe1\xbd\xb9\xcf\x83\xce\xbc\xce\xb5", -1, 11, TRUE },
|
451
|
+
/* first sequence of each length */
|
452
|
+
{ "\x00", -1, 0, TRUE },
|
453
|
+
{ "\xc2\x80", -1, 2, TRUE },
|
454
|
+
{ "\xe0\xa0\x80", -1, 3, TRUE },
|
455
|
+
{ "\xf0\x90\x80\x80", -1, 4, TRUE },
|
456
|
+
{ "\xf8\x88\x80\x80\x80", -1, 0, FALSE },
|
457
|
+
{ "\xfc\x84\x80\x80\x80\x80", -1, 0, FALSE },
|
458
|
+
/* last sequence of each length */
|
459
|
+
{ "\x7f", -1, 1, TRUE },
|
460
|
+
{ "\xdf\xbf", -1, 2, TRUE },
|
461
|
+
{ "\xef\xbf\xbf", -1, 0, TRUE },
|
462
|
+
{ "\xf4\x8f\xbf\xbf", -1, 0, TRUE },
|
463
|
+
{ "\xf4\x90\xbf\xbf", -1, 0, FALSE },
|
464
|
+
{ "\xf7\xbf\xbf\xbf", -1, 0, FALSE },
|
465
|
+
{ "\xfb\xbf\xbf\xbf\xbf", -1, 0, FALSE },
|
466
|
+
{ "\xfd\xbf\xbf\xbf\xbf\xbf", -1, 0, FALSE },
|
467
|
+
/* other boundary conditions */
|
468
|
+
{ "\xed\x9f\xbf", -1, 3, TRUE },
|
469
|
+
{ "\xed\xa0\x80", -1, 0, FALSE },
|
470
|
+
{ "\xed\xbf\xbf", -1, 0, FALSE },
|
471
|
+
{ "\xee\x80\x80", -1, 3, TRUE },
|
472
|
+
{ "\xef\xbf\xbd", -1, 3, TRUE },
|
473
|
+
{ "\xf4\x8f\xbf\xbf", -1, 0, TRUE },
|
474
|
+
/* malformed sequences */
|
475
|
+
/* continuation bytes */
|
476
|
+
{ "\x80", -1, 0, FALSE },
|
477
|
+
{ "\xbf", -1, 0, FALSE },
|
478
|
+
{ "\x80\xbf", -1, 0, FALSE },
|
479
|
+
{ "\x80\xbf\x80", -1, 0, FALSE },
|
480
|
+
{ "\x80\xbf\x80\xbf", -1, 0, FALSE },
|
481
|
+
{ "\x80\xbf\x80\xbf\x80", -1, 0, FALSE },
|
482
|
+
{ "\x80\xbf\x80\xbf\x80\xbf", -1, 0, FALSE },
|
483
|
+
{ "\x80\xbf\x80\xbf\x80\xbf\x80", -1, 0, FALSE },
|
484
|
+
|
485
|
+
/* all possible continuation byte */
|
486
|
+
{ "\x80", -1, 0, FALSE },
|
487
|
+
{ "\x81", -1, 0, FALSE },
|
488
|
+
{ "\x82", -1, 0, FALSE },
|
489
|
+
{ "\x83", -1, 0, FALSE },
|
490
|
+
{ "\x84", -1, 0, FALSE },
|
491
|
+
{ "\x85", -1, 0, FALSE },
|
492
|
+
{ "\x86", -1, 0, FALSE },
|
493
|
+
{ "\x87", -1, 0, FALSE },
|
494
|
+
{ "\x88", -1, 0, FALSE },
|
495
|
+
{ "\x89", -1, 0, FALSE },
|
496
|
+
{ "\x8a", -1, 0, FALSE },
|
497
|
+
{ "\x8b", -1, 0, FALSE },
|
498
|
+
{ "\x8c", -1, 0, FALSE },
|
499
|
+
{ "\x8d", -1, 0, FALSE },
|
500
|
+
{ "\x8e", -1, 0, FALSE },
|
501
|
+
{ "\x8f", -1, 0, FALSE },
|
502
|
+
{ "\x90", -1, 0, FALSE },
|
503
|
+
{ "\x91", -1, 0, FALSE },
|
504
|
+
{ "\x92", -1, 0, FALSE },
|
505
|
+
{ "\x93", -1, 0, FALSE },
|
506
|
+
{ "\x94", -1, 0, FALSE },
|
507
|
+
{ "\x95", -1, 0, FALSE },
|
508
|
+
{ "\x96", -1, 0, FALSE },
|
509
|
+
{ "\x97", -1, 0, FALSE },
|
510
|
+
{ "\x98", -1, 0, FALSE },
|
511
|
+
{ "\x99", -1, 0, FALSE },
|
512
|
+
{ "\x9a", -1, 0, FALSE },
|
513
|
+
{ "\x9b", -1, 0, FALSE },
|
514
|
+
{ "\x9c", -1, 0, FALSE },
|
515
|
+
{ "\x9d", -1, 0, FALSE },
|
516
|
+
{ "\x9e", -1, 0, FALSE },
|
517
|
+
{ "\x9f", -1, 0, FALSE },
|
518
|
+
{ "\xa0", -1, 0, FALSE },
|
519
|
+
{ "\xa1", -1, 0, FALSE },
|
520
|
+
{ "\xa2", -1, 0, FALSE },
|
521
|
+
{ "\xa3", -1, 0, FALSE },
|
522
|
+
{ "\xa4", -1, 0, FALSE },
|
523
|
+
{ "\xa5", -1, 0, FALSE },
|
524
|
+
{ "\xa6", -1, 0, FALSE },
|
525
|
+
{ "\xa7", -1, 0, FALSE },
|
526
|
+
{ "\xa8", -1, 0, FALSE },
|
527
|
+
{ "\xa9", -1, 0, FALSE },
|
528
|
+
{ "\xaa", -1, 0, FALSE },
|
529
|
+
{ "\xab", -1, 0, FALSE },
|
530
|
+
{ "\xac", -1, 0, FALSE },
|
531
|
+
{ "\xad", -1, 0, FALSE },
|
532
|
+
{ "\xae", -1, 0, FALSE },
|
533
|
+
{ "\xaf", -1, 0, FALSE },
|
534
|
+
{ "\xb0", -1, 0, FALSE },
|
535
|
+
{ "\xb1", -1, 0, FALSE },
|
536
|
+
{ "\xb2", -1, 0, FALSE },
|
537
|
+
{ "\xb3", -1, 0, FALSE },
|
538
|
+
{ "\xb4", -1, 0, FALSE },
|
539
|
+
{ "\xb5", -1, 0, FALSE },
|
540
|
+
{ "\xb6", -1, 0, FALSE },
|
541
|
+
{ "\xb7", -1, 0, FALSE },
|
542
|
+
{ "\xb8", -1, 0, FALSE },
|
543
|
+
{ "\xb9", -1, 0, FALSE },
|
544
|
+
{ "\xba", -1, 0, FALSE },
|
545
|
+
{ "\xbb", -1, 0, FALSE },
|
546
|
+
{ "\xbc", -1, 0, FALSE },
|
547
|
+
{ "\xbd", -1, 0, FALSE },
|
548
|
+
{ "\xbe", -1, 0, FALSE },
|
549
|
+
{ "\xbf", -1, 0, FALSE },
|
550
|
+
/* lone start characters */
|
551
|
+
{ "\xc0\x20", -1, 0, FALSE },
|
552
|
+
{ "\xc1\x20", -1, 0, FALSE },
|
553
|
+
{ "\xc2\x20", -1, 0, FALSE },
|
554
|
+
{ "\xc3\x20", -1, 0, FALSE },
|
555
|
+
{ "\xc4\x20", -1, 0, FALSE },
|
556
|
+
{ "\xc5\x20", -1, 0, FALSE },
|
557
|
+
{ "\xc6\x20", -1, 0, FALSE },
|
558
|
+
{ "\xc7\x20", -1, 0, FALSE },
|
559
|
+
{ "\xc8\x20", -1, 0, FALSE },
|
560
|
+
{ "\xc9\x20", -1, 0, FALSE },
|
561
|
+
{ "\xca\x20", -1, 0, FALSE },
|
562
|
+
{ "\xcb\x20", -1, 0, FALSE },
|
563
|
+
{ "\xcc\x20", -1, 0, FALSE },
|
564
|
+
{ "\xcd\x20", -1, 0, FALSE },
|
565
|
+
{ "\xce\x20", -1, 0, FALSE },
|
566
|
+
{ "\xcf\x20", -1, 0, FALSE },
|
567
|
+
{ "\xd0\x20", -1, 0, FALSE },
|
568
|
+
{ "\xd1\x20", -1, 0, FALSE },
|
569
|
+
{ "\xd2\x20", -1, 0, FALSE },
|
570
|
+
{ "\xd3\x20", -1, 0, FALSE },
|
571
|
+
{ "\xd4\x20", -1, 0, FALSE },
|
572
|
+
{ "\xd5\x20", -1, 0, FALSE },
|
573
|
+
{ "\xd6\x20", -1, 0, FALSE },
|
574
|
+
{ "\xd7\x20", -1, 0, FALSE },
|
575
|
+
{ "\xd8\x20", -1, 0, FALSE },
|
576
|
+
{ "\xd9\x20", -1, 0, FALSE },
|
577
|
+
{ "\xda\x20", -1, 0, FALSE },
|
578
|
+
{ "\xdb\x20", -1, 0, FALSE },
|
579
|
+
{ "\xdc\x20", -1, 0, FALSE },
|
580
|
+
{ "\xdd\x20", -1, 0, FALSE },
|
581
|
+
{ "\xde\x20", -1, 0, FALSE },
|
582
|
+
{ "\xdf\x20", -1, 0, FALSE },
|
583
|
+
{ "\xe0\x20", -1, 0, FALSE },
|
584
|
+
{ "\xe1\x20", -1, 0, FALSE },
|
585
|
+
{ "\xe2\x20", -1, 0, FALSE },
|
586
|
+
{ "\xe3\x20", -1, 0, FALSE },
|
587
|
+
{ "\xe4\x20", -1, 0, FALSE },
|
588
|
+
{ "\xe5\x20", -1, 0, FALSE },
|
589
|
+
{ "\xe6\x20", -1, 0, FALSE },
|
590
|
+
{ "\xe7\x20", -1, 0, FALSE },
|
591
|
+
{ "\xe8\x20", -1, 0, FALSE },
|
592
|
+
{ "\xe9\x20", -1, 0, FALSE },
|
593
|
+
{ "\xea\x20", -1, 0, FALSE },
|
594
|
+
{ "\xeb\x20", -1, 0, FALSE },
|
595
|
+
{ "\xec\x20", -1, 0, FALSE },
|
596
|
+
{ "\xed\x20", -1, 0, FALSE },
|
597
|
+
{ "\xee\x20", -1, 0, FALSE },
|
598
|
+
{ "\xef\x20", -1, 0, FALSE },
|
599
|
+
{ "\xf0\x20", -1, 0, FALSE },
|
600
|
+
{ "\xf1\x20", -1, 0, FALSE },
|
601
|
+
{ "\xf2\x20", -1, 0, FALSE },
|
602
|
+
{ "\xf3\x20", -1, 0, FALSE },
|
603
|
+
{ "\xf4\x20", -1, 0, FALSE },
|
604
|
+
{ "\xf5\x20", -1, 0, FALSE },
|
605
|
+
{ "\xf6\x20", -1, 0, FALSE },
|
606
|
+
{ "\xf7\x20", -1, 0, FALSE },
|
607
|
+
{ "\xf8\x20", -1, 0, FALSE },
|
608
|
+
{ "\xf9\x20", -1, 0, FALSE },
|
609
|
+
{ "\xfa\x20", -1, 0, FALSE },
|
610
|
+
{ "\xfb\x20", -1, 0, FALSE },
|
611
|
+
{ "\xfc\x20", -1, 0, FALSE },
|
612
|
+
{ "\xfd\x20", -1, 0, FALSE },
|
613
|
+
/* missing continuation bytes */
|
614
|
+
{ "\x20\xc0", -1, 1, FALSE },
|
615
|
+
{ "\x20\xe0\x80", -1, 1, FALSE },
|
616
|
+
{ "\x20\xf0\x80\x80", -1, 1, FALSE },
|
617
|
+
{ "\x20\xf8\x80\x80\x80", -1, 1, FALSE },
|
618
|
+
{ "\x20\xfc\x80\x80\x80\x80", -1, 1, FALSE },
|
619
|
+
{ "\x20\xdf", -1, 1, FALSE },
|
620
|
+
{ "\x20\xef\xbf", -1, 1, FALSE },
|
621
|
+
{ "\x20\xf7\xbf\xbf", -1, 1, FALSE },
|
622
|
+
{ "\x20\xfb\xbf\xbf\xbf", -1, 1, FALSE },
|
623
|
+
{ "\x20\xfd\xbf\xbf\xbf\xbf", -1, 1, FALSE },
|
624
|
+
/* impossible bytes */
|
625
|
+
{ "\x20\xfe\x20", -1, 1, FALSE },
|
626
|
+
{ "\x20\xff\x20", -1, 1, FALSE },
|
627
|
+
/* overlong sequences */
|
628
|
+
{ "\x20\xc0\xaf\x20", -1, 1, FALSE },
|
629
|
+
{ "\x20\xe0\x80\xaf\x20", -1, 1, FALSE },
|
630
|
+
{ "\x20\xf0\x80\x80\xaf\x20", -1, 1, FALSE },
|
631
|
+
{ "\x20\xf8\x80\x80\x80\xaf\x20", -1, 1, FALSE },
|
632
|
+
{ "\x20\xfc\x80\x80\x80\x80\xaf\x20", -1, 1, FALSE },
|
633
|
+
{ "\x20\xc1\xbf\x20", -1, 1, FALSE },
|
634
|
+
{ "\x20\xe0\x9f\xbf\x20", -1, 1, FALSE },
|
635
|
+
{ "\x20\xf0\x8f\xbf\xbf\x20", -1, 1, FALSE },
|
636
|
+
{ "\x20\xf8\x87\xbf\xbf\xbf\x20", -1, 1, FALSE },
|
637
|
+
{ "\x20\xfc\x83\xbf\xbf\xbf\xbf\x20", -1, 1, FALSE },
|
638
|
+
{ "\x20\xc0\x80\x20", -1, 1, FALSE },
|
639
|
+
{ "\x20\xe0\x80\x80\x20", -1, 1, FALSE },
|
640
|
+
{ "\x20\xf0\x80\x80\x80\x20", -1, 1, FALSE },
|
641
|
+
{ "\x20\xf8\x80\x80\x80\x80\x20", -1, 1, FALSE },
|
642
|
+
{ "\x20\xfc\x80\x80\x80\x80\x80\x20", -1, 1, FALSE },
|
643
|
+
/* illegal code positions */
|
644
|
+
{ "\x20\xed\xa0\x80\x20", -1, 1, FALSE },
|
645
|
+
{ "\x20\xed\xad\xbf\x20", -1, 1, FALSE },
|
646
|
+
{ "\x20\xed\xae\x80\x20", -1, 1, FALSE },
|
647
|
+
{ "\x20\xed\xaf\xbf\x20", -1, 1, FALSE },
|
648
|
+
{ "\x20\xed\xb0\x80\x20", -1, 1, FALSE },
|
649
|
+
{ "\x20\xed\xbe\x80\x20", -1, 1, FALSE },
|
650
|
+
{ "\x20\xed\xbf\xbf\x20", -1, 1, FALSE },
|
651
|
+
{ "\x20\xed\xa0\x80\xed\xb0\x80\x20", -1, 1, FALSE },
|
652
|
+
{ "\x20\xed\xa0\x80\xed\xbf\xbf\x20", -1, 1, FALSE },
|
653
|
+
{ "\x20\xed\xad\xbf\xed\xb0\x80\x20", -1, 1, FALSE },
|
654
|
+
{ "\x20\xed\xad\xbf\xed\xbf\xbf\x20", -1, 1, FALSE },
|
655
|
+
{ "\x20\xed\xae\x80\xed\xb0\x80\x20", -1, 1, FALSE },
|
656
|
+
{ "\x20\xed\xae\x80\xed\xbf\xbf\x20", -1, 1, FALSE },
|
657
|
+
{ "\x20\xed\xaf\xbf\xed\xb0\x80\x20", -1, 1, FALSE },
|
658
|
+
{ "\x20\xed\xaf\xbf\xed\xbf\xbf\x20", -1, 1, FALSE },
|
659
|
+
#if 0 /* We don't consider U+FFFE / U+FFFF and similar invalid. */
|
660
|
+
{ "\x20\xef\xbf\xbe\x20", -1, 1, FALSE },
|
661
|
+
{ "\x20\xef\xbf\xbf\x20", -1, 1, FALSE },
|
662
|
+
#endif
|
663
|
+
{ "", -1, 0, TRUE }
|
664
|
+
};
|
665
|
+
|
666
|
+
static void
|
667
|
+
test_buffer_utf8_validity (void)
|
668
|
+
{
|
669
|
+
hb_buffer_t *b;
|
670
|
+
unsigned int i;
|
671
|
+
|
672
|
+
b = hb_buffer_create ();
|
673
|
+
hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -1);
|
674
|
+
|
675
|
+
for (i = 0; i < G_N_ELEMENTS (utf8_validity_tests); i++)
|
676
|
+
{
|
677
|
+
const utf8_validity_test_t *test = &utf8_validity_tests[i];
|
678
|
+
unsigned int text_bytes, segment_bytes, j, len;
|
679
|
+
hb_glyph_info_t *glyphs;
|
680
|
+
char *escaped;
|
681
|
+
|
682
|
+
escaped = g_strescape (test->utf8, NULL);
|
683
|
+
g_test_message ("UTF-8 test #%d: %s", i, escaped);
|
684
|
+
g_free (escaped);
|
685
|
+
|
686
|
+
text_bytes = strlen (test->utf8);
|
687
|
+
if (test->max_len == -1)
|
688
|
+
segment_bytes = text_bytes;
|
689
|
+
else
|
690
|
+
segment_bytes = test->max_len;
|
691
|
+
|
692
|
+
hb_buffer_clear_contents (b);
|
693
|
+
hb_buffer_add_utf8 (b, test->utf8, text_bytes, 0, segment_bytes);
|
694
|
+
|
695
|
+
glyphs = hb_buffer_get_glyph_infos (b, &len);
|
696
|
+
for (j = 0; j < len; j++)
|
697
|
+
if (glyphs[j].codepoint == (hb_codepoint_t) -1)
|
698
|
+
break;
|
699
|
+
|
700
|
+
g_assert (test->valid ? j == len : j < len);
|
701
|
+
if (!test->valid)
|
702
|
+
g_assert (glyphs[j].cluster == test->offset);
|
703
|
+
}
|
704
|
+
|
705
|
+
hb_buffer_destroy (b);
|
706
|
+
}
|
707
|
+
|
708
|
+
|
709
|
+
typedef struct {
|
710
|
+
const uint16_t utf16[8];
|
711
|
+
const uint32_t codepoints[8];
|
712
|
+
} utf16_conversion_test_t;
|
713
|
+
|
714
|
+
/* note: we skip the first and last item from utf16 when adding to buffer */
|
715
|
+
static const utf16_conversion_test_t utf16_conversion_tests[] = {
|
716
|
+
{{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, 0x10302}},
|
717
|
+
{{0x41, 0xD800, 0xDF02, 0x61}, {0x10302}},
|
718
|
+
{{0x41, 0xD800, 0xDF02}, {(hb_codepoint_t) -1}},
|
719
|
+
{{0x41, 0x61, 0xD800, 0xDF02}, {0x61, (hb_codepoint_t) -1}},
|
720
|
+
{{0x41, 0xD800, 0x61, 0xDF02}, {(hb_codepoint_t) -1, 0x61}},
|
721
|
+
{{0x41, 0xDF00, 0x61}, {(hb_codepoint_t) -1}},
|
722
|
+
{{0x41, 0x61}, {0}}
|
723
|
+
};
|
724
|
+
|
725
|
+
static void
|
726
|
+
test_buffer_utf16_conversion (void)
|
727
|
+
{
|
728
|
+
hb_buffer_t *b;
|
729
|
+
unsigned int i;
|
730
|
+
|
731
|
+
b = hb_buffer_create ();
|
732
|
+
hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -1);
|
733
|
+
|
734
|
+
for (i = 0; i < G_N_ELEMENTS (utf16_conversion_tests); i++)
|
735
|
+
{
|
736
|
+
const utf16_conversion_test_t *test = &utf16_conversion_tests[i];
|
737
|
+
unsigned int u_len, chars, j, len;
|
738
|
+
hb_glyph_info_t *glyphs;
|
739
|
+
|
740
|
+
g_test_message ("UTF-16 test #%d", i);
|
741
|
+
|
742
|
+
for (u_len = 0; test->utf16[u_len]; u_len++)
|
743
|
+
;
|
744
|
+
for (chars = 0; test->codepoints[chars]; chars++)
|
745
|
+
;
|
746
|
+
|
747
|
+
hb_buffer_clear_contents (b);
|
748
|
+
hb_buffer_add_utf16 (b, test->utf16, u_len, 1, u_len - 2);
|
749
|
+
|
750
|
+
glyphs = hb_buffer_get_glyph_infos (b, &len);
|
751
|
+
g_assert_cmpint (len, ==, chars);
|
752
|
+
for (j = 0; j < chars; j++)
|
753
|
+
g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]);
|
754
|
+
}
|
755
|
+
|
756
|
+
hb_buffer_destroy (b);
|
757
|
+
}
|
758
|
+
|
759
|
+
|
760
|
+
typedef struct {
|
761
|
+
const uint32_t utf32[8];
|
762
|
+
const uint32_t codepoints[8];
|
763
|
+
} utf32_conversion_test_t;
|
764
|
+
|
765
|
+
/* note: we skip the first and last item from utf32 when adding to buffer */
|
766
|
+
static const utf32_conversion_test_t utf32_conversion_tests[] = {
|
767
|
+
{{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, (hb_codepoint_t) -3, (hb_codepoint_t) -3}},
|
768
|
+
{{0x41, 0x004D, 0x0430, 0x4E8C, 0x10302, 0x61} , {0x004D, 0x0430, 0x4E8C, 0x10302}},
|
769
|
+
{{0x41, 0xD800, 0xDF02, 0x61}, {(hb_codepoint_t) -3, (hb_codepoint_t) -3}},
|
770
|
+
{{0x41, 0xD800, 0xDF02}, {(hb_codepoint_t) -3}},
|
771
|
+
{{0x41, 0x61, 0xD800, 0xDF02}, {0x61, (hb_codepoint_t) -3}},
|
772
|
+
{{0x41, 0xD800, 0x61, 0xDF02}, {(hb_codepoint_t) -3, 0x61}},
|
773
|
+
{{0x41, 0xDF00, 0x61}, {(hb_codepoint_t) -3}},
|
774
|
+
{{0x41, 0x10FFFF, 0x61}, {0x10FFFF}},
|
775
|
+
{{0x41, 0x110000, 0x61}, {(hb_codepoint_t) -3}},
|
776
|
+
{{0x41, 0x61}, {0}}
|
777
|
+
};
|
778
|
+
|
779
|
+
static void
|
780
|
+
test_buffer_utf32_conversion (void)
|
781
|
+
{
|
782
|
+
hb_buffer_t *b;
|
783
|
+
unsigned int i;
|
784
|
+
|
785
|
+
b = hb_buffer_create ();
|
786
|
+
hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -3);
|
787
|
+
|
788
|
+
for (i = 0; i < G_N_ELEMENTS (utf32_conversion_tests); i++)
|
789
|
+
{
|
790
|
+
const utf32_conversion_test_t *test = &utf32_conversion_tests[i];
|
791
|
+
unsigned int u_len, chars, j, len;
|
792
|
+
hb_glyph_info_t *glyphs;
|
793
|
+
|
794
|
+
g_test_message ("UTF-32 test #%d", i);
|
795
|
+
|
796
|
+
for (u_len = 0; test->utf32[u_len]; u_len++)
|
797
|
+
;
|
798
|
+
for (chars = 0; test->codepoints[chars]; chars++)
|
799
|
+
;
|
800
|
+
|
801
|
+
hb_buffer_clear_contents (b);
|
802
|
+
hb_buffer_add_utf32 (b, test->utf32, u_len, 1, u_len - 2);
|
803
|
+
|
804
|
+
glyphs = hb_buffer_get_glyph_infos (b, &len);
|
805
|
+
g_assert_cmpint (len, ==, chars);
|
806
|
+
for (j = 0; j < chars; j++)
|
807
|
+
g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]);
|
808
|
+
}
|
809
|
+
|
810
|
+
hb_buffer_destroy (b);
|
811
|
+
}
|
812
|
+
|
813
|
+
|
814
|
+
static void
|
815
|
+
test_empty (hb_buffer_t *b)
|
816
|
+
{
|
817
|
+
g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
|
818
|
+
g_assert (!hb_buffer_get_glyph_infos (b, NULL));
|
819
|
+
g_assert (!hb_buffer_get_glyph_positions (b, NULL));
|
820
|
+
}
|
821
|
+
|
822
|
+
static void
|
823
|
+
test_buffer_empty (void)
|
824
|
+
{
|
825
|
+
hb_buffer_t *b = hb_buffer_get_empty ();
|
826
|
+
|
827
|
+
g_assert (hb_buffer_get_empty ());
|
828
|
+
g_assert (hb_buffer_get_empty () == b);
|
829
|
+
|
830
|
+
g_assert (!hb_buffer_allocation_successful (b));
|
831
|
+
|
832
|
+
test_empty (b);
|
833
|
+
|
834
|
+
hb_buffer_add_utf32 (b, utf32, G_N_ELEMENTS (utf32), 1, G_N_ELEMENTS (utf32) - 2);
|
835
|
+
|
836
|
+
test_empty (b);
|
837
|
+
|
838
|
+
hb_buffer_reverse (b);
|
839
|
+
hb_buffer_reverse_clusters (b);
|
840
|
+
|
841
|
+
g_assert (!hb_buffer_set_length (b, 10));
|
842
|
+
|
843
|
+
test_empty (b);
|
844
|
+
|
845
|
+
g_assert (hb_buffer_set_length (b, 0));
|
846
|
+
|
847
|
+
test_empty (b);
|
848
|
+
|
849
|
+
g_assert (!hb_buffer_allocation_successful (b));
|
850
|
+
|
851
|
+
hb_buffer_reset (b);
|
852
|
+
|
853
|
+
test_empty (b);
|
854
|
+
|
855
|
+
g_assert (!hb_buffer_allocation_successful (b));
|
856
|
+
}
|
857
|
+
|
858
|
+
int
|
859
|
+
main (int argc, char **argv)
|
860
|
+
{
|
861
|
+
unsigned int i;
|
862
|
+
|
863
|
+
hb_test_init (&argc, &argv);
|
864
|
+
|
865
|
+
for (i = 0; i < BUFFER_NUM_TYPES; i++)
|
866
|
+
{
|
867
|
+
const void *buffer_type = GINT_TO_POINTER (i);
|
868
|
+
const char *buffer_name = buffer_names[i];
|
869
|
+
|
870
|
+
hb_test_add_fixture_flavor (fixture, buffer_type, buffer_name, test_buffer_properties);
|
871
|
+
hb_test_add_fixture_flavor (fixture, buffer_type, buffer_name, test_buffer_contents);
|
872
|
+
hb_test_add_fixture_flavor (fixture, buffer_type, buffer_name, test_buffer_positions);
|
873
|
+
}
|
874
|
+
|
875
|
+
hb_test_add_fixture (fixture, GINT_TO_POINTER (BUFFER_EMPTY), test_buffer_allocation);
|
876
|
+
|
877
|
+
hb_test_add (test_buffer_utf8_conversion);
|
878
|
+
hb_test_add (test_buffer_utf8_validity);
|
879
|
+
hb_test_add (test_buffer_utf16_conversion);
|
880
|
+
hb_test_add (test_buffer_utf32_conversion);
|
881
|
+
hb_test_add (test_buffer_empty);
|
882
|
+
|
883
|
+
return hb_test_run();
|
884
|
+
}
|