Skip to content

Local custom font files are serialized since version 0.5 - how to reference them? #2958

@spktkpkt

Description

@spktkpkt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-questionCategory: A question on how to do something

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions