Add Crimson Text font
This commit is contained in:
parent
83cdde4354
commit
e7dc0be831
30
CREDITS.md
30
CREDITS.md
@ -228,16 +228,16 @@ The following list credits all third-party resources used in the Fictioneer them
|
|||||||
Source: https://fonts.google.com/specimen/Cormorant+Garamond
|
Source: https://fonts.google.com/specimen/Cormorant+Garamond
|
||||||
|
|
||||||
* **Lato**<br>
|
* **Lato**<br>
|
||||||
Copyright (c) 2010-2011: Lato-Hairline.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-Hairline.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-HairlineItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-HairlineItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-Light.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-Light.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-LightItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-LightItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-Regular.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-Regular.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-Italic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-Italic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-Bold.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-Bold.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-BoldItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-BoldItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-Black.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-Black.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
Copyright (c) 2010-2011: Lato-BlackItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
Copyright 2010-2011: Lato-BlackItalic.ttf by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato".<br>
|
||||||
License: [SIL OFL 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)<br>
|
License: [SIL OFL 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)<br>
|
||||||
Source: https://fonts.google.com/specimen/Lato
|
Source: https://fonts.google.com/specimen/Lato
|
||||||
|
|
||||||
@ -253,6 +253,16 @@ The following list credits all third-party resources used in the Fictioneer them
|
|||||||
License: [SIL OFL 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)<br>
|
License: [SIL OFL 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)<br>
|
||||||
Source: https://fonts.google.com/specimen/Roboto+Serif
|
Source: https://fonts.google.com/specimen/Roboto+Serif
|
||||||
|
|
||||||
|
* **Crimson Text**<br>
|
||||||
|
Copyright 2010: CrimsonText-Regular.ttf by [The Crimson Text Project Authors](https://github.com/googlefonts/Crimson)<br>
|
||||||
|
Copyright 2010: CrimsonText-Italic.ttf by [The Crimson Text Project Authors](https://github.com/googlefonts/Crimson)<br>
|
||||||
|
Copyright 2010: CrimsonText-SemiBold.ttf by [The Crimson Text Project Authors](https://github.com/googlefonts/Crimson)<br>
|
||||||
|
Copyright 2010: CrimsonText-SemiBoldItalic.ttf by [The Crimson Text Project Authors](https://github.com/googlefonts/Crimson)<br>
|
||||||
|
Copyright 2010: CrimsonText-Bold.ttf by [The Crimson Text Project Authors](https://github.com/googlefonts/Crimson)<br>
|
||||||
|
Copyright 2010: CrimsonText-BoldItalic.ttf by [The Crimson Text Project Authors](https://github.com/googlefonts/Crimson)<br>
|
||||||
|
License: [SIL OFL 1.1](http://scripts.sil.org/OFL)<br>
|
||||||
|
Source: https://fonts.google.com/specimen/Crimson+Text
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
* **Regex: Split text into sentences**<br>
|
* **Regex: Split text into sentences**<br>
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2
js/chapter.min.js
vendored
2
js/chapter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -69,8 +69,8 @@
|
|||||||
<div class="select-wrapper">
|
<div class="select-wrapper">
|
||||||
<select id="reader-settings-font-select" name="fonts">
|
<select id="reader-settings-font-select" name="fonts">
|
||||||
<?php
|
<?php
|
||||||
$fonts = [FICTIONEER_PRIMARY_FONT_CSS, 'System Font', 'Lato', 'Helvetica Neue', 'Georgia', 'Roboto Mono', 'Roboto Serif', 'Cormorant Garamond', 'Open Dyslexic'];
|
$fonts = [FICTIONEER_PRIMARY_FONT_CSS, 'System Font', 'Lato', 'Helvetica Neue', 'Georgia', 'Roboto Mono', 'Roboto Serif', 'Cormorant Garamond', 'Crimson Text', 'Open Dyslexic'];
|
||||||
$font_names = [FICTIONEER_PRIMARY_FONT_NAME, __( 'System Font', 'fictioneer' ), __( 'Lato', 'fictioneer' ), __( 'Helvetica Neue', 'fictioneer' ), __( 'Georgia', 'fictioneer' ), __( 'Roboto Mono', 'fictioneer' ), __( 'Roboto Serif', 'fictioneer' ), __( 'Cormorant Garamond', 'fictioneer' ), __( 'Open Dyslexic', 'fictioneer' )];
|
$font_names = [FICTIONEER_PRIMARY_FONT_NAME, __( 'System Font', 'fictioneer' ), __( 'Lato', 'fictioneer' ), __( 'Helvetica Neue', 'fictioneer' ), __( 'Georgia', 'fictioneer' ), __( 'Roboto Mono', 'fictioneer' ), __( 'Roboto Serif', 'fictioneer' ), __( 'Cormorant Garamond', 'fictioneer' ), __( 'Crimson Text', 'fictioneer' ), __( 'Open Dyslexic', 'fictioneer' )];
|
||||||
$length = count( $fonts );
|
$length = count( $fonts );
|
||||||
|
|
||||||
for ( $i = 0; $i < $length; $i++ ) {
|
for ( $i = 0; $i < $length; $i++ ) {
|
||||||
|
@ -44,6 +44,7 @@ var /** @type {String[]} */ fcn_fontList = [
|
|||||||
'Roboto Mono',
|
'Roboto Mono',
|
||||||
'Roboto Serif',
|
'Roboto Serif',
|
||||||
'Cormorant Garamond',
|
'Cormorant Garamond',
|
||||||
|
'Crimson Text',
|
||||||
'OpenDyslexic'
|
'OpenDyslexic'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* that might come up with the Google Fonts API.
|
* that might come up with the Google Fonts API.
|
||||||
*
|
*
|
||||||
* @note This file must be ignored by Autoptimize!
|
* @note This file must be ignored by Autoptimize!
|
||||||
* @link https://google-webfonts-helper.herokuapp.com/fonts
|
* @link https://gwfh.mranftl.com/fonts
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
@ -559,3 +559,61 @@
|
|||||||
src: url('../fonts/cormorant-garamond-v14-latin-ext_latin/cormorant-garamond-v14-latin-ext_latin-700italic.woff2') format('woff2'),
|
src: url('../fonts/cormorant-garamond-v14-latin-ext_latin/cormorant-garamond-v14-latin-ext_latin-700italic.woff2') format('woff2'),
|
||||||
url('../fonts/cormorant-garamond-v14-latin-ext_latin/cormorant-garamond-v14-latin-ext_latin-700italic.woff') format('woff');
|
url('../fonts/cormorant-garamond-v14-latin-ext_latin/cormorant-garamond-v14-latin-ext_latin-700italic.woff') format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// =============================================================================
|
||||||
|
// CRIMSON TEXT
|
||||||
|
// =============================================================================
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Crimson Text';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-regular.woff2') format('woff2'),
|
||||||
|
url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-regular.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Crimson Text';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-italic.woff2') format('woff2'),
|
||||||
|
url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-italic.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Crimson Text';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-600.woff2') format('woff2'),
|
||||||
|
url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-600.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Crimson Text';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-600italic.woff2') format('woff2'),
|
||||||
|
url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-600italic.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Crimson Text';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
src: url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-700.woff2') format('woff2'),
|
||||||
|
url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-700.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Crimson Text';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 700;
|
||||||
|
src: url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-700italic.woff2') format('woff2'),
|
||||||
|
url('../fonts/crimson-text-v19-latin_latin-ext/crimson-text-v19-latin_latin-ext-700italic.woff') format('woff');
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user