All Projects → swissspidy → local-webfont

swissspidy / local-webfont

Licence: other
Downloads webfont stylesheets and adds font-display properties

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to local-webfont

Awesome Typography
✏︎ Curated list about digital typography 🔥
Stars: ✭ 947 (+2392.11%)
Mutual labels:  webfonts
Fontcdn
Search tool for Google Fonts
Stars: ✭ 126 (+231.58%)
Mutual labels:  webfonts
Urbanist
Urbanist is a low-contrast, geometric sans-serif inspired by Modernist design and typography.
Stars: ✭ 374 (+884.21%)
Mutual labels:  webfonts
Glyphhanger
Your web font utility belt. It can subset web fonts. It can find unicode-ranges for you automatically. It makes julienne fries.
Stars: ✭ 1,099 (+2792.11%)
Mutual labels:  webfonts
Nanumsquare
나눔스퀘어 웹폰트 (NanumSquare Webfont)
Stars: ✭ 86 (+126.32%)
Mutual labels:  webfonts
Typography
C# Font Reader (TrueType / OpenType / OpenFont / CFF / woff / woff2) , Glyphs Layout and Rendering
Stars: ✭ 246 (+547.37%)
Mutual labels:  webfonts
Eulyoo1945
을유문화사에서 만든 을유1945 폰트를 웹에서 손쉽게 사용할 수 있는 환경을 제공합니다.
Stars: ✭ 24 (-36.84%)
Mutual labels:  webfonts
vite-plugin-webfont-dl
⚡ Webfont Download Vite Plugin - Make your Vite site load faster
Stars: ✭ 69 (+81.58%)
Mutual labels:  webfonts
Devopicons
Heavily-optimised version of the Devicons icon-font.
Stars: ✭ 104 (+173.68%)
Mutual labels:  webfonts
Noto-Sans-CJK-JP.min
Subset of the Noto Sans CJK JP for the size down.
Stars: ✭ 23 (-39.47%)
Mutual labels:  webfonts
Secuela Variable
Secuela Sans & Condensed - Variable Font OFL
Stars: ✭ 62 (+63.16%)
Mutual labels:  webfonts
Materialdesign
✒6200+ Material Design Icons from the Community
Stars: ✭ 9,669 (+25344.74%)
Mutual labels:  webfonts
Typekit Cache
Keeps a site's Typekit in localStorage and injects it on page load, eliminating the Flash Of Invisible/Unstyled Text.
Stars: ✭ 251 (+560.53%)
Mutual labels:  webfonts
Webfontpicker
A bookmarklet that previews Google Fonts on a live website
Stars: ✭ 31 (-18.42%)
Mutual labels:  webfonts
nuxt-fontagon
Try converting svg into font easily to make icon-font automatically. The Icon-Font generator Fontagon is available on the Nuxt module.
Stars: ✭ 18 (-52.63%)
Mutual labels:  webfonts
Unicons
1000+ Pixel-perfect vector icons and Iconfont for your next project.
Stars: ✭ 911 (+2297.37%)
Mutual labels:  webfonts
Feathericon
simply generic vector icon collection - including sketch file, svg files, and font files.
Stars: ✭ 178 (+368.42%)
Mutual labels:  webfonts
nuxt-speedkit
nuxt-speedkit will help you to improve the lighthouse performance score (100/100) of your website.
Stars: ✭ 401 (+955.26%)
Mutual labels:  webfonts
glyphhanger
Your web font utility belt. It can subset web fonts. It can find unicode-ranges for you automatically. It makes julienne fries.
Stars: ✭ 422 (+1010.53%)
Mutual labels:  webfonts
Woffle
Drag and drop woff and woff2 web font generator for macOS
Stars: ✭ 24 (-36.84%)
Mutual labels:  webfonts

Local Webfont

Downloads webfont stylesheets and adds font-display properties.

Usage

npx local-webfont source target [<font-display>]

The third argument, font-display is optional and defaults to fallback. Any valid font-display value can be passed, i.e. auto, block, swap, fallback, or optional.

Example

npx local-webfont https://fonts.googleapis.com/css?family=Merriweather /tmp/merriweather.css

Result

Original webfont CSS:

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: local('Merriweather Regular'), local('Merriweather-Regular'), url(https://fonts.gstatic.com/s/merriweather/v19/u-440qyriQwlOrhSvowK_l5-ciZMdeX3rsHo.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

Downloaded CSS:

@font-face {
  font-display: fallback;
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: local('Merriweather Regular'), local('Merriweather-Regular'), url(https://fonts.gstatic.com/s/merriweather/v19/u-440qyriQwlOrhSvowK_l5-ciZMdeX3rsHo.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].