Skip to content
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

Font Optimization #266

Open
3 tasks
vnphanquang opened this issue May 14, 2024 · 0 comments
Open
3 tasks

Font Optimization #266

vnphanquang opened this issue May 14, 2024 · 0 comments
Assignees
Labels
domain:frontend type:enhance ux, ui improvements type:perf performance improvements
Milestone

Comments

@vnphanquang
Copy link
Member

Look into Google Fonts for Inter and Lora, and copy the subsetted files from google font. Remember to check license. Self host fonts should be more performant in general; we have not done any testing or benchmark to verify this claim though.

  • re-optimize / re-copy subsetted fonts for Inter
  • re-optimize / re-copy subsetted fonts for Lora. Currently using a variable font, perhaps we don't need that (only using one or two font weights at the moment).
  • set fallback font matching (size-adjust, ascent-override, descent-override). These are currently not fully supported in Safari, but worth putting it in for users in other browsers.

Resources

How to avoid layout shifts caused by web fonts

Reduce web font size

How I set up Glyphhanger on macOS for optimizing and converting font files for the Web

@vnphanquang vnphanquang self-assigned this May 14, 2024
@vnphanquang vnphanquang converted this from a draft issue May 14, 2024
@vnphanquang vnphanquang added this to the Anytime milestone May 14, 2024
@vnphanquang vnphanquang added type:perf performance improvements domain:frontend type:enhance ux, ui improvements labels May 14, 2024
@vnphanquang vnphanquang moved this from Backlog to Dev:Todo in sveltevietnam.dev May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:frontend type:enhance ux, ui improvements type:perf performance improvements
Projects
Status: Dev:Todo
Development

No branches or pull requests

1 participant