Add NotoSans font family option
This commit is contained in:
parent
828299403a
commit
44c30bda47
@ -16,6 +16,22 @@
|
|||||||
#include <builtinFonts/aleo_18_bolditalic.h>
|
#include <builtinFonts/aleo_18_bolditalic.h>
|
||||||
#include <builtinFonts/aleo_18_italic.h>
|
#include <builtinFonts/aleo_18_italic.h>
|
||||||
#include <builtinFonts/aleo_18_regular.h>
|
#include <builtinFonts/aleo_18_regular.h>
|
||||||
|
#include <builtinFonts/notosans_12_bold.h>
|
||||||
|
#include <builtinFonts/notosans_12_bolditalic.h>
|
||||||
|
#include <builtinFonts/notosans_12_italic.h>
|
||||||
|
#include <builtinFonts/notosans_12_regular.h>
|
||||||
|
#include <builtinFonts/notosans_14_bold.h>
|
||||||
|
#include <builtinFonts/notosans_14_bolditalic.h>
|
||||||
|
#include <builtinFonts/notosans_14_italic.h>
|
||||||
|
#include <builtinFonts/notosans_14_regular.h>
|
||||||
|
#include <builtinFonts/notosans_16_bold.h>
|
||||||
|
#include <builtinFonts/notosans_16_bolditalic.h>
|
||||||
|
#include <builtinFonts/notosans_16_italic.h>
|
||||||
|
#include <builtinFonts/notosans_16_regular.h>
|
||||||
|
#include <builtinFonts/notosans_18_bold.h>
|
||||||
|
#include <builtinFonts/notosans_18_bolditalic.h>
|
||||||
|
#include <builtinFonts/notosans_18_italic.h>
|
||||||
|
#include <builtinFonts/notosans_18_regular.h>
|
||||||
#include <builtinFonts/opendyslexic_10_bold.h>
|
#include <builtinFonts/opendyslexic_10_bold.h>
|
||||||
#include <builtinFonts/opendyslexic_10_bolditalic.h>
|
#include <builtinFonts/opendyslexic_10_bolditalic.h>
|
||||||
#include <builtinFonts/opendyslexic_10_italic.h>
|
#include <builtinFonts/opendyslexic_10_italic.h>
|
||||||
|
|||||||
3471
lib/EpdFont/builtinFonts/notosans_12_bold.h
Normal file
3471
lib/EpdFont/builtinFonts/notosans_12_bold.h
Normal file
File diff suppressed because it is too large
Load Diff
3640
lib/EpdFont/builtinFonts/notosans_12_bolditalic.h
Normal file
3640
lib/EpdFont/builtinFonts/notosans_12_bolditalic.h
Normal file
File diff suppressed because it is too large
Load Diff
3405
lib/EpdFont/builtinFonts/notosans_12_italic.h
Normal file
3405
lib/EpdFont/builtinFonts/notosans_12_italic.h
Normal file
File diff suppressed because it is too large
Load Diff
3236
lib/EpdFont/builtinFonts/notosans_12_regular.h
Normal file
3236
lib/EpdFont/builtinFonts/notosans_12_regular.h
Normal file
File diff suppressed because it is too large
Load Diff
4397
lib/EpdFont/builtinFonts/notosans_14_bold.h
Normal file
4397
lib/EpdFont/builtinFonts/notosans_14_bold.h
Normal file
File diff suppressed because it is too large
Load Diff
4616
lib/EpdFont/builtinFonts/notosans_14_bolditalic.h
Normal file
4616
lib/EpdFont/builtinFonts/notosans_14_bolditalic.h
Normal file
File diff suppressed because it is too large
Load Diff
4286
lib/EpdFont/builtinFonts/notosans_14_italic.h
Normal file
4286
lib/EpdFont/builtinFonts/notosans_14_italic.h
Normal file
File diff suppressed because it is too large
Load Diff
4080
lib/EpdFont/builtinFonts/notosans_14_regular.h
Normal file
4080
lib/EpdFont/builtinFonts/notosans_14_regular.h
Normal file
File diff suppressed because it is too large
Load Diff
5434
lib/EpdFont/builtinFonts/notosans_16_bold.h
Normal file
5434
lib/EpdFont/builtinFonts/notosans_16_bold.h
Normal file
File diff suppressed because it is too large
Load Diff
5722
lib/EpdFont/builtinFonts/notosans_16_bolditalic.h
Normal file
5722
lib/EpdFont/builtinFonts/notosans_16_bolditalic.h
Normal file
File diff suppressed because it is too large
Load Diff
5278
lib/EpdFont/builtinFonts/notosans_16_italic.h
Normal file
5278
lib/EpdFont/builtinFonts/notosans_16_italic.h
Normal file
File diff suppressed because it is too large
Load Diff
4989
lib/EpdFont/builtinFonts/notosans_16_regular.h
Normal file
4989
lib/EpdFont/builtinFonts/notosans_16_regular.h
Normal file
File diff suppressed because it is too large
Load Diff
6549
lib/EpdFont/builtinFonts/notosans_18_bold.h
Normal file
6549
lib/EpdFont/builtinFonts/notosans_18_bold.h
Normal file
File diff suppressed because it is too large
Load Diff
6924
lib/EpdFont/builtinFonts/notosans_18_bolditalic.h
Normal file
6924
lib/EpdFont/builtinFonts/notosans_18_bolditalic.h
Normal file
File diff suppressed because it is too large
Load Diff
6390
lib/EpdFont/builtinFonts/notosans_18_italic.h
Normal file
6390
lib/EpdFont/builtinFonts/notosans_18_italic.h
Normal file
File diff suppressed because it is too large
Load Diff
6044
lib/EpdFont/builtinFonts/notosans_18_regular.h
Normal file
6044
lib/EpdFont/builtinFonts/notosans_18_regular.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-Bold.ttf
Normal file
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-Bold.ttf
Normal file
Binary file not shown.
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-BoldItalic.ttf
Normal file
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-Italic.ttf
Normal file
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-Italic.ttf
Normal file
Binary file not shown.
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-Regular.ttf
Normal file
BIN
lib/EpdFont/builtinFonts/source/NotoSans/NotoSans-Regular.ttf
Normal file
Binary file not shown.
93
lib/EpdFont/builtinFonts/source/NotoSans/OFL.txt
Normal file
93
lib/EpdFont/builtinFonts/source/NotoSans/OFL.txt
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic)
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
https://openfontlicense.org
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
@ -44,6 +44,42 @@ ruby -rdigest -e 'puts [
|
|||||||
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
|
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
|
||||||
))"
|
))"
|
||||||
|
|
||||||
|
echo "#define NOTOSANS_12_FONT_ID ($(
|
||||||
|
ruby -rdigest -e 'puts [
|
||||||
|
"./notosans_12_regular.h",
|
||||||
|
"./notosans_12_bold.h",
|
||||||
|
"./notosans_12_bolditalic.h",
|
||||||
|
"./notosans_12_italic.h",
|
||||||
|
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
|
||||||
|
))"
|
||||||
|
|
||||||
|
echo "#define NOTOSANS_14_FONT_ID ($(
|
||||||
|
ruby -rdigest -e 'puts [
|
||||||
|
"./notosans_14_regular.h",
|
||||||
|
"./notosans_14_bold.h",
|
||||||
|
"./notosans_14_bolditalic.h",
|
||||||
|
"./notosans_14_italic.h",
|
||||||
|
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
|
||||||
|
))"
|
||||||
|
|
||||||
|
echo "#define NOTOSANS_16_FONT_ID ($(
|
||||||
|
ruby -rdigest -e 'puts [
|
||||||
|
"./notosans_16_regular.h",
|
||||||
|
"./notosans_16_bold.h",
|
||||||
|
"./notosans_16_bolditalic.h",
|
||||||
|
"./notosans_16_italic.h",
|
||||||
|
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
|
||||||
|
))"
|
||||||
|
|
||||||
|
echo "#define NOTOSANS_18_FONT_ID ($(
|
||||||
|
ruby -rdigest -e 'puts [
|
||||||
|
"./notosans_18_regular.h",
|
||||||
|
"./notosans_18_bold.h",
|
||||||
|
"./notosans_18_bolditalic.h",
|
||||||
|
"./notosans_18_italic.h",
|
||||||
|
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
|
||||||
|
))"
|
||||||
|
|
||||||
echo "#define OPENDYSLEXIC_8_FONT_ID ($(
|
echo "#define OPENDYSLEXIC_8_FONT_ID ($(
|
||||||
ruby -rdigest -e 'puts [
|
ruby -rdigest -e 'puts [
|
||||||
"./opendyslexic_8_regular.h",
|
"./opendyslexic_8_regular.h",
|
||||||
|
|||||||
@ -6,6 +6,7 @@ cd "$(dirname "$0")"
|
|||||||
|
|
||||||
READER_FONT_STYLES=("Regular" "Italic" "Bold" "BoldItalic")
|
READER_FONT_STYLES=("Regular" "Italic" "Bold" "BoldItalic")
|
||||||
ALEO_FONT_SIZES=(12 14 16 18)
|
ALEO_FONT_SIZES=(12 14 16 18)
|
||||||
|
NOTOSANS_FONT_SIZES=(12 14 16 18)
|
||||||
OPENDYSLEXIC_FONT_SIZES=(8 10 12 14)
|
OPENDYSLEXIC_FONT_SIZES=(8 10 12 14)
|
||||||
|
|
||||||
for size in ${ALEO_FONT_SIZES[@]}; do
|
for size in ${ALEO_FONT_SIZES[@]}; do
|
||||||
@ -18,6 +19,16 @@ for size in ${ALEO_FONT_SIZES[@]}; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for size in ${NOTOSANS_FONT_SIZES[@]}; do
|
||||||
|
for style in ${READER_FONT_STYLES[@]}; do
|
||||||
|
font_name="notosans_${size}_$(echo $style | tr '[:upper:]' '[:lower:]')"
|
||||||
|
font_path="../builtinFonts/source/NotoSans/NotoSans-${style}.ttf"
|
||||||
|
output_path="../builtinFonts/${font_name}.h"
|
||||||
|
python fontconvert.py $font_name $size $font_path --2bit > $output_path
|
||||||
|
echo "Generated $output_path"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
for size in ${OPENDYSLEXIC_FONT_SIZES[@]}; do
|
for size in ${OPENDYSLEXIC_FONT_SIZES[@]}; do
|
||||||
for style in ${READER_FONT_STYLES[@]}; do
|
for style in ${READER_FONT_STYLES[@]}; do
|
||||||
font_name="opendyslexic_${size}_$(echo $style | tr '[:upper:]' '[:lower:]')"
|
font_name="opendyslexic_${size}_$(echo $style | tr '[:upper:]' '[:lower:]')"
|
||||||
|
|||||||
@ -102,6 +102,18 @@ int CrossPointSettings::getReaderFontId() const {
|
|||||||
case EXTRA_LARGE:
|
case EXTRA_LARGE:
|
||||||
return ALEO_18_FONT_ID;
|
return ALEO_18_FONT_ID;
|
||||||
}
|
}
|
||||||
|
case NOTOSANS:
|
||||||
|
switch (fontSize) {
|
||||||
|
case SMALL:
|
||||||
|
return NOTOSANS_12_FONT_ID;
|
||||||
|
case MEDIUM:
|
||||||
|
default:
|
||||||
|
return NOTOSANS_14_FONT_ID;
|
||||||
|
case LARGE:
|
||||||
|
return NOTOSANS_16_FONT_ID;
|
||||||
|
case EXTRA_LARGE:
|
||||||
|
return NOTOSANS_18_FONT_ID;
|
||||||
|
}
|
||||||
case OPENDYSLEXIC:
|
case OPENDYSLEXIC:
|
||||||
switch (fontSize) {
|
switch (fontSize) {
|
||||||
case SMALL:
|
case SMALL:
|
||||||
|
|||||||
@ -39,7 +39,7 @@ class CrossPointSettings {
|
|||||||
enum SIDE_BUTTON_LAYOUT { PREV_NEXT = 0, NEXT_PREV = 1 };
|
enum SIDE_BUTTON_LAYOUT { PREV_NEXT = 0, NEXT_PREV = 1 };
|
||||||
|
|
||||||
// Font family options
|
// Font family options
|
||||||
enum FONT_FAMILY { ALEO = 0, OPENDYSLEXIC = 1 };
|
enum FONT_FAMILY { ALEO = 0, NOTOSANS = 1, OPENDYSLEXIC = 2 };
|
||||||
// Font size options
|
// Font size options
|
||||||
enum FONT_SIZE { SMALL = 0, MEDIUM = 1, LARGE = 2, EXTRA_LARGE = 3 };
|
enum FONT_SIZE { SMALL = 0, MEDIUM = 1, LARGE = 2, EXTRA_LARGE = 3 };
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ const SettingInfo settingsList[settingsCount] = {
|
|||||||
SettingType::ENUM,
|
SettingType::ENUM,
|
||||||
&CrossPointSettings::sideButtonLayout,
|
&CrossPointSettings::sideButtonLayout,
|
||||||
{"Prev, Next", "Next, Prev"}},
|
{"Prev, Next", "Next, Prev"}},
|
||||||
{"Reader Font Family", SettingType::ENUM, &CrossPointSettings::fontFamily, {"Aleo", "Open Dyslexic"}},
|
{"Reader Font Family", SettingType::ENUM, &CrossPointSettings::fontFamily, {"Aleo", "Noto Sans", "Open Dyslexic"}},
|
||||||
{"Reader Font Size", SettingType::ENUM, &CrossPointSettings::fontSize, {"Small", "Medium", "Large", "X Large"}},
|
{"Reader Font Size", SettingType::ENUM, &CrossPointSettings::fontSize, {"Small", "Medium", "Large", "X Large"}},
|
||||||
{"Check for updates", SettingType::ACTION, nullptr, {}},
|
{"Check for updates", SettingType::ACTION, nullptr, {}},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,6 +5,10 @@
|
|||||||
#define ALEO_14_FONT_ID (-1667320299)
|
#define ALEO_14_FONT_ID (-1667320299)
|
||||||
#define ALEO_16_FONT_ID (-1337958100)
|
#define ALEO_16_FONT_ID (-1337958100)
|
||||||
#define ALEO_18_FONT_ID (-268969776)
|
#define ALEO_18_FONT_ID (-268969776)
|
||||||
|
#define NOTOSANS_12_FONT_ID (-1274546328)
|
||||||
|
#define NOTOSANS_14_FONT_ID (-583338198)
|
||||||
|
#define NOTOSANS_16_FONT_ID (-1127423853)
|
||||||
|
#define NOTOSANS_18_FONT_ID (1845201822)
|
||||||
#define OPENDYSLEXIC_8_FONT_ID (-331738429)
|
#define OPENDYSLEXIC_8_FONT_ID (-331738429)
|
||||||
#define OPENDYSLEXIC_10_FONT_ID (-206739437)
|
#define OPENDYSLEXIC_10_FONT_ID (-206739437)
|
||||||
#define OPENDYSLEXIC_12_FONT_ID (-263369585)
|
#define OPENDYSLEXIC_12_FONT_ID (-263369585)
|
||||||
|
|||||||
29
src/main.cpp
29
src/main.cpp
@ -61,6 +61,31 @@ EpdFont aleo18ItalicFont(&aleo_18_italic);
|
|||||||
EpdFont aleo18BoldItalicFont(&aleo_18_bolditalic);
|
EpdFont aleo18BoldItalicFont(&aleo_18_bolditalic);
|
||||||
EpdFontFamily aleo18FontFamily(&aleo18RegularFont, &aleo18BoldFont, &aleo18ItalicFont, &aleo18BoldItalicFont);
|
EpdFontFamily aleo18FontFamily(&aleo18RegularFont, &aleo18BoldFont, &aleo18ItalicFont, &aleo18BoldItalicFont);
|
||||||
|
|
||||||
|
EpdFont notosans12RegularFont(¬osans_12_regular);
|
||||||
|
EpdFont notosans12BoldFont(¬osans_12_bold);
|
||||||
|
EpdFont notosans12ItalicFont(¬osans_12_italic);
|
||||||
|
EpdFont notosans12BoldItalicFont(¬osans_12_bolditalic);
|
||||||
|
EpdFontFamily notosans12FontFamily(¬osans12RegularFont, ¬osans12BoldFont, ¬osans12ItalicFont,
|
||||||
|
¬osans12BoldItalicFont);
|
||||||
|
EpdFont notosans14RegularFont(¬osans_14_regular);
|
||||||
|
EpdFont notosans14BoldFont(¬osans_14_bold);
|
||||||
|
EpdFont notosans14ItalicFont(¬osans_14_italic);
|
||||||
|
EpdFont notosans14BoldItalicFont(¬osans_14_bolditalic);
|
||||||
|
EpdFontFamily notosans14FontFamily(¬osans14RegularFont, ¬osans14BoldFont, ¬osans14ItalicFont,
|
||||||
|
¬osans14BoldItalicFont);
|
||||||
|
EpdFont notosans16RegularFont(¬osans_16_regular);
|
||||||
|
EpdFont notosans16BoldFont(¬osans_16_bold);
|
||||||
|
EpdFont notosans16ItalicFont(¬osans_16_italic);
|
||||||
|
EpdFont notosans16BoldItalicFont(¬osans_16_bolditalic);
|
||||||
|
EpdFontFamily notosans16FontFamily(¬osans16RegularFont, ¬osans16BoldFont, ¬osans16ItalicFont,
|
||||||
|
¬osans16BoldItalicFont);
|
||||||
|
EpdFont notosans18RegularFont(¬osans_18_regular);
|
||||||
|
EpdFont notosans18BoldFont(¬osans_18_bold);
|
||||||
|
EpdFont notosans18ItalicFont(¬osans_18_italic);
|
||||||
|
EpdFont notosans18BoldItalicFont(¬osans_18_bolditalic);
|
||||||
|
EpdFontFamily notosans18FontFamily(¬osans18RegularFont, ¬osans18BoldFont, ¬osans18ItalicFont,
|
||||||
|
¬osans18BoldItalicFont);
|
||||||
|
|
||||||
EpdFont opendyslexic8RegularFont(&opendyslexic_8_regular);
|
EpdFont opendyslexic8RegularFont(&opendyslexic_8_regular);
|
||||||
EpdFont opendyslexic8BoldFont(&opendyslexic_8_bold);
|
EpdFont opendyslexic8BoldFont(&opendyslexic_8_bold);
|
||||||
EpdFont opendyslexic8ItalicFont(&opendyslexic_8_italic);
|
EpdFont opendyslexic8ItalicFont(&opendyslexic_8_italic);
|
||||||
@ -206,6 +231,10 @@ void setupDisplayAndFonts() {
|
|||||||
renderer.insertFont(ALEO_14_FONT_ID, aleo14FontFamily);
|
renderer.insertFont(ALEO_14_FONT_ID, aleo14FontFamily);
|
||||||
renderer.insertFont(ALEO_16_FONT_ID, aleo16FontFamily);
|
renderer.insertFont(ALEO_16_FONT_ID, aleo16FontFamily);
|
||||||
renderer.insertFont(ALEO_18_FONT_ID, aleo18FontFamily);
|
renderer.insertFont(ALEO_18_FONT_ID, aleo18FontFamily);
|
||||||
|
renderer.insertFont(NOTOSANS_12_FONT_ID, notosans12FontFamily);
|
||||||
|
renderer.insertFont(NOTOSANS_14_FONT_ID, notosans14FontFamily);
|
||||||
|
renderer.insertFont(NOTOSANS_16_FONT_ID, notosans16FontFamily);
|
||||||
|
renderer.insertFont(NOTOSANS_18_FONT_ID, notosans18FontFamily);
|
||||||
renderer.insertFont(OPENDYSLEXIC_8_FONT_ID, opendyslexic8FontFamily);
|
renderer.insertFont(OPENDYSLEXIC_8_FONT_ID, opendyslexic8FontFamily);
|
||||||
renderer.insertFont(OPENDYSLEXIC_10_FONT_ID, opendyslexic10FontFamily);
|
renderer.insertFont(OPENDYSLEXIC_10_FONT_ID, opendyslexic10FontFamily);
|
||||||
renderer.insertFont(OPENDYSLEXIC_12_FONT_ID, opendyslexic12FontFamily);
|
renderer.insertFont(OPENDYSLEXIC_12_FONT_ID, opendyslexic12FontFamily);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user