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

feat: set the loadSystemFonts option of resvg-js to false #2

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
> [Github Readme Stats](https://github.com/anuraghazra/github-readme-stats): One of the best tools out there for generating awesome Github stats cards.
>
> [Resvg Js](https://github.com/yisibl/resvg-js): A high-performance SVG renderer and toolkit.
> [resvg-js](https://github.com/yisibl/resvg-js): A high-performance SVG renderer and toolkit.
>
> [Satori](https://github.com/vercel/satori): An enlightened library to convert HTML and CSS to SVG.

Expand Down
2 changes: 1 addition & 1 deletion packages/pixel-profile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
> [Github Readme Stats](https://github.com/anuraghazra/github-readme-stats): One of the best tools out there for generating awesome Github stats cards.
>
> [Resvg Js](https://github.com/yisibl/resvg-js): A high-performance SVG renderer and toolkit.
> [resvg-js](https://github.com/yisibl/resvg-js): A high-performance SVG renderer and toolkit.
>
> [Satori](https://github.com/vercel/satori): An enlightened library to convert HTML and CSS to SVG.

Expand Down
5 changes: 4 additions & 1 deletion packages/pixel-profile/src/cards/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@
fitTo: {
mode: 'width',
value: width
}
},
font: {
loadSystemFonts: false, // It will be faster to disable loading system fonts.

Check failure on line 114 in packages/pixel-profile/src/cards/stats.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 114 in packages/pixel-profile/src/cards/stats.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected trailing comma
},

Check failure on line 115 in packages/pixel-profile/src/cards/stats.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 115 in packages/pixel-profile/src/cards/stats.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected trailing comma
} as const

const pngData = new Resvg(svg, opts).render()
Expand Down
Loading