Skip to content

Commit

Permalink
added Gelsio style make file.
Browse files Browse the repository at this point in the history
deleted old files
  • Loading branch information
EbenSorkin committed Nov 17, 2023
1 parent 31bdc5e commit cc38850
Show file tree
Hide file tree
Showing 7 changed files with 375 additions and 11 deletions.
12 changes: 12 additions & 0 deletions DESCRIPTION.en_us.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<p>
Please add a text describing the font here, 100 chracters or more, but no more than 500 words.
See https://googlefonts.github.io/gf-guide/description.html for further reference.
Please make sure that HTML characters are properly encoded. ('&' becomes &amp; etc.)
If unsure, use https://www.freeformatter.com/html-escape.html for formatting. (Use "Escape HTML").
</p>
<p>
Could be several paragraphs, also.
</p>
<p>
To contribute, see <a href="https://github.com/youruseraccount/yourrepository">github.com/youruseraccount/yourrepository</a>.
</p>
24 changes: 13 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SOURCES=sources/Pinyon.glyphs
FAMILY=Pinyon
SOURCES=$(shell python3 scripts/read-config.py --sources )
FAMILY=$(shell python3 scripts/read-config.py --family )
DRAWBOT_SCRIPTS=$(shell ls documentation/*.py)
DRAWBOT_OUTPUT=$(shell ls documentation/*.py | sed 's/\.py/.png/g')

Expand All @@ -18,20 +18,22 @@ build: build.stamp

venv: venv/touchfile

build.stamp: venv sources/config.yaml $(SOURCES)
rm -rf fonts
(for config in sources/config*.yaml; do . venv/bin/activate; gftools builder $$config; done) && touch build.stamp
build.stamp: venv .init.stamp sources/config.yaml $(SOURCES)
. venv/bin/activate; rm -rf fonts/; gftools builder sources/config.yaml && touch build.stamp

.init.stamp: venv
. venv/bin/activate; python3 scripts/first-run.py

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; mkdir -p out/ out/fontbakery; fontbakery check-googlefonts --config fontbakery.yml -l WARN --full-lists --succinct --badges out/badges --html out/fontbakery/fontbakery-report.html --ghmarkdown out/fontbakery/fontbakery-report.md $(shell find fonts/ttf -type f) || echo '::warning file=sources/config.yaml,title=Fontbakery failures::The fontbakery QA check reported errors in your font. Please check the generated report.'
. venv/bin/activate; mkdir -p out/ out/fontbakery; fontbakery check-googlefonts -l WARN --succinct --badges out/badges --html out/fontbakery/fontbakery-report.html --ghmarkdown out/fontbakery/fontbakery-report.md $(shell find fonts/ttf -type f)

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

images: venv build.stamp $(DRAWBOT_OUTPUT)
git add documentation/*.png && git commit -m "Rebuild images" documentation/*.png
Expand All @@ -41,10 +43,10 @@ images: venv build.stamp $(DRAWBOT_OUTPUT)

clean:
rm -rf venv
find . -name "*.pyc" -delete
find . -name "*.pyc" | xargs rm delete

update-project-template:
npx update-template https://github.com/googlefonts/googlefonts-project-template/
update-ufr:
npx update-template https://github.com/googlefonts/Unified-Font-Repository/

update:
pip install --upgrade $(dependency); pip freeze > requirements.txt
pip install --upgrade $(dependency); pip freeze > requirements.txt
Binary file removed old/fonts_0522/otf/PinyonScript-Regular.otf
Binary file not shown.
Binary file removed old/fonts_0522/ttf/PinyonScript-Regular.ttf
Binary file not shown.
Binary file removed old/fonts_0522/variable/PinyonScript[wght].ttf
Binary file not shown.
Binary file removed old/fonts_0522/webfonts/PinyonScript-Regular.woff2
Binary file not shown.
Loading

0 comments on commit cc38850

Please sign in to comment.