-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
500 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Build Process | ||
|
||
```mermaid | ||
%%{init: | ||
{ | ||
"theme": "default", | ||
"themeVariables": { | ||
"fontFamily": "-apple-system, system-ui, sans-serif", | ||
"fontSize": "16px" | ||
} | ||
} | ||
}%% | ||
flowchart TD; | ||
id1("Glyphspackage source file") -- "fontmake" --> id2("Unmodified UFOs and Designspace") | ||
subgraph "Local Build Process" | ||
id2 -- "copy_kern.py \n stat.py" --> id3("UFOs and Designspace ready to be compiled") | ||
id3 -- "fontmake" --> id4("Binary TTF font") | ||
end | ||
id1 -- "get_ver.py" --> id21("Version String") | ||
subgraph "Upload" | ||
id4 -- "make zip" --> id5("Fonts in Zip") | ||
id5 & id21 -- "mv rename" --> id6("Renamed Zip") | ||
id6 -- "Github Arifact Upload" --> id7("Actions Artifacts") | ||
id6 -- "Release Upload" --> id8("Pre-release files") | ||
end | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from fontTools.ttLib.woff2 import compress | ||
|
||
# Usage example | ||
""" | ||
Compress TrueType font to WOFF2 format | ||
""" | ||
|
||
ttf_path = 'fonts/variable/InterNumeric[wght,RDNS].ttf' | ||
woff2_path = 'fonts/variable/InterNumeric[wght,RDNS].woff2' | ||
|
||
# Convert the variable font to WOFF2 format | ||
compress(ttf_path, woff2_path) | ||
if __name__ == "__main__": | ||
compress(ttf_path, woff2_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import os | ||
from glyphsLib import GSFont | ||
|
||
""" | ||
Get font version from Glyphspackage source file, store it in verion.txt | ||
No need to keep track of version in a seperate file. | ||
Only used in GitHub Workflows to give artifacts a file name. | ||
""" | ||
|
||
def get_font_version(glyphspackage_path): | ||
font = GSFont(glyphspackage_path) | ||
|
||
return f"{font.versionMajor}.{font.versionMinor:03}" | ||
|
||
inter_numeric_src_path = "src/InterNumeric.glyphspackage" | ||
|
||
try: | ||
os.remove("version.txt") | ||
except FileNotFoundError: | ||
pass | ||
|
||
with open("version.txt", "w") as version_file: | ||
version_file.write(get_font_version(inter_numeric_src_path)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{ | ||
displayStrings = ( | ||
".", | ||
"1/zero.cv05 23 | ||
34:20", | ||
A, | ||
"/zero.cv05/zero.slash.cv05/zero.tf.slash.cv05" | ||
"/six.cv05 1", | ||
"5" | ||
); | ||
} |
Oops, something went wrong.