### Repository Initialization Script (`scripts/first-run.py`) Source: https://context7.com/googlefonts/silkscreen/llms.txt This Python script runs automatically after cloning to update placeholder URLs in documentation files and pin Python dependencies for reproducible builds. ```bash # Triggered automatically by make; can also be run directly: python3 scripts/first-run.py # What it does: # 1. Detects the GitHub owner/repo from `git remote get-url origin` ``` -------------------------------- ### Silkscreen Build Configuration (`sources/config.yaml`) Source: https://context7.com/googlefonts/silkscreen/llms.txt YAML file defining the master source file and font family name for the build process. `buildVariable: false` indicates static font compilation. ```yaml # sources/config.yaml sources: - Silkscreen.glyphs # Master source file (Glyphs.app format) familyName: "Silkscreen" buildVariable: false # No variable font axes; static fonts only ``` -------------------------------- ### Makefile Targets for Silkscreen Build System Source: https://context7.com/googlefonts/silkscreen/llms.txt Common Makefile commands for managing the Silkscreen font build process, including setting up dependencies, building fonts, running tests, and cleaning artifacts. ```bash # 1. Set up the Python virtual environment and pin dependencies make venv # 2. Build font files — outputs OTF/TTF/WOFF2 into fonts/ make build # 3. Run FontBakery quality checks (generates HTML report + badges) make test # Output: out/fontbakery/fontbakery-report.html # out/badges/overall.json # 4. Generate HTML proof pages (glyph specimen, sample text, waterfall) make proof # Output: out/proof/glyphs.html # out/proof/text.html # out/proof/waterfall.html # 5. Rebuild documentation PNG images from DrawBot scripts make images # 6. Remove the virtual environment and compiled artifacts make clean # 7. Update the Unified Font Repository template scaffold make update-ufr # 8. Upgrade a single pip dependency and re-pin requirements.txt make update dependency=fonttools ``` -------------------------------- ### Manual CI Build Trigger Source: https://context7.com/googlefonts/silkscreen/llms.txt Locally trigger an equivalent of the CI build process using make commands. Ensure the virtual environment is activated. ```bash make venv && make build && make test && make proof ``` -------------------------------- ### Simulate Font Version Bump Source: https://context7.com/googlefonts/silkscreen/llms.txt Manually simulate the font version bumping process, typically done by CI on tagged releases. Requires activating the virtual environment. ```bash . venv/bin/activate bumpfontversion sources/Silkscreen.glyphs --new-version 1.200 ``` -------------------------------- ### Self-Host Silkscreen with WOFF2 Web Fonts Source: https://context7.com/googlefonts/silkscreen/llms.txt Use these CSS `@font-face` rules to self-host Silkscreen fonts using the provided WOFF2 files. Ensure the `src` paths correctly point to your font files. ```css @font-face { font-family: 'Silkscreen'; src: url('fonts/webfonts/Silkscreen-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: 'Silkscreen'; src: url('fonts/webfonts/Silkscreen-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; } body { font-family: 'Silkscreen', monospace; font-weight: 400; } strong, b { font-weight: 700; } ``` -------------------------------- ### Load Silkscreen via Google Fonts CSS Source: https://context7.com/googlefonts/silkscreen/llms.txt Include this HTML in your `
` to load Silkscreen fonts from Google Fonts. CSS rules are provided for applying regular (400) and bold (700) weights. ```htmlScore: 9999