Skip to content

font subsets seam not be considered when downloading fonts at build time #660

@voxspox

Description

@voxspox

Calling nuxt build I can see this output:

[@nuxt/fonts] ℹ Downloading fonts..." at some time
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-greek-400-italic.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-greek-400-italic.woff
...
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-cyrillic-ext-400-italic.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-greek-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-greek-400-normal.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-latin-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-latin-400-normal.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-cyrillic-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-cyrillic-400-normal.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-greek-ext-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-greek-ext-400-normal.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-latin-ext-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-latin-ext-400-normal.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-devanagari-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-devanagari-400-normal.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-vietnamese-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-vietnamese-400-normal.woff
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-cyrillic-ext-400-normal.woff2
[@nuxt/fonts]   ├─ https://fonts.bunny.net/noto-sans/files/noto-sans-cyrillic-ext-400-normal.woff

I wonder why all subsets are download despite of I have limited the subsets to latin like this (nuxt.config.ts):

export default defineNuxtConfig({
  ...
  fonts: {
    families: [{ name: "Noto Sans", provider: "bunny", subsets: ["latin", "latin-ext"] }],
  },

using:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions