Skip to content

Commit

Permalink
Also generate woff2 files (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNyffenegger committed Apr 15, 2024
1 parent 94982f3 commit 9644ea6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,13 @@ test: zip ttftest ## Runs more extensive tests
# 98 Self-intersecting glyph (issue #2) when FontForge is able to correct this
fontlint -w 2 -w 98 ${BUILD_DIR}/3270-Regular.otf
fontlint -w 2 -w 98 ${BUILD_DIR}/3270-Regular.woff
fontlint -w 2 -w 98 ${BUILD_DIR}/3270-Regular.woff2
fontlint -w 2 -w 5 -w 98 ${BUILD_DIR}/3270SemiCondensed-Regular.otf
fontlint -w 2 -w 5 -w 98 ${BUILD_DIR}/3270SemiCondensed-Regular.woff
fontlint -w 2 -w 5 -w 98 ${BUILD_DIR}/3270SemiCondensed-Regular.woff2
fontlint -w 2 -w 98 ${BUILD_DIR}/3270Condensed-Regular.otf
fontlint -w 2 -w 98 ${BUILD_DIR}/3270Condensed-Regular.woff
fontlint -w 2 -w 98 ${BUILD_DIR}/3270Condensed-Regular.woff2

fulltest: test fbchecks ## Runs the full set of tests
@zip -T ${BUILD_DIR}/3270_fonts_*.zip
Expand Down
3 changes: 3 additions & 0 deletions generate_derived.pe
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Generate(build + "3270-Regular.otf", "", otf_flags)
Generate(build + "3270-Regular.ttf")
Generate(build + "3270-Regular.pfm", "", pfm_flags)
Generate(build + "3270-Regular.woff")
Generate(build + "3270-Regular.woff2")
Generate(build + "3270-Regular.svg")
# Make an image with the TTF version
FontImage(build + "3270-Regular.png", [20, type_sample])
Expand All @@ -53,6 +54,7 @@ Generate(build + "3270SemiCondensed-Regular.otf", "", otf_flags)
Generate(build + "3270SemiCondensed-Regular.ttf")
Generate(build + "3270SemiCondensed-Regular.pfm", "", pfm_flags)
Generate(build + "3270SemiCondensed-Regular.woff")
Generate(build + "3270SemiCondensed-Regular.woff2")
Generate(build + "3270SemiCondensed-Regular.svg")
Save(build + "3270_HQ_SemiCondensed.sfd")
FontImage(build + "3270-SemiCondensed.png", [20, type_sample])
Expand All @@ -68,6 +70,7 @@ Generate(build + "3270Condensed-Regular.otf", "", otf_flags)
Generate(build + "3270Condensed-Regular.ttf")
Generate(build + "3270Condensed-Regular.pfm", "", pfm_flags)
Generate(build + "3270Condensed-Regular.woff")
Generate(build + "3270Condensed-Regular.woff2")
Generate(build + "3270Condensed-Regular.svg")
Save(build + "3270_HQ_Condensed.sfd")
FontImage(build + "3270-Condensed.png", [20, type_sample])
3 changes: 3 additions & 0 deletions generate_sample_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@
"./build/3270-Regular.ttf",
"./build/3270-Regular.otf",
"./build/3270-Regular.woff",
"./build/3270-Regular.woff2",
"./build/3270SemiCondensed-Regular.ttf",
"./build/3270SemiCondensed-Regular.otf",
"./build/3270SemiCondensed-Regular.woff",
"./build/3270SemiCondensed-Regular.woff2",
"./build/3270Condensed-Regular.ttf",
"./build/3270Condensed-Regular.otf",
"./build/3270Condensed-Regular.woff",
"./build/3270Condensed-Regular.woff2",
)


Expand Down

0 comments on commit 9644ea6

Please sign in to comment.