All Projects → KyleAMathews → Typefaces

KyleAMathews / Typefaces

NPM packages for Open Source typefaces

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Typefaces

typeface-minecraft
Minecraft typeface and colors
Stars: ✭ 20 (-99.23%)
Mutual labels:  font, typeface, font-family, typography
Plusjakartasans
+Jakarta Sans is a open-source fonts. Designed for Jakarta "City of collaboration" program in 2020.
Stars: ✭ 136 (-94.73%)
Mutual labels:  font, typography, typeface
Otfcc
Optimized OpenType builder and inspector.
Stars: ✭ 348 (-86.52%)
Mutual labels:  font, typography, typeface
Qiji Font
齊伋體 - typeface from Ming Dynasty woodblock printed books
Stars: ✭ 536 (-79.23%)
Mutual labels:  font, typography, typeface
Urbanist
Urbanist is a low-contrast, geometric sans-serif inspired by Modernist design and typography.
Stars: ✭ 374 (-85.51%)
Mutual labels:  font, typeface, typography
Google Type
Collaborative typography project using select passages from Aesop's Fables set to Google Fonts
Stars: ✭ 971 (-62.38%)
Mutual labels:  font, typography, typeface
Dot Matrix Typeface
A simple Dot Matrix style typeface
Stars: ✭ 105 (-95.93%)
Mutual labels:  font, typeface
Victor Mono
A free programming font with cursive italics and ligatures. Donations welcome ❤️
Stars: ✭ 1,854 (-28.17%)
Mutual labels:  font, typeface
Font Line
OpenType vertical metrics reporting and font line spacing adjustment tool
Stars: ✭ 122 (-95.27%)
Mutual labels:  font, typeface
Times New Bastard
It's Times New Roman but every seventh letter is jarringly sans serif
Stars: ✭ 130 (-94.96%)
Mutual labels:  font, typeface
Css Mono
Monospaced Typeface Created for CSS Coding
Stars: ✭ 85 (-96.71%)
Mutual labels:  font, typeface
Karmilla
An expanded version of the amazing Karla webfont, adding support for various languages (French, German, Norse, Hungarian, Latvian, Icelandic...)
Stars: ✭ 130 (-94.96%)
Mutual labels:  font, typeface
Scsscale
Typographic modular scale starter based on body's font-size built on SCSS.
Stars: ✭ 206 (-92.02%)
Mutual labels:  font, typography
Sporting Grotesque
A grotesque typeface by @LucasLeBihan
Stars: ✭ 101 (-96.09%)
Mutual labels:  font, typeface
Lab Mono
Grotesque-esque monospaced typeface
Stars: ✭ 99 (-96.16%)
Mutual labels:  font, typeface
Typefacehelper
Helper object for injecting typeface into various text views of android.
Stars: ✭ 107 (-95.85%)
Mutual labels:  font, typeface
Work Sans
A grotesque sans.
Stars: ✭ 1,319 (-48.9%)
Mutual labels:  font, typeface
Iosevka
Versatile typeface for code, from code.
Stars: ✭ 13,137 (+408.99%)
Mutual labels:  font, typeface
Typesetter
Android tool to help display changes to text positioning.
Stars: ✭ 149 (-94.23%)
Mutual labels:  font, typography
Inter
The Inter font family
Stars: ✭ 13,303 (+415.42%)
Mutual labels:  font, typeface

The Typefaces project is now deprecated.

@DecliningLotus created FontSource which provides the same functionality as Typefaces but with automated releases & richer support for importing specific weights, styles, or language subsets.

To start using Fontsource, replace in your package.json any instances of "typeface-" with "fontsource-".

Then change imports from e.g. "import 'typeface-roboto'" to "import 'fontsource-roboto/latin.css'".

Typeface packages will continue working indefinitely so no immediate changes are necessary.

Typefaces

NPM packages for Open Source typefaces — making it easier to self-host webfonts.

https://www.bricolage.io/typefaces-easiest-way-to-self-host-fonts/

Why

  • Self-hosting is significantly faster. Loading a typeface from Google Fonts or other hosted font service adds an extra (blocking) network request. In my testing, I’ve found replacing Google Fonts with a self-hosted font can improve a site’s speedindex by ~300 miliseconds on desktop and 1+ seconds on 3g. This is a big deal.
  • Your fonts load offline. It’s annoying to start working on a web project on the train or airplane and see your interface screwed up because you can’t access Google fonts. I remember once being in this situation and doing everything possible to avoid reloading a project as I knew I’d lose the fonts and be forced to stop working.
  • Go beyond Google Fonts. Some of my favorite typefaces aren’t on Google Fonts like Clear Sans, Cooper Hewitt, and Aleo.
  • All web(site|app) dependencies should be managed through NPM whenever possible. Tis the modern way.

What

Each typeface package ships with all the necessary font files and css to self-host an open source typeface.

All Google Fonts have been added as well as a small but growing list of other open source fonts. Open an issue if you want a font added!

How

Couldn’t be easier. This is how you’d add Open Sans.

npm install --save typeface-open-sans

Then in your app or site’s entry file.

require("typeface-open-sans")

And that’s it! You’re now self-hosting Open Sans!

It should take < 5 minutes to swap out Google Fonts.

Typeface assumes you’re using webpack with loaders setup for loading css and font files (you can use Typeface with other setups but webpack makes things really really simple). Assuming your webpack configuration is setup correctly you then just need to require the typeface in the entry file for your project.

Many tools built with webpack such as Gatsby and Create React App are already setup to work with Typefaces. Gatsby by default also embeds your CSS in your <head> for even faster loading.

If you’re not using webpack or equivalent tool that allows you to require css, then you’ll need to manually integrate the index.css and font files from the package into your build system.

Alternatives without Webpack

Adding other fonts

The easiest way to find out if your favorite typeface is supported is by searching on NPM or in the packages directory in this repo.

I’d love to see every open source font on NPM! Open an issue if a favorite typeface of yours is missing. I’ve programmatically published all fonts from Google Fonts and am planning on doing the same with fonts hosted on FontSquirrel through their API.

Other ideas to explore

  • Add subsetted version of every font.
  • Initially I’ve just added support for the Latin version of fonts. Would love to hear ideas for how to support other languages. Perhaps additional css files e.g. require('open-sans/greek.css')?
  • Ship fallback css helpers — figuring out your fallback css isn’t particularly easy. Perhaps there’s a way to automate this. E.g. if you’re using typeface X at fontsize Y with fallback font Z, here’s a function to generate the fallback css.
  • Explore futher optimizations for loading fonts. https://www.zachleat.com/web/comprehensive-webfonts/ has a long list. Most require painful per-project scripting. What if the best strategies could be automated?
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].