Skip to content

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

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,
      },
    ],
  },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions