Font rendering inconsistency between local macOS and GitHub Actions Ubuntu environment
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 91
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Hi @antfu,
Sorry if this is working as intended, but I noticed that the scheduler workflow uses ubuntu-latest:
https://github.com/antfu/static/blob/master/.github/workflows/scheduler.yml#L12
Since sponsorkit's default font stack (which you created) has -apple-system first:
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
I'm guessing you intended to display sponsors with the -apple-system font. However, I suspect the rendering results might be different from your local environment because the GitHub Actions Ubuntu environment doesn't have -apple-system and falls back to Segoe UI or Roboto.
Would it make sense to use macos-latest in the workflow to maintain consistency with your intended design?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read .github/workflows/scheduler.yml around the ubuntu-latest runner and compare it with the font stack in sponsorkit's src/configs/defaults.ts. Check how the workflow's generated output is rendered in Ubuntu versus the intended macOS appearance; done means the rendering environment or font choice is deliberately made consistent and documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, github-actions, typescript
- Domain
- ci-cd, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100