Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Add regression tests for shaping issues #3

Merged
merged 2 commits into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/continuous-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ jobs:
subcmd: "check-opentype"
args: "-x monospace -x glyf_nested_components -x fontbakery_version -x dsig --loglevel WARN --ghmarkdown reports/fontbakery/${{ matrix.font-family }}.md"
path: "builds/variable_ttf/${{ matrix.font-family }}-VF.ttf"
- name: Fontbakery shaping checks ${{ matrix.font-family }}
uses: f-actions/font-bakery@v1
with:
subcmd: "check-profile"
args: "--config fontbakery.yml --html reports/fontbakery/${{ matrix.font-family }}-shaping.html fontbakery.profiles.shaping"
path: "builds/variable_ttf/${{ matrix.font-family }}-VF.ttf"
- name: Store Fontbakery reports
uses: actions/upload-artifact@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions fontbakery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
com.google.fonts/check/shaping:
test_directory: test
16 changes: 16 additions & 0 deletions test/shaping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"tests": [
{
"note": "Check that mark position is working correctly (see googlefonts/noto-source#379)",
"only": "NotoLoopedLao-VF.ttf",
"input": "ວິດ",
"expectation": "uni0EA7=0+617|uni0EB4=0@-596,0+0|uni0E94=2+684"
},
{
"note": "Check that manual and automatic belowmarks position well (see googlefonts/noto-source#377)",
"only": "NotoLoopedLao-VF.ttf",
"input": "ກຼຸ່",
"expectation": "uni0E81=0+721|uni0EBC=0@-578,0+0|uni0EB8.small=0@-433,-42+0|uni0EC8=0@-430,0+0"
}
]
}