Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative path to fonts for @font-face rules #54

Open
KonradRolof opened this issue Apr 13, 2021 · 0 comments
Open

Alternative path to fonts for @font-face rules #54

KonradRolof opened this issue Apr 13, 2021 · 0 comments

Comments

@KonradRolof
Copy link

Hello,

I wanted to generate an SCSS file to include it in the rest of my SCSS. The file generation works fine but to paths to the font files are wrong. So I need an option to set the path to the font files for the @font-face URL values. What I want to have is something like that:

googleWebFonts({
  fontsDir: './dist/fonts',
  cssDir: './src/scss/fonts',
  cssFilename: '_google-fonts.scss',
  fontsUrl: '/fonts',
});```

to get inside the generated CSS:

```css
@font-face {
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 400;
	font-display: auto;
	src: url(/fonts/Roboto-italic-400.woff) format('woff');
	unicode-range: U+0-10FFFF;
}

I know this is not a bug but a feature request. I would appreciate such an option in a future update.

Many thanks and Greetings
Konrad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant