8000 refactor!: migrate to `unifont` by danielroe Β· Pull Request #315 Β· nuxt/fonts Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor!: migrate to unifont #315

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 6 commits into from
Oct 7, 2024
Merged

refactor!: migrate to unifont #315

merged 6 commits into from
Oct 7, 2024

Conversation

danielroe
Copy link
Member
@danielroe danielroe commented Oct 6, 2024

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

this extracts font providers to https://github.com/unjs/unifont where they can be tested/improved separately from nuxt/fonts itself.

It's already flagged up a few issues which have been resolved in unifont.

We have backwards compatibility for now with previous custom font provider format via an internal toUnifontProvider but this will be eventually removed before v1 release of @nuxt/fonts.

🚧 TODO:

  • update documentation

@danielroe danielroe added the enhancement New feature or request label Oct 6, 2024
@danielroe dan 8000 ielroe self-assigned this Oct 6, 2024
Copy link
cloudflare-workers-and-pages bot commented Oct 6, 2024

Deploying fonts with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: 0bd1d87
Status:Β βœ…Β  Deploy successful!
Preview URL: https://d8a8db9f.fonts-dsw.pages.dev
Branch Preview URL: https://feat-unifont.fonts-dsw.pages.dev

View logs

@codecov-commenter
Copy link
codecov-commenter commented Oct 6, 2024

Codecov Report

Attention: Patch coverage is 84.02778% with 23 lines in your changes missing coverage. Please review.

Project coverage is 32.33%. Comparing base (d81ebd4) to head (0bd1d87).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/providers/local.ts 80.72% 13 Missing and 3 partials ⚠️
src/module.ts 89.47% 4 Missing ⚠️
client/app.vue 0.00% 2 Missing ⚠️
src/css/render.ts 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #315      +/-   ##
==========================================
- Coverage   42.20%   32.33%   -9.88%     
==========================================
  Files          58       52       -6     
  Lines        3561     2991     -570     
  Branches      450      305     -145     
==========================================
- Hits         1503      967     -536     
+ Misses       2020     1985      -35     
- Partials       38       39       +1     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

< 8000 /svg>

@danielroe danielroe marked this pull request as ready for review October 6, 2024 17:50
@danielroe danielroe changed the title refactor: migrate to unifont refactor!: migrate to unifont Oct 7, 2024
@danielroe danielroe merged commit 61ce3b8 into main Oct 7, 2024
2 checks passed
@danielroe danielroe deleted the feat/unifont branch October 7, 2024 04:55
@github-actions github-actions bot mentioned this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0