├── requirements-test.in ├── requirements.txt ├── requirements-test.txt ├── fonts ├── otf │ ├── MomoTrustSans-Bold.otf │ ├── MomoTrustSans-Light.otf │ ├── MomoTrustSans-Medium.otf │ ├── MomoTrustSans-ExtraBold.otf │ ├── MomoTrustSans-Regular.otf │ ├── MomoTrustSans-Semibold.otf │ └── MomoTrustSans-Extralight.otf ├── ttf │ ├── MomoTrustSans-Bold.ttf │ ├── MomoTrustSans-Light.ttf │ ├── MomoTrustSans-Medium.ttf │ ├── MomoTrustSans-ExtraBold.ttf │ ├── MomoTrustSans-Regular.ttf │ ├── MomoTrustSans-Semibold.ttf │ └── MomoTrustSans-Extralight.ttf ├── variable │ └── MomoTrustSans[wght].ttf └── webfonts │ ├── MomoTrustSans-Bold.woff2 │ ├── MomoTrustSans-Light.woff2 │ ├── MomoTrustSans-Medium.woff2 │ ├── MomoTrustSans-Regular.woff2 │ ├── MomoTrustSans[wght].woff2 │ ├── MomoTrustSans-ExtraBold.woff2 │ ├── MomoTrustSans-Semibold.woff2 │ └── MomoTrustSans-Extralight.woff2 ├── sources └── config.yaml ├── requirements.in ├── renovate.json ├── scripts ├── update-custom-filter.py ├── index.html ├── read-config.py └── customize.py ├── README.md ├── AUTHORS.txt ├── CONTRIBUTORS.txt ├── documentation └── DESCRIPTION.en_us.html ├── Makefile ├── OFL.txt └── .github └── workflows └── build.yaml /requirements-test.in: -------------------------------------------------------------------------------- 1 | fontbakery[googlefonts]>=0.9.2 2 | gftools[qa]>=0.9.23 3 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | # Placeholder file, update the requirements by running `make update`. 2 | -r requirements.in 3 | -------------------------------------------------------------------------------- /requirements-test.txt: -------------------------------------------------------------------------------- 1 | # Placeholder file, update the requirements by running `make update`. 2 | -r requirements-test.in 3 | -------------------------------------------------------------------------------- /fonts/otf/MomoTrustSans-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/otf/MomoTrustSans-Bold.otf -------------------------------------------------------------------------------- /fonts/ttf/MomoTrustSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/ttf/MomoTrustSans-Bold.ttf -------------------------------------------------------------------------------- /sources/config.yaml: -------------------------------------------------------------------------------- 1 | sources: 2 | - MomoTrustSans.glyphs 3 | familyName: "Momo Trust Sans" 4 | cleanUp: true -------------------------------------------------------------------------------- /fonts/otf/MomoTrustSans-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/otf/MomoTrustSans-Light.otf -------------------------------------------------------------------------------- /fonts/otf/MomoTrustSans-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/otf/MomoTrustSans-Medium.otf -------------------------------------------------------------------------------- /fonts/ttf/MomoTrustSans-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/ttf/MomoTrustSans-Light.ttf -------------------------------------------------------------------------------- /fonts/ttf/MomoTrustSans-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/ttf/MomoTrustSans-Medium.ttf -------------------------------------------------------------------------------- /fonts/otf/MomoTrustSans-ExtraBold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/otf/MomoTrustSans-ExtraBold.otf -------------------------------------------------------------------------------- /fonts/otf/MomoTrustSans-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/otf/MomoTrustSans-Regular.otf -------------------------------------------------------------------------------- /fonts/otf/MomoTrustSans-Semibold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/otf/MomoTrustSans-Semibold.otf -------------------------------------------------------------------------------- /fonts/ttf/MomoTrustSans-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/ttf/MomoTrustSans-ExtraBold.ttf -------------------------------------------------------------------------------- /fonts/ttf/MomoTrustSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/ttf/MomoTrustSans-Regular.ttf -------------------------------------------------------------------------------- /fonts/ttf/MomoTrustSans-Semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/ttf/MomoTrustSans-Semibold.ttf -------------------------------------------------------------------------------- /fonts/otf/MomoTrustSans-Extralight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/otf/MomoTrustSans-Extralight.otf -------------------------------------------------------------------------------- /fonts/ttf/MomoTrustSans-Extralight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/ttf/MomoTrustSans-Extralight.ttf -------------------------------------------------------------------------------- /fonts/variable/MomoTrustSans[wght].ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/variable/MomoTrustSans[wght].ttf -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans-Bold.woff2 -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans-Light.woff2 -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans-Medium.woff2 -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans-Regular.woff2 -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans[wght].woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans[wght].woff2 -------------------------------------------------------------------------------- /requirements.in: -------------------------------------------------------------------------------- 1 | fontmake>=3.9.0 2 | gftools[qa]>=0.9.54 3 | drawbot-skia>=0.5.0 4 | sh>=2.0.6 5 | bumpfontversion>=0.4.1 6 | diffenator2>=0.3.8 7 | -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans-ExtraBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans-ExtraBold.woff2 -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans-Semibold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans-Semibold.woff2 -------------------------------------------------------------------------------- /fonts/webfonts/MomoTrustSans-Extralight.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeassociates/MomoTrustSans/HEAD/fonts/webfonts/MomoTrustSans-Extralight.woff2 -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended" 5 | ], 6 | "rangeStrategy": "bump" 7 | } 8 | -------------------------------------------------------------------------------- /scripts/update-custom-filter.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | GF_Latin_All = "https://github.com/googlefonts/glyphsets/raw/main/GF_glyphsets/Latin/glyphs/CustomFilter_GF_Latin.plist" 4 | dest = "sources/CustomFilter_GF_Latin_All.plist" 5 | 6 | r = requests.get(GF_Latin_All) 7 | with open(dest, "wb") as f: 8 | f.write(r.content) 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ---- 2 | 3 | ## Momo Trust Sans 4 | 5 | MoMo Trust Sans draws inspiration from the MoMo logotype, incorporating subtle cues from the rounded, approachable forms that define the brand’s core look. 6 | 7 | It is one of the custom typefaces designed in 2024 by M — N Associates for the Vietnamese e-wallet app MoMo. 8 | 9 | ### License 10 | 11 | Momo Trust Sans is licensed under the SIL Open Font License v1.1 12 | -------------------------------------------------------------------------------- /AUTHORS.txt: -------------------------------------------------------------------------------- 1 | # This is the official list of project authors for copyright purposes. The first name in the list (if there are several authors), will appear as "Principal design" in the "about" section of the font specimen on Google Fonts. 2 | # This file is distinct from the CONTRIBUTORS.txt file. 3 | # See the latter for an explanation. 4 | # 5 | # Names should be added to this file as: 6 | # Name or Organization 7 | 8 | TYPE Associates 9 | -------------------------------------------------------------------------------- /scripts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | My Font development 7 | 8 | 9 |

