Skip to content

Commit

Permalink
Add woff2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rishubil committed Jun 8, 2024
1 parent 241e326 commit 7a4e16b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

python ./src/svg_to_font.py --svg-dir ./src/inaffont-meconopsis/thin-glyphs --family-name "INAFFont Meconopsis" --font-name "INAFFont Meconopsis Thin" --weight-name "Thin" --version "0.3" --output "./dist/inaffont-meconopsis-thin.otf"
python ./src/svg_to_font.py --svg-dir ./src/inaffont-meconopsis/regular-glyphs --family-name "INAFFont Meconopsis" --font-name "INAFFont Meconopsis Regular" --weight-name "Regular" --version "0.3" --output "./dist/inaffont-meconopsis-regular.otf"
python ./src/svg_to_font.py --svg-dir ./src/inaffont-meconopsis/bold-glyphs --family-name "INAFFont Meconopsis" --font-name "INAFFont Meconopsis Bold" --weight-name "Bold" --version "0.3" --output "./dist/inaffont-meconopsis-bold.otf"
python ./src/svg_to_font.py --svg-dir ./src/inaffont-meconopsis/bold-glyphs --family-name "INAFFont Meconopsis" --font-name "INAFFont Meconopsis Bold" --weight-name "Bold" --version "0.3" --output "./dist/inaffont-meconopsis-bold.otf"
python ./src/svg_to_font.py --svg-dir ./src/inaffont-meconopsis/thin-glyphs --family-name "INAFFont Meconopsis" --font-name "INAFFont Meconopsis Thin" --weight-name "Thin" --version "0.3" --output "./dist/inaffont-meconopsis-thin.woff2"
python ./src/svg_to_font.py --svg-dir ./src/inaffont-meconopsis/regular-glyphs --family-name "INAFFont Meconopsis" --font-name "INAFFont Meconopsis Regular" --weight-name "Regular" --version "0.3" --output "./dist/inaffont-meconopsis-regular.woff2"
python ./src/svg_to_font.py --svg-dir ./src/inaffont-meconopsis/bold-glyphs --family-name "INAFFont Meconopsis" --font-name "INAFFont Meconopsis Bold" --weight-name "Bold" --version "0.3" --output "./dist/inaffont-meconopsis-bold.woff2"
Binary file modified dist/inaffont-meconopsis-bold.otf
Binary file not shown.
Binary file added dist/inaffont-meconopsis-bold.woff2
Binary file not shown.
Binary file modified dist/inaffont-meconopsis-regular.otf
Binary file not shown.
Binary file added dist/inaffont-meconopsis-regular.woff2
Binary file not shown.
Binary file modified dist/inaffont-meconopsis-thin.otf
Binary file not shown.
Binary file added dist/inaffont-meconopsis-thin.woff2
Binary file not shown.
12 changes: 9 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,23 @@
<style>
@font-face {
font-family: "INAFFont Meconopsis Thin";
src: url("./dist/inaffont-meconopsis-thin.otf") format("opentype");
src:
url("./dist/inaffont-meconopsis-thin.woff2") format("woff2"),
url("./dist/inaffont-meconopsis-thin.otf") format("opentype");
}

@font-face {
font-family: "INAFFont Meconopsis Regular";
src: url("./dist/inaffont-meconopsis-regular.otf") format("opentype");
src:
url("./dist/inaffont-meconopsis-regular.woff2") format("woff2"),
url("./dist/inaffont-meconopsis-regular.otf") format("opentype");
}

@font-face {
font-family: "INAFFont Meconopsis Bold";
src: url("./dist/inaffont-meconopsis-bold.otf") format("opentype");
src:
url("./dist/inaffont-meconopsis-bold.woff2") format("woff2"),
url("./dist/inaffont-meconopsis-bold.otf") format("opentype");
}

:root {
Expand Down

0 comments on commit 7a4e16b

Please sign in to comment.