Skip to content

Commit

Permalink
Merge pull request #22 from aaronbell/main
Browse files Browse the repository at this point in the history
Updating to UFR format, and fixing STAT tables
  • Loading branch information
m4rc1e authored Jul 29, 2021
2 parents 132fdfd + 0155741 commit bf6907e
Show file tree
Hide file tree
Showing 56 changed files with 221 additions and 390 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build font and specimen

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Linux dependencies
run: |
sudo snap install yq
- name: Build font
run: make build
- name: Check with fontbakery
run: make test
continue-on-error: true
- name: Generate proofs
run: make proof
- name: Gather
run: |
mkdir for-gh-pages
mv fontbakery-report.html for-gh-pages
mv proof/* for-gh-pages
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: |
for-gh-pages
- name: Remove temp folder
run: |
rm -rf for-gh-pages
19 changes: 13 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# file manager empty files
*~
venv
build.stamp
proof

# OS generated files #
######################
.DS_Store
.empty
.sparkleshare
# font editor temporary files
*(Autosaved).glyphs
*.vfbak
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
SOURCES=$(shell yq e '.sources.[] | sub("^","sources/")' sources/config.yaml )
FAMILY=$(shell yq e '.familyName' sources/config.yaml )

help:
@echo "###"
@echo "# Build targets for $(FAMILY)"
@echo "###"
@echo
@echo " make build: Builds the fonts and places them in the fonts/ directory"
@echo " make test: Tests the fonts with fontbakery"
@echo " make proof: Creates HTML proof documents in the proof/ directory"
@echo

build: build.stamp sources/config.yaml $(SOURCES)

venv: venv/touchfile

build.stamp: venv
. venv/bin/activate; gftools builder sources/config.yaml && touch build.stamp

venv/touchfile: requirements.txt
test -d venv || python3 -m venv venv
. venv/bin/activate; pip install -Ur requirements.txt
touch venv/touchfile

test: venv build.stamp
. venv/bin/activate; fontbakery check-googlefonts --html fontbakery-report.html --ghmarkdown fontbakery-report.md $(shell find fonts -type f)

proof: venv build.stamp
. venv/bin/activate; gftools gen-html proof $(shell find fonts/ttf -type f) -o proof

clean:
rm -rf venv
find -iname "*.pyc" -delete
4 changes: 2 additions & 2 deletions OFL.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2010 The Josefin Sans Project Authors (hi@typemade.mx), with Reserved Font Name "Josefin Sans".
Copyright 2010 The Josefin Sans Project Authors (https://github.com/ThomasJockin/JosefinSansFont-master), with Reserved Font Name "Josefin Sans".

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
Expand All @@ -18,7 +18,7 @@ with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@ by Santiago Orozco

This project is a fork from the old Google font repository.

## Building

Fonts are built automatically by GitHub Actions - take a look in the "Actions" tab for the latest build.

If you particularly want to build fonts manually on your own computer, you will need to install the [`yq` utility](https://github.com/mikefarah/yq). On OS X with Homebrew, type `brew install yq`; on Linux, try `snap install yq`; if all else fails, try the instructions on the linked page.

Then:

* `make build` will produce font files.
* `make test` will run [FontBakery](https://github.com/googlefonts/fontbakery)'s quality assurance tests.
* `make proof` will generate HTML proof files.

## License

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at
http://scripts.sil.org/OFL

# Completed tasks:

* Create Repository.
Expand Down
1 change: 1 addition & 0 deletions TRADEMARKS.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Josefin Sans is a trademark of Typemade.
Demo is a trademark of FontStudio, Inc.
Binary file modified fonts/otf/JosefinSans-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/JosefinSans-BoldItalic.otf
Binary file not shown.
Binary file added fonts/otf/JosefinSans-ExtraLight.otf
Binary file not shown.
Binary file added fonts/otf/JosefinSans-ExtraLightItalic.otf
Binary file not shown.
Binary file added fonts/otf/JosefinSans-Italic.otf
Binary file not shown.
Binary file modified fonts/otf/JosefinSans-Light.otf
Binary file not shown.
Binary file modified fonts/otf/JosefinSans-LightItalic.otf
Binary file not shown.
Binary file added fonts/otf/JosefinSans-Medium.otf
Binary file not shown.
Binary file added fonts/otf/JosefinSans-MediumItalic.otf
Binary file not shown.
Binary file modified fonts/otf/JosefinSans-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/JosefinSans-SemiBold.otf
Binary file not shown.
Binary file added fonts/otf/JosefinSans-SemiBoldItalic.otf
Binary file not shown.
Binary file modified fonts/otf/JosefinSans-Thin.otf
Binary file not shown.
Binary file modified fonts/otf/JosefinSans-ThinItalic.otf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/ttf/JosefinSans-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/ttf/JosefinSans-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/ttf/JosefinSans-Italic.ttf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-LightItalic.ttf
Binary file not shown.
Binary file added fonts/ttf/JosefinSans-Medium.ttf
Binary file not shown.
Binary file added fonts/ttf/JosefinSans-MediumItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-SemiBold.ttf
Binary file not shown.
Binary file added fonts/ttf/JosefinSans-SemiBoldItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-Thin.ttf
Binary file not shown.
Binary file modified fonts/ttf/JosefinSans-ThinItalic.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-Bold.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-BoldItalic.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-ExtraLight.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-ExtraLightItalic.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-Italic.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-Light.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-LightItalic.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-Medium.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-MediumItalic.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-Regular.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-SemiBold.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-SemiBoldItalic.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-Thin.woff2
Binary file not shown.
Binary file added fonts/webfonts/JosefinSans-ThinItalic.woff2
Binary file not shown.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fontmake>=2.4
fontbakery>=0.7
gftools>=0.7
2 changes: 1 addition & 1 deletion sources/JosefinSans-BoldItalic.ufo/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<key>postscriptUnderlineThickness</key>
<integer>50</integer>
<key>styleMapFamilyName</key>
<string>Josefin Sans Bold</string>
<string>Josefin Sans</string>
<key>styleMapStyleName</key>
<string>bold italic</string>
<key>styleName</key>
Expand Down
Loading

0 comments on commit bf6907e

Please sign in to comment.