From eef096bc49d237f435bcf53746fa075c8fef36c6 Mon Sep 17 00:00:00 2001 From: Camron Flanders Date: Fri, 6 Apr 2018 16:38:41 -0500 Subject: [PATCH] Add Fantasque Sans Mono font (#313) * Add Fantasque Sans Mono as font-face * Add Fantasque Sans mono to constants * Set to regular weight, not bold --- components/style/Font.js | 10 ++++++++++ lib/constants.js | 1 + 2 files changed, 11 insertions(+) diff --git a/components/style/Font.js b/components/style/Font.js index 0bf5ed9..71c2bf3 100644 --- a/components/style/Font.js +++ b/components/style/Font.js @@ -9,6 +9,16 @@ export default () => ( font-style: normal; } + @font-face { + font-family: 'Fantasque Sans Mono'; + src: url('//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff') + format('woff2'), + url('//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff') + format('woff'); + font-weight: 400; + font-style: normal; + } + @font-face { font-family: 'Hack'; src: url('//cdn.jsdelivr.net/font-hack/2.020/fonts/woff2/hack-regular-webfont.woff2?v=2.020') diff --git a/lib/constants.js b/lib/constants.js index 654e1e2..9882500 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -3,6 +3,7 @@ import toHash from 'tohash' export const FONTS = [ { id: 'Anonymous Pro', name: 'Anonymous Pro' }, { id: 'Droid Sans Mono', name: 'Droid Sans Mono' }, + { id: 'Fantasque Sans Mono', name: 'Fantasque Sans Mono' }, { id: 'Fira Code', name: 'Fira Code' }, { id: 'Hack', name: 'Hack' }, { id: 'Iosevka', name: 'Iosevka' },