My Font testing pages

10 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /CONTRIBUTORS.txt: -------------------------------------------------------------------------------- 1 | # This is the list of people who have contributed to this project, 2 | # and includes those not listed in AUTHORS.txt because they are not 3 | # copyright authors. For example, company employees may be listed 4 | # here because their company holds the copyright and is listed there. 5 | # 6 | # When adding J Random Contributor's name to this file, either J's 7 | # name or J's organization's name should be added to AUTHORS.txt 8 | # 9 | # Names should be added to this file as: 10 | # Name 11 | 12 | TYPE Associates 13 | -------------------------------------------------------------------------------- /scripts/read-config.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Yes, this is a Bad YAML Parser, but at this stage we are not in the 3 | # venv and do not know what modules the user has available, so for 4 | # maximum compatibility, we are just assuming a plain Python distribution. 5 | import argparse 6 | import re 7 | import sys 8 | import os 9 | 10 | parser = argparse.ArgumentParser() 11 | group = parser.add_mutually_exclusive_group(required=True) 12 | group.add_argument("--sources", action="store_true") 13 | group.add_argument("--family", action="store_true") 14 | args = parser.parse_args() 15 | 16 | with open(os.path.join("sources", "config.yaml")) as config: 17 | data = config.read() 18 | 19 | if args.family: 20 | m = re.search(r"(?m)^familyName: (.*)", data) 21 | if m: 22 | print(m[1]) 23 | sys.exit(0) 24 | else: 25 | print("Could not determine family name from config file!") 26 | sys.exit(1) 27 | 28 | toggle = False 29 | sources = [] 30 | for line in data.splitlines(): 31 | if re.match("^sources:", line): 32 | toggle = True 33 | continue 34 | if toggle: 35 | m = re.match(r"^\s*-\s*(.*)", line) 36 | if m: 37 | sources.append("sources/" + m[1]) 38 | else: 39 | toggle = False 40 | if sources: 41 | print(" ".join(sources)) 42 | sys.exit(0) 43 | else: 44 | print("Could not determine sources from config file!") 45 | sys.exit(1) 46 | -------------------------------------------------------------------------------- /documentation/DESCRIPTION.en_us.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 17 | 18 | 19 |

MoMo Trust Sans draws inspiration from the MoMo logotype, incorporating subtle cues from the rounded, approachable forms that define the brand’s core look.

20 |

This font was designed by TYPE Associates in 2024.

21 |

To contribute, see github.com/typeassociates/MomoTrustSans.

22 | 23 | 24 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | SOURCES=$(shell python3 scripts/read-config.py --sources ) 2 | FAMILY=$(shell python3 scripts/read-config.py --family ) 3 | DRAWBOT_SCRIPTS=$(shell ls documentation/*.py) 4 | DRAWBOT_OUTPUT=$(shell ls documentation/*.py | sed 's/\.py/.png/g') 5 | 6 | help: 7 | @echo "###" 8 | @echo "# Build targets for $(FAMILY)" 9 | @echo "###" 10 | @echo 11 | @echo " make build: Builds the fonts and places them in the fonts/ directory" 12 | @echo " make test: Tests the fonts with fontbakery" 13 | @echo " make proof: Creates HTML proof documents in the proof/ directory" 14 | @echo " make images: Creates PNG specimen images in the documentation/ directory" 15 | @echo 16 | 17 | build: build.stamp 18 | 19 | venv: venv/touchfile 20 | 21 | venv-test: venv-test/touchfile 22 | 23 | customize: venv 24 | . venv/bin/activate; python3 scripts/customize.py 25 | 26 | build.stamp: venv sources/config.yaml $(SOURCES) 27 | rm -rf fonts 28 | (for config in sources/config*.yaml; do . venv/bin/activate; gftools builder $$config; done) && touch build.stamp 29 | 30 | venv/touchfile: requirements.txt 31 | test -d venv || python3 -m venv venv 32 | . venv/bin/activate; pip install -Ur requirements.txt 33 | touch venv/touchfile 34 | 35 | venv-test/touchfile: requirements-test.txt 36 | test -d venv-test || python3 -m venv venv-test 37 | . venv-test/bin/activate; pip install -Ur requirements-test.txt 38 | touch venv-test/touchfile 39 | 40 | test: venv-test build.stamp 41 | TOCHECK=$$(find fonts/variable -type f 2>/dev/null); if [ -z "$$TOCHECK" ]; then TOCHECK=$$(find fonts/ttf -type f 2>/dev/null); fi ; . venv-test/bin/activate; mkdir -p out/ out/fontbakery; fontbakery check-googlefonts -l WARN --full-lists --succinct --badges out/badges --html out/fontbakery/fontbakery-report.html --ghmarkdown out/fontbakery/fontbakery-report.md $$TOCHECK || echo '::warning file=sources/config.yaml,title=Fontbakery failures::The fontbakery QA check reported errors in your font. Please check the generated report.' 42 | 43 | proof: venv build.stamp 44 | TOCHECK=$$(find fonts/variable -type f 2>/dev/null); if [ -z "$$TOCHECK" ]; then TOCHECK=$$(find fonts/ttf -type f 2>/dev/null); fi ; . venv/bin/activate; mkdir -p out/ out/proof; diffenator2 proof $$TOCHECK -o out/proof 45 | 46 | images: venv $(DRAWBOT_OUTPUT) 47 | 48 | %.png: %.py build.stamp 49 | . venv/bin/activate; python3 $< --output $@ 50 | 51 | clean: 52 | rm -rf venv 53 | find . -name "*.pyc" -delete 54 | 55 | update-project-template: 56 | npx update-template https://github.com/googlefonts/googlefonts-project-template/ 57 | 58 | update: venv venv-test 59 | venv/bin/pip install --upgrade pip-tools 60 | # See https://pip-tools.readthedocs.io/en/latest/#a-note-on-resolvers for 61 | # the `--resolver` flag below. 62 | venv/bin/pip-compile --upgrade --verbose --resolver=backtracking requirements.in 63 | venv/bin/pip-sync requirements.txt 64 | 65 | venv-test/bin/pip install --upgrade pip-tools 66 | venv-test/bin/pip-compile --upgrade --verbose --resolver=backtracking requirements-test.in 67 | venv-test/bin/pip-sync requirements-test.txt 68 | 69 | git commit -m "Update requirements" requirements.txt requirements-test.txt 70 | git push 71 | -------------------------------------------------------------------------------- /scripts/customize.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # This script is run by the user using `make customize` after the repository 4 | # is cloned. If you are reading this because `make customize` failed, 5 | # skip down to the section headed "INITIALIZATION STEPS". 6 | 7 | from sh import git 8 | import datetime 9 | import re 10 | import sys 11 | from urllib.parse import quote 12 | import subprocess 13 | import requests 14 | 15 | BASE_OWNER = "googlefonts" 16 | BASE_REPONAME = "googlefonts-project-template" 17 | DUMMY_URL = "https://yourname.github.io/your-font-repository-name" 18 | LATEST_OFL = "https://raw.githubusercontent.com/googlefonts/googlefonts-project-template/main/OFL.txt" 19 | 20 | 21 | def repo_url(owner, name): 22 | return f"https://github.com/{owner}/{name}" 23 | 24 | 25 | def web_url(owner, name): 26 | return f"https://{owner}.github.io/{name}" 27 | 28 | 29 | def raw_url(owner, name): 30 | return f"https://raw.githubusercontent.com/{owner}/{name}" 31 | 32 | 33 | def lose(msg, e=None): 34 | print(msg) 35 | print("You will need to do the initialization steps manually.") 36 | print("Read scripts/customize.py for more instructions how to do this.") 37 | if e: 38 | print( 39 | "\nHere's an additional error message which may help diagnose the problem." 40 | ) 41 | raise e 42 | sys.exit(1) 43 | 44 | 45 | try: 46 | my_repo_url = git.remote("get-url", "origin") 47 | except Exception as e: 48 | lose("Could not use git to find my own repository URL", e) 49 | 50 | m = re.match(r"(?:https://github.com/|git@github.com:)(.*)/(.*)/?", str(my_repo_url)) 51 | if not m: 52 | lose( 53 | f"My git repository URL ({my_repo_url}) didn't look what I expected - are you hosting this on github?" 54 | ) 55 | 56 | owner, reponame = m[1], m[2] 57 | 58 | if owner == BASE_OWNER and reponame == BASE_REPONAME: 59 | print("I am being run on the upstream repository; don't do that") 60 | sys.exit() 61 | 62 | # INITIALIZATION STEPS 63 | 64 | # First, the README file contains URLs to pages in the `gh-pages` branch of the 65 | # repo. When initially cloned, these URLs will point to the 66 | # googlefonts/Unified-Font-Repository itself. But downstream users want links 67 | # and badges about their own font, not ours! So any URLs need to be adjusted to 68 | # refer to the end user's repository. 69 | 70 | # We will also pin the dependencies so future builds are reproducible. 71 | 72 | readme = open("README.md").read() 73 | ghpages_url = web_url(owner, reponame) 74 | project_url = repo_url(owner, reponame) 75 | 76 | print("Fixing URLs:", web_url(BASE_OWNER, BASE_REPONAME), "->", ghpages_url) 77 | 78 | readme = readme.replace(web_url(BASE_OWNER, BASE_REPONAME), ghpages_url) 79 | # In the badges, the URLs to raw.githubusercontent.com are URL-encoded as they 80 | # are passed to shields.io. 81 | readme = readme.replace( 82 | quote(raw_url(BASE_OWNER, BASE_REPONAME), safe=""), 83 | quote(raw_url(owner, reponame), safe=""), 84 | ) 85 | 86 | print("Fixing URLs:", DUMMY_URL, "->", ghpages_url) 87 | readme = readme.replace(f"`{DUMMY_URL}`", ghpages_url) 88 | 89 | with open("README.md", "w") as fh: 90 | fh.write(readme) 91 | 92 | git.add("README.md") 93 | 94 | # Fix the OFL 95 | year = datetime.date.today().year 96 | title = reponame.title() 97 | copyright = f"Copyright {year} The {title} Project Authors ({project_url})\n" 98 | print("Fetching the latest OFL..") 99 | ofl = requests.get(LATEST_OFL).text.splitlines() 100 | print("Writing an OFL for you") 101 | print(copyright) 102 | with open("OFL.txt", "w") as fh: 103 | fh.write(copyright) 104 | fh.write("\n".join(ofl[1:])) 105 | 106 | git.add("OFL.txt") 107 | 108 | # Pin the dependencies 109 | print("Pinning dependencies") 110 | dependencies = subprocess.check_output(["pip", "freeze"]) 111 | with open("requirements.txt", "wb") as dependency_file: 112 | dependency_file.write(dependencies) 113 | git.add("requirements.txt") 114 | 115 | # Did anything change? 116 | result = git.status("--porcelain") 117 | if any(line.startswith("M ") for line in result.splitlines()): 118 | git.commit("-m", "Customize repository") 119 | 120 | print("Pushing changes to GitHub") 121 | git.push() 122 | else: 123 | print("Nothing changed, no need to push") 124 | -------------------------------------------------------------------------------- /OFL.txt: -------------------------------------------------------------------------------- 1 | Copyright 2024 The MoMo Trust Sans Project Authors (https://github.com/typeassociates/MomoTrustSans) 2 | 3 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 4 | This license is copied below, and is also available with a FAQ at: 5 | https://openfontlicense.org 6 | 7 | 8 | ----------------------------------------------------------- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | ----------------------------------------------------------- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide 14 | development of collaborative font projects, to support the font creation 15 | efforts of academic and linguistic communities, and to provide a free and 16 | open framework in which fonts may be shared and improved in partnership 17 | with others. 18 | 19 | The OFL allows the licensed fonts to be used, studied, modified and 20 | redistributed freely as long as they are not sold by themselves. The 21 | fonts, including any derivative works, can be bundled, embedded, 22 | redistributed and/or sold with any software provided that any reserved 23 | names are not used by derivative works. The fonts and derivatives, 24 | however, cannot be released under any other type of license. The 25 | requirement for fonts to remain under this license does not apply 26 | to any document created using the fonts or their derivatives. 27 | 28 | DEFINITIONS 29 | "Font Software" refers to the set of files released by the Copyright 30 | Holder(s) under this license and clearly marked as such. This may 31 | include source files, build scripts and documentation. 32 | 33 | "Reserved Font Name" refers to any names specified as such after the 34 | copyright statement(s). 35 | 36 | "Original Version" refers to the collection of Font Software components as 37 | distributed by the Copyright Holder(s). 38 | 39 | "Modified Version" refers to any derivative made by adding to, deleting, 40 | or substituting -- in part or in whole -- any of the components of the 41 | Original Version, by changing formats or by porting the Font Software to a 42 | new environment. 43 | 44 | "Author" refers to any designer, engineer, programmer, technical 45 | writer or other person who contributed to the Font Software. 46 | 47 | PERMISSION & CONDITIONS 48 | Permission is hereby granted, free of charge, to any person obtaining 49 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 50 | redistribute, and sell modified and unmodified copies of the Font 51 | Software, subject to the following conditions: 52 | 53 | 1) Neither the Font Software nor any of its individual components, 54 | in Original or Modified Versions, may be sold by itself. 55 | 56 | 2) Original or Modified Versions of the Font Software may be bundled, 57 | redistributed and/or sold with any software, provided that each copy 58 | contains the above copyright notice and this license. These can be 59 | included either as stand-alone text files, human-readable headers or 60 | in the appropriate machine-readable metadata fields within text or 61 | binary files as long as those fields can be easily viewed by the user. 62 | 63 | 3) No Modified Version of the Font Software may use the Reserved Font 64 | Name(s) unless explicit written permission is granted by the corresponding 65 | Copyright Holder. This restriction only applies to the primary font name as 66 | presented to the users. 67 | 68 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 69 | Software shall not be used to promote, endorse or advertise any 70 | Modified Version, except to acknowledge the contribution(s) of the 71 | Copyright Holder(s) and the Author(s) or with their explicit written 72 | permission. 73 | 74 | 5) The Font Software, modified or unmodified, in part or in whole, 75 | must be distributed entirely under this license, and must not be 76 | distributed under any other license. The requirement for fonts to 77 | remain under this license does not apply to any document created 78 | using the Font Software. 79 | 80 | TERMINATION 81 | This license becomes null and void if any of the above conditions are 82 | not met. 83 | 84 | DISCLAIMER 85 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 86 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 87 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 88 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 89 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 90 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 91 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 92 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 93 | OTHER DEALINGS IN THE FONT SOFTWARE. 94 | -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- 1 | name: Build font and specimen 2 | 3 | on: push 4 | 5 | jobs: 6 | build: 7 | name: Build and test 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v4 11 | - name: Set up Python 3.10 12 | uses: actions/setup-python@v5 13 | with: 14 | python-version: "3.10" 15 | - name: Install sys tools/deps 16 | run: | 17 | sudo apt-get update 18 | sudo apt-get install ttfautohint libcairo2-dev python3-cairo-dev pkg-config python3-dev 19 | sudo snap install yq 20 | - uses: actions/cache@v4 21 | with: 22 | path: ./venv/ 23 | key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements*.txt') }} 24 | restore-keys: | 25 | ${{ runner.os }}-venv- 26 | - name: gen zip file name 27 | id: zip-name 28 | shell: bash 29 | # Set the archive name to repo name + "-assets" e.g "MavenPro-assets" 30 | run: echo "ZIP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')-fonts" >> $GITHUB_ENV 31 | 32 | # If a new release is cut, use the release tag to auto-bump the source files 33 | # - name: Bump release 34 | # if: github.event_name == 'release' 35 | # run: | 36 | # . venv/bin/activate 37 | # SRCS=$(yq e ".sources[]" sources/config.yaml) 38 | # TAG_NAME=${GITHUB_REF/refs\/tags\//} 39 | # echo "Bumping $SRCS to $TAG_NAME" 40 | # for src in $SRCS 41 | # do 42 | # bumpfontversion sources/$src --new-version $TAG_NAME; 43 | # done 44 | 45 | - name: Build font 46 | run: make build 47 | - name: Check with fontbakery 48 | run: make test 49 | continue-on-error: true 50 | - name: proof 51 | run: make proof 52 | - name: setup site 53 | run: cp scripts/index.html out/index.html 54 | - name: Deploy 55 | uses: peaceiris/actions-gh-pages@v4 56 | if: ${{ github.ref == 'refs/heads/main' }} 57 | with: 58 | github_token: ${{ secrets.GITHUB_TOKEN }} 59 | publish_dir: ./out 60 | - name: Archive artifacts 61 | uses: actions/upload-artifact@v4 62 | with: 63 | name: ${{ env.ZIP_NAME }} 64 | path: | 65 | fonts 66 | out 67 | outputs: 68 | zip_name: ${{ env.ZIP_NAME }} 69 | 70 | # There are two ways a release can be created: either by pushing a tag, or by 71 | # creating a release from the GitHub UI. Pushing a tag does not automatically 72 | # create a release, so we have to do that ourselves. However, creating a 73 | # release from the GitHub UI *does* push a tag, and we don't want to create 74 | # a new release in that case because one already exists! 75 | 76 | release: 77 | name: Create and populate release 78 | needs: build 79 | runs-on: ubuntu-latest 80 | if: contains(github.ref, 'refs/tags/') 81 | env: 82 | ZIP_NAME: ${{ needs.build.outputs.zip_name }} 83 | GH_TOKEN: ${{ github.token }} 84 | steps: 85 | - uses: actions/checkout@v4 86 | - name: Download font artefact files 87 | uses: actions/download-artifact@v4 88 | with: 89 | name: ${{ env.ZIP_NAME }} 90 | path: ${{ env.ZIP_NAME }} 91 | - name: Copy DESCRIPTION.en_us.html to artefact directory 92 | run: cp documentation/DESCRIPTION.en_us.html ${{ env.ZIP_NAME }}/DESCRIPTION.en_us.html 93 | - name: Copy ARTICLE.en_us.html to artefact directory 94 | run: cp documentation/ARTICLE.en_us.html ${{ env.ZIP_NAME }}/ARTICLE.en_us.html 95 | continue-on-error: true 96 | - name: Copy OFL.txt to artefact directory 97 | run: cp OFL.txt ${{ env.ZIP_NAME }}/OFL.txt 98 | - name: Remove proof/fontbakery stuff from release 99 | run: rm -rf ${{ env.ZIP_NAME }}/out 100 | - name: gen release file name 101 | shell: bash 102 | run: echo "RELEASE_ZIP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')-${{github.ref_name}}" >> $GITHUB_ENV 103 | - name: Create release bundle 104 | run: mv ${{ env.ZIP_NAME }} ${{ env.RELEASE_ZIP_NAME }}; zip -r ${{ env.RELEASE_ZIP_NAME }}.zip ${{ env.RELEASE_ZIP_NAME }} 105 | - name: Check for release 106 | id: create_release 107 | run: | 108 | if ! gh release view ${{ github.ref_name }}; then 109 | git show -s --format=%B ${{ github.ref_name }} | tail -n +4 | gh release create ${{ github.ref_name }} -t ${{ github.ref_name }} -F - 110 | fi 111 | - name: Populate release 112 | run: | 113 | gh release upload ${{ github.ref_name }} ${{ env.RELEASE_ZIP_NAME }}.zip --clobber 114 | - name: Set release live 115 | run: | 116 | gh release edit ${{ github.ref_name }} --draft=false 117 | --------------------------------------------------------------------------------