Local custom font files are serialized since version 0.5 - how to reference them?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 22.2k
- Forks
- 1.9k
- PR merge metrics
- PR metrics pending
Description
Question
Local custom font files are now serialized, which results in files like fonts/fira-code-v27-latin-300-0fc02cbc.woff2 (fira-code-v27-latin-300.woff2 is the original filename) in the output/html folder. The serialized CSS file (like fonts/fonts-3c66ea91.css) is linked correctly in the HTML files, but the fonts can't be loaded because the paths to the font files inside the CSS are not correct, they still point to the filenames without the serial. Maybe I just missed something, any hints?
Version
mdbook v0.5.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with mdBook v0.5.1 using a local custom font, then inspect the generated HTML and serialized CSS in the output/html folder. Confirm that the CSS references the serialized font filename and that the font loads successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100