docs: document favicon generation; chore: add generate-favicon script and yarn task
This commit is contained in:
14
README.md
14
README.md
@@ -73,3 +73,17 @@ bun run preview
|
||||
```
|
||||
|
||||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
||||
|
||||
## Favicons
|
||||
|
||||
The SVG favicon is the source of truth: `public/favicon.svg`.
|
||||
|
||||
Generate a multi-size `favicon.ico` from the SVG using rsvg-convert + ImageMagick:
|
||||
|
||||
```bash
|
||||
yarn favicons
|
||||
```
|
||||
|
||||
Notes:
|
||||
- ImageMagick on macOS can have issues loading arbitrary TTFs by file path (RenderFreetype errors). To avoid font lookup issues entirely, this project rasterizes the SVG directly using `rsvg-convert` and then packages the sizes into a single ICO using ImageMagick.
|
||||
- If browsers fail to load webfonts in an external SVG, consider converting the “b” glyph to paths inside the SVG to guarantee pixel-identical rendering across formats.
|
||||
|
Reference in New Issue
Block a user