Skip to content

Commit 0e32330

Browse files
committed
clarify config.yaml option for Family Name *Suffix*
1 parent 92240cf commit 0e32330

7 files changed

Lines changed: 16 additions & 16 deletions

File tree

config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Example: "Custom" will yield the family "Rec Code Custom".
2121
# Keep under 13 characters in length to avoid potential OS bugs.
2222

23-
Family Name: Custom
23+
Family Name Suffix: Custom
2424

2525
# -----------------------------------------------------------------------------
2626
# Font Styles
@@ -71,7 +71,7 @@ Fonts:
7171
Code Ligatures: True
7272

7373
# Include font features to freeze in stylistic options. Copy them below to use.
74-
# See README for details.
74+
# See the project README for details.
7575

7676
# These options only have an affect at CRSV<=0.5 (Roman/normal styles)
7777
# ss01 # Single-story a

premade-configs/casual.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Configuration for Rec Code Casual
22
# Here as an example, or to tweak & use if you wish to
3-
# See README for details.
3+
# See the project README and top-level config.yaml for details.
44

5-
Family Name: Casual
5+
Family Name Suffix: Casual
66

77
Fonts:
88
Regular:

premade-configs/duotone.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Configuration for Rec Code Duotone
22
# Here as an example, or to tweak & use if you wish to
3-
# See README for details.
3+
# See the project README and top-level config.yaml for details.
44

5-
Family Name: Duotone
5+
Family Name Suffix: Duotone
66

77
Fonts:
88
Regular:

premade-configs/linear.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Configuration for Rec Code Linear
22
# Here as an example, or to tweak & use if you wish to
3-
# See README for details.
3+
# See the project README and top-level config.yaml for details.
44

5-
Family Name: Linear
5+
Family Name Suffix: Linear
66

77
Fonts:
88
Regular:

premade-configs/sans-duo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Configuration for Rec Code Sans Duo
22
# Here as an example, or to tweak & use if you wish to
3-
# See README for details.
3+
# See the project README and top-level config.yaml for details.
44

5-
Family Name: Sans Duo
5+
Family Name Suffix: Sans Duo
66

77
Fonts:
88
Regular:

premade-configs/semicasual.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Configuration for Rec Code SemiCasual
22
# Here as an example, or to tweak & use if you wish to
3-
# See README for details.
3+
# See the project README and top-level config.yaml for details.
44

5-
Family Name: Semicasual
5+
Family Name Suffix: Semicasual
66

77
Fonts:
88
Regular:

scripts/instantiate-code-fonts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def setFontNameID(font, ID, newName):
7676
oldName = "Recursive"
7777

7878
def splitFont(
79-
outputDirectory=f"RecCode{fontOptions['Family Name']}".replace(" ",""),
79+
outputDirectory=f"RecCode{fontOptions['Family Name Suffix']}".replace(" ",""),
8080
newName="Rec Code",
8181
):
8282

@@ -108,15 +108,15 @@ def splitFont(
108108
currentPsName = getFontNameID(instanceFont, 6)
109109
newPsName = (currentPsName\
110110
.replace("Sans", "")\
111-
.replace(oldName,newName.replace(" ", "") + fontOptions['Family Name'].replace(" ",""))\
111+
.replace(oldName,newName.replace(" ", "") + fontOptions['Family Name Suffix'].replace(" ",""))\
112112
.replace("LinearLight", instance.replace(" ", "")))
113113
setFontNameID(instanceFont, 6, newPsName)
114114

115115
# UPDATE NAME ID 4, full font name
116116
currentFullName = getFontNameID(instanceFont, 4)
117117
newFullName = (currentFullName\
118118
.replace("Sans", "")\
119-
.replace(oldName, newName + " " + fontOptions['Family Name'])\
119+
.replace(oldName, newName + " " + fontOptions['Family Name Suffix'])\
120120
.replace(" Linear Light", instance))\
121121
.replace(" Regular", "")
122122
setFontNameID(instanceFont, 4, newFullName)
@@ -138,7 +138,7 @@ def splitFont(
138138
setFontNameID(instanceFont, 16, newFamName)
139139

140140
newFileName = fontFileName\
141-
.replace(oldName, (newName + fontOptions['Family Name']).replace(" ", ""))\
141+
.replace(oldName, (newName + fontOptions['Family Name Suffix']).replace(" ", ""))\
142142
.replace("_VF_", "-" + instance.replace(" ", "") + "-")
143143

144144
# make dir for new fonts

0 commit comments

Comments
 (0)