Skip to content

Incorrect output from generateFontSource()ย #709

@layershifter

Description

@layershifter

Type: Bug

Pass localAlias option to renderFont and you will get weird output:

@font-face {
  font-weight: 400;
  src: {src} /* <---- ???????? */ local('Segoe WP Light'), url('...') format('woff2');
  font-family:"Segoe UI"
}
Packages Version
fela 10.4.1

Description

Issue comes from broken template string in generateFontSource():

-return `{src} local(${localUrl}), `
+return `${src} local(${localUrl}), `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      โšก