mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-03-22 19:38:55 +01:00
Add Noto Sans and Mono as default font for full Unicode support
This commit is contained in:
parent
80fdea0d4c
commit
6a59837a0b
30 changed files with 119 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ node_modules/
|
|||
|
||||
public/*.js
|
||||
public/*.map
|
||||
public/assets/
|
||||
|
|
BIN
src/assets/fonts/Noto/NotoMono-Regular.eot
Normal file
BIN
src/assets/fonts/Noto/NotoMono-Regular.eot
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoMono-Regular.otf
Normal file
BIN
src/assets/fonts/Noto/NotoMono-Regular.otf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoMono-Regular.ttf
Normal file
BIN
src/assets/fonts/Noto/NotoMono-Regular.ttf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoMono-Regular.woff
Normal file
BIN
src/assets/fonts/Noto/NotoMono-Regular.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoMono-Regular.woff2
Normal file
BIN
src/assets/fonts/Noto/NotoMono-Regular.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Bold.eot
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Bold.eot
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Bold.otf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Bold.otf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Bold.ttf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Bold.ttf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Bold.woff
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Bold.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Bold.woff2
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Bold.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.eot
Normal file
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.eot
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.otf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.otf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.ttf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.woff
Normal file
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.woff2
Normal file
BIN
src/assets/fonts/Noto/NotoSans-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Italic.eot
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Italic.eot
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Italic.otf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Italic.otf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Italic.ttf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Italic.ttf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Italic.woff
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Italic.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Italic.woff2
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Italic.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Regular.eot
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Regular.eot
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Regular.otf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Regular.otf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Regular.ttf
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Regular.ttf
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Regular.woff
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Regular.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Noto/NotoSans-Regular.woff2
Normal file
BIN
src/assets/fonts/Noto/NotoSans-Regular.woff2
Normal file
Binary file not shown.
59
src/assets/fonts/fonts.scss
Normal file
59
src/assets/fonts/fonts.scss
Normal file
|
@ -0,0 +1,59 @@
|
|||
@font-face {
|
||||
font-family: 'Noto Sans';
|
||||
src: url('./Noto/NotoSans-Regular.eot');
|
||||
src: url('./Noto/NotoSans-Regular.eot?#iefix') format('embedded-opentype'),
|
||||
url('./Noto/NotoSans-Regular.woff2') format('woff2'),
|
||||
url('./Noto/NotoSans-Regular.woff') format('woff'),
|
||||
url('./Noto/NotoSans-Regular.ttf') format('truetype'),
|
||||
url('./Noto/NotoSans-Regular.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Noto Sans';
|
||||
src: url('./Noto/NotoSans-Bold.eot');
|
||||
src: url('./Noto/NotoSans-Bold.eot?#iefix') format('embedded-opentype'),
|
||||
url('./Noto/NotoSans-Bold.woff2') format('woff2'),
|
||||
url('./Noto/NotoSans-Bold.woff') format('woff'),
|
||||
url('./Noto/NotoSans-Bold.ttf') format('truetype'),
|
||||
url('./Noto/NotoSans-Bold.otf') format('opentype');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Noto Sans';
|
||||
src: url('./Noto/NotoSans-BoldItalic.eot');
|
||||
src: url('./Noto/NotoSans-BoldItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('./Noto/NotoSans-BoldItalic.woff2') format('woff2'),
|
||||
url('./Noto/NotoSans-BoldItalic.woff') format('woff'),
|
||||
url('./Noto/NotoSans-BoldItalic.ttf') format('truetype'),
|
||||
url('./Noto/NotoSans-BoldItalic.otf') format('opentype');
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Noto Sans';
|
||||
src: url('./Noto/NotoSans-Italic.eot');
|
||||
src: url('./Noto/NotoSans-Italic.eot?#iefix') format('embedded-opentype'),
|
||||
url('./Noto/NotoSans-Italic.woff2') format('woff2'),
|
||||
url('./Noto/NotoSans-Italic.woff') format('woff'),
|
||||
url('./Noto/NotoSans-Italic.ttf') format('truetype'),
|
||||
url('./Noto/NotoSans-Italic.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Noto Mono';
|
||||
src: url('./Noto/NotoMono-Regular.eot');
|
||||
src: url('./Noto/NotoMono-Regular.eot?#iefix') format('embedded-opentype'),
|
||||
url('./Noto/NotoMono-Regular.woff2') format('woff2'),
|
||||
url('./Noto/NotoMono-Regular.woff') format('woff'),
|
||||
url('./Noto/NotoMono-Regular.ttf') format('truetype'),
|
||||
url('./Noto/NotoMono-Regular.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
import './assets/fonts/fonts.scss';
|
||||
import './sass/main.scss';
|
||||
|
||||
import Inferno from 'inferno';
|
||||
|
|
|
@ -26,8 +26,8 @@ $purple: hsl(271, 100%, 71%);
|
|||
$red: hsl(348, 100%, 61%);
|
||||
|
||||
// Typography
|
||||
$family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
||||
$family-monospace: monospace;
|
||||
$family-sans-serif: "Noto Sans", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
||||
$family-monospace: "Noto Mono", monospace;
|
||||
|
||||
$size-1: 3rem;
|
||||
$size-2: 2.5rem;
|
||||
|
|
|
@ -53,6 +53,62 @@ const webpackConfig = {
|
|||
}
|
||||
]
|
||||
}
|
||||
, {
|
||||
test: (/\.woff$/)
|
||||
, exclude: (/node_modules/)
|
||||
, use: [
|
||||
{
|
||||
loader: 'url-loader'
|
||||
, options: {
|
||||
limit: 65000
|
||||
, mimetype: 'application/font-woff'
|
||||
, name: './assets/fonts/[name].[ext]'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
, {
|
||||
test: (/\.woff2$/)
|
||||
, exclude: (/node_modules/)
|
||||
, use: [
|
||||
{
|
||||
loader: 'url-loader'
|
||||
, options: {
|
||||
limit: 65000
|
||||
, mimetype: 'application/font-woff2'
|
||||
, name: './assets/fonts/[name].[ext]'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
, {
|
||||
test: (/\.[ot]tf$/)
|
||||
, exclude: (/node_modules/)
|
||||
, use: [
|
||||
{
|
||||
loader: 'url-loader'
|
||||
, options: {
|
||||
limit: 65000
|
||||
, mimetype: 'application/octet-stream'
|
||||
, name: './assets/fonts/[name].[ext]'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
, {
|
||||
test: (/\.eot$/)
|
||||
, exclude: (/node_modules/)
|
||||
, use: [
|
||||
{
|
||||
loader: 'url-loader'
|
||||
, options: {
|
||||
limit: 65000
|
||||
, mimetype: 'application/vnd.ms-fontobject'
|
||||
, name: './assets/fonts/[name].[ext]'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
, resolve: {
|
||||
|
|
Loading…
Add table
Reference in a new issue