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

Commit

Permalink
Merge pull request #3 from simoncozens/test-shaping
Browse files Browse the repository at this point in the history
Add regression tests for shaping issues
  • Loading branch information
marekjez86 authored Jun 14, 2021
2 parents 05d24d5 + 67fb846 commit 4613d96
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
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"
}
]
}

0 comments on commit 4613d96

Please sign in to comment.