1.0.0 • Published 6 months ago
apfel-grotezk-pkg v1.0.0
Apfel Grotezk Font Package
A type-safe package for using Apfel Grotezk fonts in your projects.
Installation
npm install apfel-grotezk-pkg
Usage
import { getFontByWeightAndVariant } from 'apfel-grotezk-pkg';
// Get a specific font file path
const fontPath = getFontByWeightAndVariant('Regular', 'woff');
// Use in CSS
const styles = {
'@font-face': {
fontFamily: 'Apfel Grotezk',
src: `url(${fontPath}) format('woff')`,
fontWeight: 'normal',
fontStyle: 'normal'
}
};
// Available weights: 'Regular', 'Brukt', 'Fett', 'Mittel', 'Satt'
// Available variants: 'woff', 'woff2'
Font Weights
- Regular
- Brukt
- Fett
- Mittel
- Satt
Each weight is available in both WOFF and WOFF2 formats.
License
Please ensure you have the appropriate license to use these fonts in your project.
1.0.0
6 months ago