Skip to content

Instantly share code, notes, and snippets.

@nyxkrage
Last active January 26, 2023 21:10
Show Gist options
  • Save nyxkrage/4b93ee0c8ce9c0cc76c0449d496fafae to your computer and use it in GitHub Desktop.
Save nyxkrage/4b93ee0c8ce9c0cc76c0449d496fafae to your computer and use it in GitHub Desktop.
# Configure your own custom Rec Mono for Code font
# git clone https://github.com/arrowtype/recursive-code-config.git
# cd recursive-code-config
# python3 -m venv venv
# source venv/bin/activate
# pip install -r requirements.txt
# curl https://gist.github.com/nyxkrage/4b93ee0c8ce9c0cc76c0449d496fafae/raw/fa272d0543859e9303a1ccebc4ad770d167c6a26/RecMonoNyx -o config.yaml
# python3 scripts/instantiate-code-fonts.py
#
# /$$$$$$ /$$
# /$$ / / / $$$
# /$$$$$$$ /$$$$$$$ /$$ $$$$$ /$$$$$$$$$ /$$$$$ /$$$$$$$ /
# /$$_____/ /$$____ $$ | $$$___ $$ |___ $$__/ |___ $$ /$$ $$
# | $$ | $$ | $$ | $$ | $$ | $$ | $$ \ $$$$$$$
# | $$ | $$ | $$ | $$ | $$ | $$ | $$ \ $$ /
# \ $$$$$$$ \ $$$$$$$ | $$ | $$ /$$$$$$$$$ /$$$$$$$$$ / $$$$$$$$
# \_______/ \_______/ |__/ |__/ |_________/ |_________/ | $$ $$
# \ $$$$$$$$
# \_______/
#
# -----------------------------------------------------------------------------
# Family Name
# The name you want after "Rec Mono" in your custom fonts.
# Example: "Custom" will yield the family "Rec Mono Custom".
# Keep under 13 characters in length to avoid potential OS bugs.
Family Name: Nyx
# -----------------------------------------------------------------------------
# Font Styles
# The variable axis values for the Regular, Italic, Bold, & Bold Italic fonts.
# See https://recursive.design for more information on these.
# MONO: 0 for Sans, 1 for Mono (or anything in-between)
# CASL: 0 for Linear, 1 for Casual (or anything in-between)
# wght: 300–1000 (realistically, about 400 for Regular & Italic and about 700 for Bold & Bold Italic)
# slnt: 0 to -15 (negative numbers are more slanted, and approximately equal to degrees of slope)
# CRSV: 0 (0 for Roman, 1 for Cursive)
Fonts:
Regular:
MONO: 1
CASL: 1
wght: 500
slnt: 0
CRSV: 0
Italic:
MONO: 1
CASL: 1
wght: 500
slnt: -12
CRSV: 0
Bold:
MONO: 1
CASL: 1
wght: 800
slnt: 0
CRSV: 0
Bold Italic:
MONO: 1
CASL: 1
wght: 800
slnt: -12
CRSV: 0
# -----------------------------------------------------------------------------
# Font Features
# Freeze in code ligatures? True or False
Code Ligatures: False
# Include font features to freeze in stylistic options. Copy them below to use.
# See README for details.
# These options only have an affect at CRSV<=0.5 (Roman/normal styles)
# ss01 # Single-story a
# ss02 # Single-story g
# ss03 # Simplified f
# ss04 # Simplified i (not currently working, see issue #4)
# ss05 # Simplified l
# ss06 # Simplified r
# These options affect both Roman & Cursive styles
# ss07 # Simplified italic diagonals (kwxyz)
# ss08 # No-serif L and Z
# ss09 # Simplified 6 and 9
# ss10 # Dotted 0
# ss11 # Simplified 1
# ss12 # Simplified @
# NOTE:
# Only Sylistic Set features are recommended below.
# Some features (especially "case") will disrupt code ligatures.
# See Issue #20 for more details.
# (Keep the hyphen before each list item)
Features:
- ss01 # Single-story a
- ss02 # Single-story g
- ss03 # Simplified f
- ss04 # Simplified i
- ss05 # Simplified l
- ss06 # Simplified r
#- ss07 # Simplified italic diagonals (kwxyz)
- ss08 # Serifless L and Z
#- ss09 # Simplified 6 and 9
- ss10 # Dotted 0
- ss11 # Simplified 1
- ss12 # Simplified @
# That’s it! See README for next steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment