Skip to content

Local fonts are not loading properly using Experimental fonts API #14438

@coderdiaz

Description

@coderdiaz

Astro Info

Astro                    v5.14.0
Node                     v22.16.0
System                   macOS (arm64)
Package Manager          bun
Output                   static
Adapter                  @astrojs/vercel
Integrations             @astrojs/react
                         @astrojs/sitemap
                         @astrojs/mdx

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

I have updated Astro from 5.13.9 to 5.14.0 and now the fonts are not loading correctly.

Image

Maybe will be related to a missing - between generated font name.

What's the expected result?

The fonts need load correctly without 404 error.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-kfzzjata?file=src%2Flayouts%2FBaseLayout.astro

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Labels

- P4: importantViolate documented behavior or significantly impacts performance (priority)feat: assetsRelated to the Assets feature (scope)needs triageIssue needs to be triagedregression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions