Skip to content

🙏 Question: how to add my fonts in different weights in nuxt.config.ts ? #579

Open
@gyhyfj

Description

@gyhyfj

My config file looks like this, but only regular font was added

  fonts: {
    families: [
      {
        name: 'My Font',
        src: 'https://x-Regular.ttf',
        weight: 400,
      },
      {
        name: 'My Font',
        src: 'https://x-Black.ttf',
        weight: 900,
      },
    ],
  },

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