Fix icons by using full Hack font

This commit is contained in:
Paweł Romanowski 2019-02-05 22:24:41 +00:00
parent 582749d5e7
commit 20ca6e98a6
3 changed files with 7 additions and 7 deletions

View file

@ -282,9 +282,12 @@ default_language = "en"
### Hack font subset
By default, the theme uses a subset of the Hack font.
By default, the theme uses a mixed subset of the Hack font.
Normal weight font uses full character set
(for Unicode icons and special symbols), but all others
(bold, italic etc) use a limited subset.
This results in much smaller transfer sizes, but
This results in much smaller transfer sizes, but the subset
might not contain all the Unicode characters you need.
You can enable full unicode support in `config.toml`:

View file

@ -6,7 +6,8 @@
* -------------------------- */
@font-face {
font-family: 'Hack';
src: url('fonts/hack-regular-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular-subset.woff?sha=3114f1256') format('woff');
/* Use full version (not a subset) for unicode icon support */
src: url('fonts/hack-regular.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular.woff?sha=3114f1256') format('woff');
font-weight: 400;
font-style: normal;
}

View file

@ -74,8 +74,4 @@
white-space: nowrap;
overflow: hidden;
}
&__icon {
font-family: sans-serif;
}
}