antfu / antfu/static

Font rendering inconsistency between local macOS and GitHub Actions Ubuntu environment

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

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;

https://github.com/antfu-collective/sponsorkit/blob/a58e70f5cc9d4c85937b093c75630edd4fefb7c8/src/configs/defaults.ts#L36

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.