-
Notifications
You must be signed in to change notification settings - Fork 106
Mona Sans Display styles and Mona Sans Mono #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0dd1d50
New exports, added folders
kylewaynebenson 0359ee8
Update .github/workflows/release.yml
kylewaynebenson 12ae30f
Update .github/workflows/release.yml
kylewaynebenson a2d5eac
Update .github/workflows/release.yml
kylewaynebenson 22d4188
Removing the build files
kylewaynebenson 2178d34
Delete MonaSans[ital,wdth,wght].woff2
kylewaynebenson a4826d7
Remove Python setup and dependencies from release.yml
kylewaynebenson 4219b93
Update release.yml
kylewaynebenson b2e20db
Initial commit of sources for adding OPSZ and mono styles to the desi…
kylewaynebenson b6eafe5
Fixing intermediate layers, updating ligatures to component build
kylewaynebenson 097a077
Adding VF exports for mono
kylewaynebenson 2756e4f
Update .github/workflows/release.yml
kylewaynebenson b1b972d
Adjusting opsz range up to 8
kylewaynebenson de970b1
Switching OPSZ value to 20 on the standard styles.
kylewaynebenson 6ec85b6
Removing autosaved glyphs file
kylewaynebenson 9e44cee
Dialing in optical size changes
kylewaynebenson e1130eb
Readme updates
kylewaynebenson c4b79dc
New builds of all fonts
kylewaynebenson 9ee84ae
Redesigning circle figures and dnom, etc, to be mono
kylewaynebenson 4bae99c
Switching source name to Display so we can keep google fonts build un…
kylewaynebenson c0382cd
Restoring last MonaSans.glyphs so the googlefonts build still works
kylewaynebenson a89ce47
Update .github/workflows/release.yml
kylewaynebenson 49a9583
Updated mono to remove extra axis
kylewaynebenson 2229977
Update README.md
kylewaynebenson 064025d
Update README.md
kylewaynebenson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,137 @@ | ||
| name: Create Release | ||
| # Release workflow for Mona Sans | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*.*' # Matches tags like v1.300, etc. | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: 'Version for testing (e.g., "test-1.4" or "dev-2024-01-01")' | ||
| required: true | ||
| default: 'test-1.4' | ||
| type: string | ||
|
|
||
| permissions: | ||
| contents: write # Required to create releases and upload assets | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Full history for proper release notes | ||
|
|
||
| - name: Extract version from tag or input | ||
| id: version | ||
| run: | | ||
| if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | ||
| VERSION="${{ github.event.inputs.version }}" | ||
| if [[ "$VERSION" == v* ]]; then | ||
| TAG="$VERSION" | ||
| else | ||
| TAG="v$VERSION" | ||
| fi | ||
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | ||
| echo "tag=${TAG}" >> $GITHUB_OUTPUT | ||
| else | ||
| VERSION=${GITHUB_REF#refs/tags/v} | ||
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | ||
| echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: Build fonts | ||
| run: | | ||
| cd sources | ||
| bash build.sh | ||
| cd .. | ||
| env: | ||
| FB_CONTINUE_ON_ERROR: true | ||
|
|
||
| - name: Prepare release artifacts | ||
| run: | | ||
| mkdir -p release-artifacts | ||
|
|
||
| # Create static fonts package (OTF + TTF) | ||
| zip -r "release-artifacts/mona-sans-static-v${{ steps.version.outputs.version }}.zip" \ | ||
| fonts/static/ OFL.txt README.md | ||
|
|
||
| # Create variable fonts package | ||
| zip -r "release-artifacts/mona-sans-variable-v${{ steps.version.outputs.version }}.zip" \ | ||
| fonts/variable/ OFL.txt README.md | ||
|
|
||
| # Create webfonts package | ||
| if [ -d "fonts/webfonts" ]; then | ||
| zip -r "release-artifacts/mona-sans-webfonts-v${{ steps.version.outputs.version }}.zip" \ | ||
| fonts/webfonts/ OFL.txt README.md | ||
| fi | ||
|
|
||
| # Create complete package with all formats | ||
| zip -r "release-artifacts/mona-sans-complete-v${{ steps.version.outputs.version }}.zip" \ | ||
| fonts/ -x "fonts/googlefonts/*" -x "fonts/googlefonts/**" \ | ||
| OFL.txt README.md | ||
|
|
||
| - name: Create release notes | ||
| id: release_notes | ||
| run: | | ||
| cat > release_notes.md << 'EOF' | ||
| # Mona Sans ${{ steps.version.outputs.tag }} | ||
|
|
||
| A versatile typeface, designed by GitHub together with Degarism and inspired by industrial-era grotesques. Mona Sans works well across product, web, and print. | ||
|
|
||
| ## Font Packages | ||
|
|
||
| - **Static Fonts** - Individual OTF and TTF files for each weight, width, and style | ||
| - **Variable Fonts** - Modern variable font files with adjustable weight and width | ||
| - **Web Fonts** - WOFF/WOFF2 files optimized for web use | ||
| - **Complete Package** - All font formats in one download | ||
|
|
||
| See the [README](https://github.com/github/mona-sans#readme) for detailed installation instructions. | ||
|
|
||
| ## Font Specifications | ||
|
|
||
| - **Weight Range**: 200-900 (ExtraLight to Black) | ||
| - **Width Range**: 75-125 (Condensed to Expanded) | ||
| - **Styles**: Roman and Italic | ||
| - **Format Support**: OTF, TTF, Variable TTF, WOFF, WOFF2 | ||
| EOF | ||
|
|
||
| - name: Create draft release with assets | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: ${{ steps.version.outputs.tag }} | ||
| name: Mona Sans ${{ steps.version.outputs.tag }} | ||
| body_path: release_notes.md | ||
| draft: true | ||
| prerelease: false | ||
| files: | | ||
| release-artifacts/mona-sans-static-v${{ steps.version.outputs.version }}.zip | ||
| release-artifacts/mona-sans-variable-v${{ steps.version.outputs.version }}.zip | ||
| release-artifacts/mona-sans-webfonts-v${{ steps.version.outputs.version }}.zip | ||
| release-artifacts/mona-sans-complete-v${{ steps.version.outputs.version }}.zip | ||
|
|
||
| - name: Upload build artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: mona-sans-fonts-v${{ steps.version.outputs.version }} | ||
| path: fonts/ | ||
|
|
||
| - name: Summary | ||
| run: | | ||
| echo "## Release Summary" >> $GITHUB_STEP_SUMMARY | ||
| echo "Created draft release: **Mona Sans ${{ steps.version.outputs.tag }}**" >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
| echo "### Uploaded Assets:" >> $GITHUB_STEP_SUMMARY | ||
| find release-artifacts -maxdepth 1 -name '*.zip' -print0 | while IFS= read -r -d '' file; do | ||
| filename=$(basename "$file") | ||
| size=$(stat -c %s "$file") | ||
| # Convert size in bytes to human-readable format | ||
| hr_size=$(numfmt --to=iec-i --suffix=B "$size") | ||
| echo "- $filename ($hr_size)" >> $GITHUB_STEP_SUMMARY | ||
| done | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
| echo "🔗 **[View Draft Release](https://github.com/${{ github.repository }}/releases/tag/${{ steps.version.outputs.tag }})**" >> $GITHUB_STEP_SUMMARY | ||
This file contains hidden or 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,2 +1,7 @@ | ||
| .DS_Store | ||
| *).glyphs | ||
| *).glyphs | ||
|
|
||
| # Ignore ninja and ufo build files | ||
| sources/instance_ufos | ||
| sources/.ninja_log | ||
| sources/build.ninja |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.