Skip to content

"dist\_astro\fonts" folder with font files is created in dev when using experimental fonts API and "q+enter" to stop dev server #15091

@Smart-Ace-Designs

Description

@Smart-Ace-Designs

Astro Info

Astro                    v5.16.6
Vite                     v6.4.1
Node                     v24.12.0
System                   Windows (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

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

No response

Describe the Bug

When using the experimental Fonts API, in dev, using the "q+enter" combo to stop the dev server shows the following message (depending on the number of font weights in use; 2 in this example):

[assets] Copying fonts (4 files)...

Additionally, a "dist_astro\fonts" directory is created in the project folder which is populated by a woff and woff2 file for each font weight (2 font weights = 4 files as shown above).

Development mode should not be creating a "dist" folder, as I understand it. Using "ctrl+c" to stop the dev server does NOT show that message or create the files. Only "q+enter" does.

More info

Thanks.

What's the expected result?

Using "q+enter" to stop the dev server should:
Not display a message.
Not create a "dist_astro\fonts" folder or copy font files to it.

Reproducible Example Notes:

  • It appears Stackblitz cannot download fonts from Google Fonts. So it is not a 100% completely accurate test. If there is a way to configure Stackblitz to download fonts from Google Fonts, please let me know.
  • The "dist" folder is created when typing "q+enter" in the Stackblitz terminal, but it contains no font files since no font files were able to be downloaded from Google Fonts.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ezwwqufb

Participation

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

Metadata

Metadata

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)feat: assetsRelated to the Assets feature (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions