Compare commits

...

24 Commits

Author SHA1 Message Date
Jonas Diemer
36a77e34b9 Bump cache version. 2025-12-30 12:50:37 +01:00
Jonas Diemer
7c0433f923
Merge branch 'master' into feature/epub-guide-to-start 2025-12-30 12:36:00 +01:00
Jonas Diemer
540c33b25e Updated comment. 2025-12-30 12:32:37 +01:00
Jonas Diemer
366fba9362 Go to the guide::text reference when book is first opened. 2025-12-30 12:32:37 +01:00
Dave Allie
5872edc9b2 Parse the author name from content.opf file (#165)
## Summary

* Parse the author name from content.opf file
  * Listed in the dc:creator tag within the metadata section
2025-12-30 12:28:08 +01:00
Dave Allie
9fb7d09af3 Adjust screen title position 2025-12-30 12:28:08 +01:00
Dave Allie
e0612be7b0 Add setting for line spacing to adjust space between lines (#164)
## Summary

* Add setting for line spacing to adjust space between lines
* Aleo is already a bit tighter than Noto Sans and Open Dyslexic, so
have adjusted the values to match, this can be tweaked in the future
2025-12-30 12:28:08 +01:00
Dave Allie
dc2b5813b8 Aleo, Noto Sans, Open Dyslexic fonts (#163)
## Summary

* Swap out Bookerly font due to licensing issues, replace default font
with Aleo
* I did a bunch of searching around for a nice replacement font, and
this trumped several other like Literata, Merriwether, Vollkorn, etc
* Add Noto Sans, and Open Dyslexic as font options
  * They can be selected in the settings screen
* Add font size options (Small, Medium, Large, Extra Large)
  * Adjustable in settings
* Swap out uses of reader font in headings and replaced with slightly
larger Ubuntu font
* Replaced PixelArial14 font as it was difficult to track down, replace
with Space Grotesk
* Remove auto formatting on generated font files
* Massively speeds up formatting step now that there is a lot more CPP
font source
* Include fonts with their licenses in the repo

## Additional Context

Line compression setting will follow

| Font | Small | Medium | Large | X Large |
| --- | --- | --- | --- | --- |
| Aleo |
![IMG_5704](https://github.com/user-attachments/assets/7acb054f-ddef-4080-b3c8-590cfaf13115)
|
![IMG_5705](https://github.com/user-attachments/assets/d4819036-5c89-486e-92c3-86094fa4d89a)
|
![IMG_5706](https://github.com/user-attachments/assets/35caf622-d126-4396-9c3e-f927eba1e1f4)
|
![IMG_5707](https://github.com/user-attachments/assets/af32370a-6244-400f-bea9-5c27db040b5b)
|
| Noto Sans |
![IMG_5708](https://github.com/user-attachments/assets/1f9264a5-c069-4e22-9099-a082bfcaabc5)
|
![IMG_5709](https://github.com/user-attachments/assets/ef6b07fe-8d87-403a-b152-05f50b69b78e)
|
![IMG_5710](https://github.com/user-attachments/assets/112a5d20-262c-4dc0-b67d-980b237e4607)
|
![IMG_5711](https://github.com/user-attachments/assets/d25e0e1d-2ace-450d-96dd-618e4efd4805)
|
| Open Dyslexic |
![IMG_5712](https://github.com/user-attachments/assets/ead64690-f261-4fae-a4a2-0becd1162e2d)
|
![IMG_5713](https://github.com/user-attachments/assets/59d60f7d-5142-4591-96b0-c04e0a4c6436)
|
![IMG_5714](https://github.com/user-attachments/assets/bb6652cd-1790-46a3-93ea-2b8f70d0d36d)
|
![IMG_5715](https://github.com/user-attachments/assets/496e7eb4-c81a-4232-83e9-9ba9148fdea4)
|
2025-12-30 12:28:08 +01:00
Dave Allie
401fb8acb9 Show previous title for unnamed spines (#158)
## Summary

* Show previous title for unnamed spines
* The spec is a little unclear, but there are plenty of cases where
chapters are split up in parts and should show the previous chapter's
title
* List TOC items instead of spine items in chapter select
* Bump `BOOK_CACHE_VERSION` to `2` to force regeneration of spine item's
TOC indexes
2025-12-30 12:28:08 +01:00
Dave Allie
f80539d26c Add exFAT support (#150)
* Swap to updated SDCardManager which uses SdFat
* Add exFAT support
  * Swap to using FsFile everywhere
* Use newly exposed `SdMan` macro to get to static instance of
SDCardManager
* Move a bunch of FsHelpers up to SDCardManager
2025-12-30 12:28:04 +01:00
Jonas Diemer
6dc7b0bd31 Add option to apply format fix only on changed files (much faster) (#153)
The default version parses a lot of files and takes ~5s on my machine.
This adds an option `-g` to run only on files modified/staged in git.
2025-12-30 12:23:44 +01:00
Dave Allie
226ab4cdad Split XTC file version into major minor bytes (#161)
## Summary

* Split XTC file version into major minor bytes
  * Continue to support both 1.0 and 0.1

## Additional Context

* See
https://github.com/daveallie/crosspoint-reader/issues/146#issuecomment-3698223951
for more detail

FYI @treetrum @eunchurn
2025-12-30 12:23:44 +01:00
Dave Allie
1aed697605 Accept big endian version in XTC files (#159)
## Summary

* Accept big endian version in XTC files
* Recently, two issues
(https://github.com/daveallie/crosspoint-reader/issues/157 and
https://github.com/daveallie/crosspoint-reader/issues/146) have popped
up with XTC files with a big endian encoded version. This is read out as
256.
  * We should be more lax and accept these values.
2025-12-30 12:23:44 +01:00
Sam Davis
29c093ce61 Add chapter select support to XTC files (#145)
## Summary

- **What is the goal of this PR?** Add chapter selection support to the
XTC reader activity, including parsing chapter metadata from XTC files.
- **What changes are included?** Implemented XTC chapter parsing and
exposure in the XTC library, added a chapter selection activity for XTC,
integrated it into XtcReaderActivity, and normalized chapter page
indices by shifting them to 0-based.

  ## Additional Context

- The reader uses 0-based page indexing (first page = 0), but the XTC
chapter table appears to be 1-based (first page = 1), so chapter
start/end pages are shifted down by 1 during parsing.
2025-12-30 12:23:44 +01:00
Dave Allie
be1b5bad21
Parse the author name from content.opf file (#165)
## Summary

* Parse the author name from content.opf file
  * Listed in the dc:creator tag within the metadata section
2025-12-30 22:15:44 +11:00
Dave Allie
3dd52f30fa
Adjust screen title position 2025-12-30 22:06:57 +11:00
Dave Allie
e43fec79be
Add setting for line spacing to adjust space between lines (#164)
Some checks are pending
CI / build (push) Waiting to run
## Summary

* Add setting for line spacing to adjust space between lines
* Aleo is already a bit tighter than Noto Sans and Open Dyslexic, so
have adjusted the values to match, this can be tweaked in the future
2025-12-30 19:34:46 +11:00
Dave Allie
bf7bffd506
Aleo, Noto Sans, Open Dyslexic fonts (#163)
## Summary

* Swap out Bookerly font due to licensing issues, replace default font
with Aleo
* I did a bunch of searching around for a nice replacement font, and
this trumped several other like Literata, Merriwether, Vollkorn, etc
* Add Noto Sans, and Open Dyslexic as font options
  * They can be selected in the settings screen
* Add font size options (Small, Medium, Large, Extra Large)
  * Adjustable in settings
* Swap out uses of reader font in headings and replaced with slightly
larger Ubuntu font
* Replaced PixelArial14 font as it was difficult to track down, replace
with Space Grotesk
* Remove auto formatting on generated font files
* Massively speeds up formatting step now that there is a lot more CPP
font source
* Include fonts with their licenses in the repo

## Additional Context

Line compression setting will follow

| Font | Small | Medium | Large | X Large |
| --- | --- | --- | --- | --- |
| Aleo |
![IMG_5704](https://github.com/user-attachments/assets/7acb054f-ddef-4080-b3c8-590cfaf13115)
|
![IMG_5705](https://github.com/user-attachments/assets/d4819036-5c89-486e-92c3-86094fa4d89a)
|
![IMG_5706](https://github.com/user-attachments/assets/35caf622-d126-4396-9c3e-f927eba1e1f4)
|
![IMG_5707](https://github.com/user-attachments/assets/af32370a-6244-400f-bea9-5c27db040b5b)
|
| Noto Sans |
![IMG_5708](https://github.com/user-attachments/assets/1f9264a5-c069-4e22-9099-a082bfcaabc5)
|
![IMG_5709](https://github.com/user-attachments/assets/ef6b07fe-8d87-403a-b152-05f50b69b78e)
|
![IMG_5710](https://github.com/user-attachments/assets/112a5d20-262c-4dc0-b67d-980b237e4607)
|
![IMG_5711](https://github.com/user-attachments/assets/d25e0e1d-2ace-450d-96dd-618e4efd4805)
|
| Open Dyslexic |
![IMG_5712](https://github.com/user-attachments/assets/ead64690-f261-4fae-a4a2-0becd1162e2d)
|
![IMG_5713](https://github.com/user-attachments/assets/59d60f7d-5142-4591-96b0-c04e0a4c6436)
|
![IMG_5714](https://github.com/user-attachments/assets/bb6652cd-1790-46a3-93ea-2b8f70d0d36d)
|
![IMG_5715](https://github.com/user-attachments/assets/496e7eb4-c81a-4232-83e9-9ba9148fdea4)
|
2025-12-30 19:21:47 +11:00
Dave Allie
9f31f80c80
Show previous title for unnamed spines (#158)
## Summary

* Show previous title for unnamed spines
* The spec is a little unclear, but there are plenty of cases where
chapters are split up in parts and should show the previous chapter's
title
* List TOC items instead of spine items in chapter select
* Bump `BOOK_CACHE_VERSION` to `2` to force regeneration of spine item's
TOC indexes
2025-12-30 18:52:42 +11:00
Dave Allie
fb5fc32c5d
Add exFAT support (#150)
## Summary

* Swap to updated SDCardManager which uses SdFat
* Add exFAT support
  * Swap to using FsFile everywhere
* Use newly exposed `SdMan` macro to get to static instance of
SDCardManager
* Move a bunch of FsHelpers up to SDCardManager
2025-12-30 16:09:30 +11:00
Jonas Diemer
d4bd119950
Add option to apply format fix only on changed files (much faster) (#153)
The default version parses a lot of files and takes ~5s on my machine.
This adds an option `-g` to run only on files modified/staged in git.
2025-12-30 16:05:06 +11:00
Dave Allie
85d76da967
Split XTC file version into major minor bytes (#161)
## Summary

* Split XTC file version into major minor bytes
  * Continue to support both 1.0 and 0.1

## Additional Context

* See
https://github.com/daveallie/crosspoint-reader/issues/146#issuecomment-3698223951
for more detail

FYI @treetrum @eunchurn
2025-12-30 15:48:20 +11:00
Dave Allie
e4ac90f5c1
Accept big endian version in XTC files (#159)
## Summary

* Accept big endian version in XTC files
* Recently, two issues
(https://github.com/daveallie/crosspoint-reader/issues/157 and
https://github.com/daveallie/crosspoint-reader/issues/146) have popped
up with XTC files with a big endian encoded version. This is read out as
256.
  * We should be more lax and accept these values.
2025-12-30 13:36:25 +11:00
Sam Davis
278b056bd0
Add chapter select support to XTC files (#145)
Some checks are pending
CI / build (push) Waiting to run
## Summary

- **What is the goal of this PR?** Add chapter selection support to the
XTC reader activity, including parsing chapter metadata from XTC files.
- **What changes are included?** Implemented XTC chapter parsing and
exposure in the XTC library, added a chapter selection activity for XTC,
integrated it into XtcReaderActivity, and normalized chapter page
indices by shifting them to 0-based.

  ## Additional Context

- The reader uses 0-based page indexing (first page = 0), but the XTC
chapter table appears to be 1-based (first page = 1), so chapter
start/end pages are shifted down by 1 during parsing.
2025-12-30 12:49:18 +11:00
143 changed files with 212141 additions and 21207 deletions

View File

@ -1,3 +1,19 @@
#!/bin/bash
find src lib \( -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" \) -exec clang-format -style=file -i {} +
GIT_LS_FILES_FLAGS=""
if [[ "$1" == "-g" ]]; then
GIT_LS_FILES_FLAGS="--modified"
fi
# --- Main Logic ---
# Format all files (or only modified files if -g is passed)
# Use 'git ls-files' to get a list of all files tracked by git:
# --modified: files tracked by git that have been modified (staged or unstaged)
# --exclude-standard: ignores files in .gitignore
# Additionally exclude files in 'lib/EpdFont/builtinFonts/' as they are script-generated.
git ls-files --exclude-standard ${GIT_LS_FILES_FLAGS} \
| grep -E '\.(c|cpp|h|hpp)$' \
| grep -v -E '^lib/EpdFont/builtinFonts/' \
| xargs -r clang-format -style=file -i

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,55 @@
#pragma once
#include <builtinFonts/aleo_12_bold.h>
#include <builtinFonts/aleo_12_bolditalic.h>
#include <builtinFonts/aleo_12_italic.h>
#include <builtinFonts/aleo_12_regular.h>
#include <builtinFonts/aleo_14_bold.h>
#include <builtinFonts/aleo_14_bolditalic.h>
#include <builtinFonts/aleo_14_italic.h>
#include <builtinFonts/aleo_14_regular.h>
#include <builtinFonts/aleo_16_bold.h>
#include <builtinFonts/aleo_16_bolditalic.h>
#include <builtinFonts/aleo_16_italic.h>
#include <builtinFonts/aleo_16_regular.h>
#include <builtinFonts/aleo_18_bold.h>
#include <builtinFonts/aleo_18_bolditalic.h>
#include <builtinFonts/aleo_18_italic.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_bolditalic.h>
#include <builtinFonts/opendyslexic_10_italic.h>
#include <builtinFonts/opendyslexic_10_regular.h>
#include <builtinFonts/opendyslexic_12_bold.h>
#include <builtinFonts/opendyslexic_12_bolditalic.h>
#include <builtinFonts/opendyslexic_12_italic.h>
#include <builtinFonts/opendyslexic_12_regular.h>
#include <builtinFonts/opendyslexic_14_bold.h>
#include <builtinFonts/opendyslexic_14_bolditalic.h>
#include <builtinFonts/opendyslexic_14_italic.h>
#include <builtinFonts/opendyslexic_14_regular.h>
#include <builtinFonts/opendyslexic_8_bold.h>
#include <builtinFonts/opendyslexic_8_bolditalic.h>
#include <builtinFonts/opendyslexic_8_italic.h>
#include <builtinFonts/opendyslexic_8_regular.h>
#include <builtinFonts/spacegrotesk.h>
#include <builtinFonts/ubuntu_10_bold.h>
#include <builtinFonts/ubuntu_10_regular.h>
#include <builtinFonts/ubuntu_12_bold.h>
#include <builtinFonts/ubuntu_12_regular.h>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,93 @@
Copyright 2018 The Aleo Project Authors (https://github.com/AlessioLaiso/aleo)
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.

View 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.

View File

@ -0,0 +1,94 @@
Copyright (c) 2019-07-29, Abbie Gonzalez (https://abbiecod.es|support@abbiecod.es),
with Reserved Font Name OpenDyslexic.
Copyright (c) 12/2012 - 2019
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:
http://scripts.sil.org/OFL
-----------------------------------------------------------
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.

View File

@ -0,0 +1,93 @@
Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk)
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.

View File

@ -0,0 +1,96 @@
-------------------------------
UBUNTU FONT LICENCE Version 1.0
-------------------------------
PREAMBLE
This licence allows the licensed fonts to be used, studied, modified and
redistributed freely. The fonts, including any derivative works, can be
bundled, embedded, and redistributed provided the terms of this licence
are met. The fonts and derivatives, however, cannot be released under
any other licence. The requirement for fonts to remain under this
licence does not require any document created using the fonts or their
derivatives to be published under this licence, as long as the primary
purpose of the document is not to be a vehicle for the distribution of
the fonts.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this licence and clearly marked as such. This may
include source files, build scripts and documentation.
"Original Version" refers to the collection of Font Software components
as received under this licence.
"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.
"Copyright Holder(s)" refers to all individuals and companies who have a
copyright ownership of the Font Software.
"Substantially Changed" refers to Modified Versions which can be easily
identified as dissimilar to the Font Software by users of the Font
Software comparing the Original Version with the Modified Version.
To "Propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification and with or without charging
a redistribution fee), making available to the public, and in some
countries other activities as well.
PERMISSION & CONDITIONS
This licence does not grant any rights under trademark law and all such
rights are reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of the Font Software, to propagate the Font Software, subject to
the below conditions:
1) Each copy of the Font Software must contain the above copyright
notice and this licence. 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.
2) The font name complies with the following:
(a) The Original Version must retain its name, unmodified.
(b) Modified Versions which are Substantially Changed must be renamed to
avoid use of the name of the Original Version or similar names entirely.
(c) Modified Versions which are not Substantially Changed must be
renamed to both (i) retain the name of the Original Version and (ii) add
additional naming elements to distinguish the Modified Version from the
Original Version. The name of such Modified Versions must be the name of
the Original Version, with "derivative X" where X represents the name of
the new work, appended to that name.
3) The name(s) of the Copyright Holder(s) and any contributor to the
Font Software shall not be used to promote, endorse or advertise any
Modified Version, except (i) as required by this licence, (ii) to
acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with
their explicit written permission.
4) The Font Software, modified or unmodified, in part or in whole, must
be distributed entirely under this licence, and must not be distributed
under any other licence. The requirement for fonts to remain under this
licence does not affect any document created using the Font Software,
except any version of the Font Software extracted from a document
created using the Font Software may only be distributed under this
licence.
TERMINATION
This licence 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.

Binary file not shown.

View File

@ -0,0 +1,826 @@
/**
* generated by fontconvert.py
* name: spacegrotesk
* size: 8
* mode: 1-bit
*/
#pragma once
#include "EpdFontData.h"
static const uint8_t spacegroteskBitmaps[5331] = {
0x66, 0x66, 0x66, 0x66, 0x60, 0x67, 0x20, 0x00, 0xF9, 0xF1, 0xA6, 0xC0, 0x00, 0x33, 0x0C, 0xC3,
0x31, 0xFF, 0xFF, 0xCC, 0xC3, 0x33, 0xFF, 0xFF, 0xCC, 0xC3, 0x30, 0xCC, 0x0C, 0x03, 0x03, 0xF1,
0xFE, 0x6D, 0x9B, 0x77, 0xC8, 0xF8, 0x1F, 0x93, 0x7E, 0xCD, 0xB3, 0x7F, 0x8F, 0xE0, 0xC0, 0x30,
0x78, 0x37, 0xE3, 0x33, 0x39, 0x9B, 0x87, 0xD8, 0x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x3E, 0xF8,
0xC0, 0x7F, 0xFF,
};
static const EpdGlyph spacegroteskGlyphs[] = {
{ 0, 0, 10, 0, 0, 0, 0 }, //
{ 0, 0, 4, 0, 0, 0, 0 }, //
{ 4, 13, 4, 0, 12, 7, 0 }, // !
{ 7, 6, 7, 0, 13, 6, 7 }, // "
{ 10, 12, 10, 0, 12, 15, 13 }, // #
{ 10, 16, 10, 0, 14, 20, 28 }, // $
{ 13, 13, 13, 0, 12, 22, 48 }, // %
{ 10, 12, 10, 0, 12, 15, 70 }, // &
{ 4, 6, 4, 0, 13, 3, 85 }, // '
{ 6, 17, 6, 1, 13, 13, 88 }, // (
{ 6, 17, 6, 0, 13, 13, 101 }, // )
{ 8, 8, 9, 0, 12, 8, 114 }, // *
{ 8, 8, 10, 1, 10, 8, 122 }, // +
{ 4, 6, 4, 0, 3, 3, 130 }, // ,
{ 6, 2, 8, 1, 5, 2, 133 }, // -
{ 4, 4, 4, 0, 3, 2, 135 }, // .
{ 7, 16, 6, 0, 12, 14, 137 }, // /
{ 9, 13, 11, 1, 12, 15, 151 }, // 0
{ 6, 12, 7, 0, 12, 9, 166 }, // 1
{ 10, 12, 10, 0, 12, 15, 175 }, // 2
{ 10, 13, 10, 0, 12, 17, 190 }, // 3
{ 10, 12, 10, 0, 12, 15, 207 }, // 4
{ 10, 13, 10, 0, 12, 17, 222 }, // 5
{ 9, 13, 10, 1, 12, 15, 239 }, // 6
{ 9, 12, 9, 0, 12, 14, 254 }, // 7
{ 10, 13, 10, 0, 12, 17, 268 }, // 8
{ 10, 13, 10, 0, 12, 17, 285 }, // 9
{ 4, 10, 4, 0, 9, 5, 302 }, // :
{ 4, 12, 4, 0, 9, 6, 307 }, // ;
{ 8, 8, 10, 1, 10, 8, 313 }, // <
{ 8, 5, 10, 1, 8, 5, 321 }, // =
{ 8, 8, 10, 1, 10, 8, 326 }, // >
{ 9, 13, 10, 0, 12, 15, 334 }, // ?
{ 15, 16, 17, 1, 12, 30, 349 }, // @
{ 11, 12, 11, 0, 12, 17, 379 }, // A
{ 11, 12, 11, 0, 12, 17, 396 }, // B
{ 9, 13, 11, 1, 12, 15, 413 }, // C
{ 11, 12, 11, 0, 12, 17, 428 }, // D
{ 8, 12, 9, 1, 12, 12, 445 }, // E
{ 8, 12, 9, 1, 12, 12, 457 }, // F
{ 9, 13, 11, 1, 12, 15, 469 }, // G
{ 9, 12, 11, 1, 12, 14, 484 }, // H
{ 2, 12, 4, 1, 12, 3, 498 }, // I
{ 10, 13, 10, 0, 12, 17, 501 }, // J
{ 9, 12, 10, 1, 12, 14, 518 }, // K
{ 8, 12, 9, 1, 12, 12, 532 }, // L
{ 13, 12, 14, 1, 12, 20, 544 }, // M
{ 9, 12, 11, 1, 12, 14, 564 }, // N
{ 10, 13, 11, 1, 12, 17, 578 }, // O
{ 9, 12, 10, 1, 12, 14, 595 }, // P
{ 10, 15, 11, 1, 12, 19, 609 }, // Q
{ 9, 12, 11, 1, 12, 14, 628 }, // R
{ 10, 13, 10, 0, 12, 17, 642 }, // S
{ 10, 12, 10, 0, 12, 15, 659 }, // T
{ 9, 13, 11, 1, 12, 15, 674 }, // U
{ 10, 12, 10, 0, 12, 15, 689 }, // V
{ 14, 12, 15, 0, 12, 21, 704 }, // W
{ 11, 12, 11, 0, 12, 17, 725 }, // X
{ 10, 12, 10, 0, 12, 15, 742 }, // Y
{ 9, 12, 10, 0, 12, 14, 757 }, // Z
{ 5, 17, 6, 1, 13, 11, 771 }, // [
{ 8, 16, 6, -1, 12, 16, 782 }, // <backslash>
{ 5, 17, 6, 0, 13, 11, 798 }, // ]
{ 9, 5, 10, 1, 12, 6, 809 }, // ^
{ 9, 3, 10, 1, 0, 4, 815 }, // _
{ 4, 3, 5, 0, 12, 2, 819 }, // `
{ 10, 10, 10, 0, 9, 13, 821 }, // a
{ 9, 13, 11, 1, 12, 15, 834 }, // b
{ 10, 10, 10, 0, 9, 13, 849 }, // c
{ 10, 13, 11, 0, 12, 17, 862 }, // d
{ 9, 10, 10, 0, 9, 12, 879 }, // e
{ 7, 12, 7, 0, 12, 11, 891 }, // f
{ 10, 13, 11, 0, 9, 17, 902 }, // g
{ 8, 12, 10, 1, 12, 12, 919 }, // h
{ 3, 12, 4, 1, 12, 5, 931 }, // i
{ 5, 16, 4, -1, 12, 10, 936 }, // j
{ 8, 12, 9, 1, 12, 12, 946 }, // k
{ 2, 12, 4, 1, 12, 3, 958 }, // l
{ 13, 9, 14, 1, 9, 15, 961 }, // m
{ 8, 9, 10, 1, 9, 9, 976 }, // n
{ 10, 10, 10, 0, 9, 13, 985 }, // o
{ 9, 13, 11, 1, 9, 15, 998 }, // p
{ 10, 13, 11, 0, 9, 17, 1013 }, // q
{ 5, 9, 6, 1, 9, 6, 1030 }, // r
{ 8, 10, 9, 0, 9, 10, 1036 }, // s
{ 7, 12, 8, 0, 12, 11, 1046 }, // t
{ 8, 10, 10, 1, 9, 10, 1057 }, // u
{ 9, 9, 9, 0, 9, 11, 1067 }, // v
{ 13, 9, 13, 0, 9, 15, 1078 }, // w
{ 10, 9, 10, 0, 9, 12, 1093 }, // x
{ 8, 13, 10, 1, 9, 13, 1105 }, // y
{ 7, 9, 9, 1, 9, 8, 1118 }, // z
{ 7, 17, 7, 0, 13, 15, 1126 }, // {
{ 2, 19, 4, 1, 14, 5, 1141 }, // |
{ 7, 17, 7, 0, 13, 15, 1146 }, // }
{ 8, 4, 10, 1, 8, 4, 1161 }, // ~
{ 0, 0, 4, 0, 0, 0, 1165 }, //  
{ 4, 13, 4, 0, 9, 7, 1165 }, // ¡
{ 9, 13, 10, 1, 11, 15, 1172 }, // ¢
{ 10, 12, 10, 0, 12, 15, 1187 }, // £
{ 10, 10, 10, 0, 11, 13, 1202 }, // ¤
{ 11, 12, 10, 0, 12, 17, 1215 }, // ¥
{ 2, 19, 4, 1, 14, 5, 1232 }, // ¦
{ 8, 13, 8, 0, 12, 13, 1237 }, // §
{ 7, 3, 7, 0, 12, 3, 1250 }, // ¨
{ 10, 13, 12, 1, 12, 17, 1253 }, // ©
{ 7, 7, 7, 0, 12, 7, 1270 }, // ª
{ 11, 8, 11, 0, 8, 11, 1277 }, // «
{ 8, 4, 10, 1, 7, 4, 1288 }, // ¬
{ 6, 2, 8, 1, 5, 2, 1292 }, // ­
{ 8, 8, 9, 0, 12, 8, 1294 }, // ®
{ 7, 2, 7, 0, 11, 2, 1302 }, // ¯
{ 6, 6, 6, 0, 12, 5, 1304 }, // °
{ 8, 10, 10, 1, 10, 10, 1309 }, // ±
{ 6, 7, 6, 0, 13, 6, 1319 }, // ²
{ 6, 7, 6, 0, 12, 6, 1325 }, // ³
{ 4, 3, 5, 0, 12, 2, 1331 }, // ´
{ 9, 13, 10, 1, 9, 15, 1333 }, // µ
{ 9, 12, 10, 0, 12, 14, 1348 }, // ¶
{ 3, 4, 3, 0, 7, 2, 1362 }, // ·
{ 5, 5, 5, 0, 1, 4, 1364 }, // ¸
{ 4, 6, 4, 0, 12, 3, 1368 }, // ¹
{ 7, 7, 7, 0, 12, 7, 1371 }, // º
{ 10, 8, 11, 1, 8, 10, 1378 }, // »
{ 14, 13, 14, 0, 12, 23, 1388 }, // ¼
{ 14, 13, 14, 0, 12, 23, 1411 }, // ½
{ 15, 13, 15, 0, 12, 25, 1434 }, // ¾
{ 9, 13, 10, 0, 9, 15, 1459 }, // ¿
{ 11, 15, 11, 0, 15, 21, 1474 }, // À
{ 11, 15, 11, 0, 15, 21, 1495 }, // Á
{ 11, 15, 11, 0, 15, 21, 1516 }, // Â
{ 11, 15, 11, 0, 15, 21, 1537 }, // Ã
{ 11, 15, 11, 0, 15, 21, 1558 }, // Ä
{ 11, 16, 11, 0, 16, 22, 1579 }, // Å
{ 14, 12, 14, 0, 12, 21, 1601 }, // Æ
{ 9, 16, 11, 1, 12, 18, 1622 }, // Ç
{ 8, 15, 9, 1, 15, 15, 1640 }, // È
{ 8, 15, 9, 1, 15, 15, 1655 }, // É
{ 8, 15, 9, 1, 15, 15, 1670 }, // Ê
{ 8, 15, 9, 1, 15, 15, 1685 }, // Ë
{ 3, 15, 4, 0, 15, 6, 1700 }, // Ì
{ 3, 15, 4, 1, 15, 6, 1706 }, // Í
{ 6, 15, 4, -1, 15, 12, 1712 }, // Î
{ 6, 15, 4, -1, 15, 12, 1724 }, // Ï
{ 11, 12, 11, 0, 12, 17, 1736 }, // Ð
{ 9, 15, 11, 1, 15, 17, 1753 }, // Ñ
{ 10, 16, 11, 1, 15, 20, 1770 }, // Ò
{ 10, 16, 11, 1, 15, 20, 1790 }, // Ó
{ 10, 16, 11, 1, 15, 20, 1810 }, // Ô
{ 10, 16, 11, 1, 15, 20, 1830 }, // Õ
{ 10, 16, 11, 1, 15, 20, 1850 }, // Ö
{ 8, 8, 10, 1, 10, 8, 1870 }, // ×
{ 10, 15, 11, 1, 13, 19, 1878 }, // Ø
{ 9, 16, 11, 1, 15, 18, 1897 }, // Ù
{ 9, 16, 11, 1, 15, 18, 1915 }, // Ú
{ 9, 16, 11, 1, 15, 18, 1933 }, // Û
{ 9, 16, 11, 1, 15, 18, 1951 }, // Ü
{ 10, 15, 10, 0, 15, 19, 1969 }, // Ý
{ 9, 12, 10, 1, 12, 14, 1988 }, // Þ
{ 9, 13, 10, 1, 12, 15, 2002 }, // ß
{ 10, 13, 10, 0, 12, 17, 2017 }, // à
{ 10, 13, 10, 0, 12, 17, 2034 }, // á
{ 10, 13, 10, 0, 12, 17, 2051 }, // â
{ 10, 13, 10, 0, 12, 17, 2068 }, // ã
{ 10, 13, 10, 0, 12, 17, 2085 }, // ä
{ 10, 14, 10, 0, 13, 18, 2102 }, // å
{ 15, 10, 15, 0, 9, 19, 2120 }, // æ
{ 10, 13, 10, 0, 9, 17, 2139 }, // ç
{ 9, 13, 10, 0, 12, 15, 2156 }, // è
{ 9, 13, 10, 0, 12, 15, 2171 }, // é
{ 9, 13, 10, 0, 12, 15, 2186 }, // ê
{ 9, 13, 10, 0, 12, 15, 2201 }, // ë
{ 3, 12, 4, 0, 12, 5, 2216 }, // ì
{ 4, 12, 4, 1, 12, 6, 2221 }, // í
{ 6, 12, 4, -1, 12, 9, 2227 }, // î
{ 6, 12, 4, -1, 12, 9, 2236 }, // ï
{ 10, 14, 10, 0, 13, 18, 2245 }, // ð
{ 8, 12, 10, 1, 12, 12, 2263 }, // ñ
{ 10, 13, 10, 0, 12, 17, 2275 }, // ò
{ 10, 13, 10, 0, 12, 17, 2292 }, // ó
{ 10, 13, 10, 0, 12, 17, 2309 }, // ô
{ 10, 13, 10, 0, 12, 17, 2326 }, // õ
{ 10, 13, 10, 0, 12, 17, 2343 }, // ö
{ 8, 8, 10, 1, 10, 8, 2360 }, // ÷
{ 10, 12, 10, 0, 10, 15, 2368 }, // ø
{ 8, 13, 10, 1, 12, 13, 2383 }, // ù
{ 8, 13, 10, 1, 12, 13, 2396 }, // ú
{ 8, 13, 10, 1, 12, 13, 2409 }, // û
{ 8, 13, 10, 1, 12, 13, 2422 }, // ü
{ 8, 16, 10, 1, 12, 16, 2435 }, // ý
{ 9, 16, 11, 1, 12, 18, 2451 }, // þ
{ 8, 16, 10, 1, 12, 16, 2469 }, // ÿ
{ 11, 14, 11, 0, 14, 20, 2485 }, // Ā
{ 10, 12, 10, 0, 11, 15, 2505 }, // ā
{ 11, 15, 11, 0, 15, 21, 2520 }, // Ă
{ 10, 13, 10, 0, 12, 17, 2541 }, // ă
{ 11, 15, 11, 0, 12, 21, 2558 }, // Ą
{ 10, 12, 10, 0, 9, 15, 2579 }, // ą
{ 9, 16, 11, 1, 15, 18, 2594 }, // Ć
{ 10, 13, 10, 0, 12, 17, 2612 }, // ć
{ 9, 16, 11, 1, 15, 18, 2629 }, // Ĉ
{ 10, 13, 10, 0, 12, 17, 2647 }, // ĉ
{ 9, 16, 11, 1, 15, 18, 2664 }, // Ċ
{ 10, 13, 10, 0, 12, 17, 2682 }, // ċ
{ 9, 16, 11, 1, 15, 18, 2699 }, // Č
{ 10, 13, 10, 0, 12, 17, 2717 }, // č
{ 11, 15, 11, 0, 15, 21, 2734 }, // Ď
{ 13, 13, 12, 0, 12, 22, 2755 }, // ď
{ 11, 12, 11, 0, 12, 17, 2777 }, // Đ
{ 11, 13, 11, 0, 12, 18, 2794 }, // đ
{ 8, 14, 9, 1, 14, 14, 2812 }, // Ē
{ 9, 12, 10, 0, 11, 14, 2826 }, // ē
{ 8, 15, 9, 1, 15, 15, 2840 }, // Ĕ
{ 9, 13, 10, 0, 12, 15, 2855 }, // ĕ
{ 8, 15, 9, 1, 15, 15, 2870 }, // Ė
{ 9, 13, 10, 0, 12, 15, 2885 }, // ė
{ 8, 15, 9, 1, 12, 15, 2900 }, // Ę
{ 9, 12, 10, 0, 9, 14, 2915 }, // ę
{ 8, 15, 9, 1, 15, 15, 2929 }, // Ě
{ 9, 13, 10, 0, 12, 15, 2944 }, // ě
{ 9, 16, 11, 1, 15, 18, 2959 }, // Ĝ
{ 10, 16, 11, 0, 12, 20, 2977 }, // ĝ
{ 9, 16, 11, 1, 15, 18, 2997 }, // Ğ
{ 10, 16, 11, 0, 12, 20, 3015 }, // ğ
{ 9, 16, 11, 1, 15, 18, 3035 }, // Ġ
{ 10, 16, 11, 0, 12, 20, 3053 }, // ġ
{ 9, 17, 11, 1, 12, 20, 3073 }, // Ģ
{ 10, 17, 11, 0, 13, 22, 3093 }, // ģ
{ 9, 15, 11, 1, 15, 17, 3115 }, // Ĥ
{ 10, 15, 10, -1, 15, 19, 3132 }, // ĥ
{ 11, 12, 11, 0, 12, 17, 3151 }, // Ħ
{ 9, 12, 10, 0, 12, 14, 3168 }, // ħ
{ 6, 15, 4, -1, 15, 12, 3182 }, // Ĩ
{ 6, 12, 4, -1, 12, 9, 3194 }, // ĩ
{ 6, 14, 4, -1, 14, 11, 3203 }, // Ī
{ 6, 11, 4, -1, 11, 9, 3214 }, // ī
{ 6, 15, 4, -1, 15, 12, 3223 }, // Ĭ
{ 6, 12, 4, -1, 12, 9, 3235 }, // ĭ
{ 3, 15, 4, 1, 12, 6, 3244 }, // Į
{ 3, 15, 4, 1, 12, 6, 3250 }, // į
{ 3, 15, 4, 1, 15, 6, 3256 }, // İ
{ 2, 9, 4, 1, 9, 3, 3262 }, // ı
{ 12, 13, 12, 0, 12, 20, 3265 }, // IJ
{ 7, 16, 8, 1, 12, 14, 3285 }, // ij
{ 10, 16, 10, 0, 15, 20, 3299 }, // Ĵ
{ 6, 16, 4, -1, 12, 12, 3319 }, // ĵ
{ 9, 17, 10, 1, 12, 20, 3331 }, // Ķ
{ 8, 17, 9, 1, 12, 17, 3351 }, // ķ
{ 8, 9, 9, 1, 9, 9, 3368 }, // ĸ
{ 8, 15, 9, 1, 15, 15, 3377 }, // Ĺ
{ 3, 15, 4, 1, 15, 6, 3392 }, // ĺ
{ 8, 17, 9, 1, 12, 17, 3398 }, // Ļ
{ 2, 17, 4, 1, 12, 5, 3415 }, // ļ
{ 8, 12, 9, 1, 12, 12, 3420 }, // Ľ
{ 5, 12, 5, 1, 12, 8, 3432 }, // ľ
{ 8, 12, 9, 1, 12, 12, 3440 }, // Ŀ
{ 6, 12, 7, 1, 12, 9, 3452 }, // ŀ
{ 10, 12, 10, 0, 12, 15, 3461 }, // Ł
{ 6, 12, 6, 0, 12, 9, 3476 }, // ł
{ 9, 15, 11, 1, 15, 17, 3485 }, // Ń
{ 8, 12, 10, 1, 12, 12, 3502 }, // ń
{ 9, 17, 11, 1, 12, 20, 3514 }, // Ņ
{ 8, 14, 10, 1, 9, 14, 3534 }, // ņ
{ 9, 15, 11, 1, 15, 17, 3548 }, // Ň
{ 8, 12, 10, 1, 12, 12, 3565 }, // ň
{ 8, 13, 10, 1, 13, 13, 3577 }, // ʼn
{ 9, 16, 11, 1, 12, 18, 3590 }, // Ŋ
{ 8, 13, 10, 1, 9, 13, 3608 }, // ŋ
{ 10, 15, 11, 1, 14, 19, 3621 }, // Ō
{ 10, 12, 10, 0, 11, 15, 3640 }, // ō
{ 10, 16, 11, 1, 15, 20, 3655 }, // Ŏ
{ 10, 13, 10, 0, 12, 17, 3675 }, // ŏ
{ 10, 16, 11, 1, 15, 20, 3692 }, // Ő
{ 10, 13, 10, 0, 12, 17, 3712 }, // ő
{ 13, 12, 14, 1, 12, 20, 3729 }, // Œ
{ 17, 10, 17, 0, 9, 22, 3749 }, // œ
{ 9, 15, 11, 1, 15, 17, 3771 }, // Ŕ
{ 5, 12, 6, 1, 12, 8, 3788 }, // ŕ
{ 9, 17, 11, 1, 12, 20, 3796 }, // Ŗ
{ 5, 14, 6, 1, 9, 9, 3816 }, // ŗ
{ 9, 15, 11, 1, 15, 17, 3825 }, // Ř
{ 7, 12, 6, 0, 12, 11, 3842 }, // ř
{ 10, 16, 10, 0, 15, 20, 3853 }, // Ś
{ 8, 13, 9, 0, 12, 13, 3873 }, // ś
{ 10, 16, 10, 0, 15, 20, 3886 }, // Ŝ
{ 8, 13, 9, 0, 12, 13, 3906 }, // ŝ
{ 10, 16, 10, 0, 12, 20, 3919 }, // Ş
{ 8, 13, 9, 0, 9, 13, 3939 }, // ş
{ 10, 16, 10, 0, 15, 20, 3952 }, // Š
{ 8, 13, 9, 0, 12, 13, 3972 }, // š
{ 10, 16, 10, 0, 12, 20, 3985 }, // Ţ
{ 7, 16, 8, 0, 12, 14, 4005 }, // ţ
{ 10, 15, 10, 0, 15, 19, 4019 }, // Ť
{ 8, 13, 8, 0, 13, 13, 4038 }, // ť
{ 10, 12, 10, 0, 12, 15, 4051 }, // Ŧ
{ 7, 12, 8, 0, 12, 11, 4066 }, // ŧ
{ 9, 16, 11, 1, 15, 18, 4077 }, // Ũ
{ 8, 13, 10, 1, 12, 13, 4095 }, // ũ
{ 9, 15, 11, 1, 14, 17, 4108 }, // Ū
{ 8, 12, 10, 1, 11, 12, 4125 }, // ū
{ 9, 16, 11, 1, 15, 18, 4137 }, // Ŭ
{ 8, 13, 10, 1, 12, 13, 4155 }, // ŭ
{ 9, 17, 11, 1, 16, 20, 4168 }, // Ů
{ 8, 14, 10, 1, 13, 14, 4188 }, // ů
{ 9, 16, 11, 1, 15, 18, 4202 }, // Ű
{ 8, 13, 10, 1, 12, 13, 4220 }, // ű
{ 9, 15, 11, 1, 12, 17, 4233 }, // Ų
{ 9, 12, 10, 1, 9, 14, 4250 }, // ų
{ 14, 15, 15, 0, 15, 27, 4264 }, // Ŵ
{ 13, 12, 13, 0, 12, 20, 4291 }, // ŵ
{ 10, 15, 10, 0, 15, 19, 4311 }, // Ŷ
{ 8, 16, 10, 1, 12, 16, 4330 }, // ŷ
{ 10, 15, 10, 0, 15, 19, 4346 }, // Ÿ
{ 9, 15, 10, 0, 15, 17, 4365 }, // Ź
{ 7, 12, 9, 1, 12, 11, 4382 }, // ź
{ 9, 15, 10, 0, 15, 17, 4393 }, // Ż
{ 7, 12, 9, 1, 12, 11, 4410 }, // ż
{ 9, 15, 10, 0, 15, 17, 4421 }, // Ž
{ 7, 12, 9, 1, 12, 11, 4438 }, // ž
{ 6, 12, 6, 0, 12, 9, 4449 }, // ſ
{ 4, 3, 0, 0, 12, 2, 4458 }, // ̀
{ 4, 3, 0, 0, 12, 2, 4460 }, // ́
{ 7, 3, 0, 0, 12, 3, 4462 }, // ̂
{ 7, 3, 0, 0, 12, 3, 4465 }, // ̃
{ 7, 2, 0, 0, 11, 2, 4468 }, // ̄
{ 6, 3, 0, 0, 12, 3, 4470 }, // ̆
{ 3, 3, 0, 0, 12, 2, 4473 }, // ̇
{ 7, 3, 0, 0, 12, 3, 4475 }, // ̈
{ 5, 4, 0, 0, 13, 3, 4478 }, // ̉
{ 5, 4, 0, 0, 13, 3, 4481 }, // ̊
{ 6, 3, 0, 0, 12, 3, 4484 }, // ̋
{ 7, 3, 0, 0, 12, 3, 4487 }, // ̌
{ 6, 3, 0, 0, 12, 3, 4490 }, // ̏
{ 6, 3, 0, 0, 12, 3, 4493 }, // ̑
{ 3, 4, 0, 0, 13, 2, 4496 }, // ̒
{ 4, 3, 0, 0, 10, 2, 4498 }, // ̛
{ 3, 3, 0, 0, -1, 2, 4500 }, // ̣
{ 7, 3, 0, 0, -1, 3, 4502 }, // ̤
{ 3, 4, 0, 0, -1, 2, 4505 }, // ̦
{ 5, 5, 0, 0, 1, 4, 4507 }, // ̧
{ 4, 4, 0, 0, 1, 2, 4511 }, // ̨
{ 6, 3, 0, 0, -1, 3, 4513 }, // ̮
{ 7, 2, 0, 0, -1, 2, 4516 }, // ̱
{ 7, 2, 0, 0, 11, 2, 4518 }, // ̵
{ 12, 2, 0, 0, 10, 3, 4520 }, // ̶
{ 8, 12, 0, 0, 10, 12, 4523 }, // ̷
{ 8, 15, 0, 0, 13, 15, 4535 }, // ̸
{ 0, 0, 10, 0, 0, 0, 4550 }, //
{ 0, 0, 4, 0, 0, 0, 4550 }, //
{ 0, 0, 3, 0, 0, 0, 4550 }, //
{ 0, 0, 1, 0, 0, 0, 4550 }, //
{ 0, 0, 0, 0, 0, 0, 4550 }, //
{ 6, 2, 8, 1, 5, 2, 4550 }, //
{ 9, 2, 10, 1, 5, 3, 4552 }, //
{ 8, 2, 10, 1, 5, 2, 4555 }, //
{ 13, 2, 15, 1, 5, 4, 4557 }, // —
{ 13, 2, 15, 1, 5, 4, 4561 }, // ―
{ 4, 6, 4, 0, 13, 3, 4565 }, //
{ 4, 6, 4, 0, 13, 3, 4568 }, //
{ 4, 6, 4, 0, 3, 3, 4571 }, //
{ 7, 6, 7, 0, 13, 6, 4574 }, // “
{ 7, 6, 7, 0, 13, 6, 4580 }, // ”
{ 7, 6, 7, 0, 3, 6, 4586 }, // „
{ 8, 12, 10, 1, 12, 12, 4592 }, // †
{ 8, 12, 10, 1, 12, 12, 4604 }, // ‡
{ 4, 5, 6, 1, 7, 3, 4616 }, // •
{ 11, 4, 11, 0, 3, 6, 4619 }, // …
{ 16, 13, 16, 0, 12, 26, 4625 }, // ‰
{ 3, 5, 3, 0, 12, 2, 4651 }, //
{ 6, 5, 6, 0, 12, 4, 4653 }, // ″
{ 7, 8, 8, 0, 8, 7, 4657 }, //
{ 6, 8, 8, 1, 8, 6, 4664 }, //
{ 11, 13, 11, 0, 12, 18, 4670 }, //
{ 11, 13, 12, 0, 12, 18, 4688 }, // ⁒
{ 9, 16, 11, 1, 14, 18, 4706 }, // ₡
{ 10, 12, 10, 0, 12, 15, 4724 }, // ₣
{ 10, 12, 10, 0, 12, 15, 4739 }, // ₤
{ 12, 12, 13, 0, 12, 18, 4754 }, // ₦
{ 12, 12, 12, 0, 12, 18, 4772 }, // ₧
{ 16, 12, 16, 0, 12, 24, 4790 }, // ₩
{ 11, 14, 12, 0, 12, 20, 4814 }, // ₫
{ 11, 13, 11, 0, 12, 18, 4834 }, // €
{ 11, 12, 11, 0, 12, 17, 4852 }, // ₭
{ 12, 12, 12, 0, 12, 18, 4869 }, // ₱
{ 9, 16, 11, 1, 14, 18, 4887 }, // ₲
{ 9, 16, 11, 1, 14, 18, 4905 }, // ₵
{ 10, 12, 11, 1, 12, 15, 4923 }, // ₹
{ 9, 12, 9, 0, 12, 14, 4938 }, // ₺
{ 10, 14, 12, 1, 14, 18, 4952 }, // ₼
{ 11, 12, 11, 0, 12, 17, 4970 }, // ₽
{ 10, 16, 12, 1, 14, 20, 4987 }, // ₿
{ 13, 10, 13, 0, 9, 17, 5007 }, // ←
{ 10, 12, 10, 0, 12, 15, 5024 }, // ↑
{ 13, 10, 13, 0, 9, 17, 5039 }, // →
{ 10, 13, 10, 0, 12, 17, 5056 }, // ↓
{ 13, 10, 13, 0, 9, 17, 5073 }, // ↔
{ 10, 13, 10, 0, 12, 17, 5090 }, // ↕
{ 9, 10, 10, 1, 9, 12, 5107 }, // ↖
{ 9, 10, 10, 0, 9, 12, 5119 }, // ↗
{ 9, 9, 10, 0, 9, 11, 5131 }, // ↘
{ 9, 9, 10, 1, 9, 11, 5142 }, // ↙
{ 9, 13, 10, 1, 12, 15, 5153 }, // ∂
{ 10, 12, 11, 0, 10, 15, 5168 }, // ∅
{ 10, 12, 10, 0, 12, 15, 5183 }, // ∆
{ 9, 16, 10, 1, 12, 18, 5198 }, // ∏
{ 10, 16, 10, 0, 12, 20, 5216 }, // ∑
{ 8, 2, 10, 1, 7, 2, 5236 }, //
{ 7, 17, 6, 0, 14, 15, 5238 }, //
{ 5, 5, 10, 3, 8, 4, 5253 }, // ∙
{ 10, 15, 10, 0, 15, 19, 5257 }, // √
{ 10, 6, 10, 0, 9, 8, 5276 }, // ∞
{ 6, 16, 10, 2, 12, 12, 5284 }, // ∫
{ 8, 7, 10, 1, 9, 7, 5296 }, // ≈
{ 8, 8, 10, 1, 10, 8, 5303 }, // ≠
{ 8, 10, 10, 1, 10, 10, 5311 }, // ≤
{ 8, 10, 10, 1, 10, 10, 5321 }, // ≥
};
static const EpdUnicodeInterval spacegroteskIntervals[] = {
{ 0xD, 0xD, 0x0 },
{ 0x20, 0x7E, 0x1 },
{ 0xA0, 0xFF, 0x60 },
{ 0x100, 0x17F, 0xC0 },
{ 0x300, 0x304, 0x140 },
{ 0x306, 0x30C, 0x145 },
{ 0x30F, 0x30F, 0x14C },
{ 0x311, 0x312, 0x14D },
{ 0x31B, 0x31B, 0x14F },
{ 0x323, 0x324, 0x150 },
{ 0x326, 0x328, 0x152 },
{ 0x32E, 0x32E, 0x155 },
{ 0x331, 0x331, 0x156 },
{ 0x335, 0x338, 0x157 },
{ 0x2007, 0x200B, 0x15B },
{ 0x2010, 0x2010, 0x160 },
{ 0x2012, 0x2015, 0x161 },
{ 0x2018, 0x201A, 0x165 },
{ 0x201C, 0x201E, 0x168 },
{ 0x2020, 0x2022, 0x16B },
{ 0x2026, 0x2026, 0x16E },
{ 0x2030, 0x2030, 0x16F },
{ 0x2032, 0x2033, 0x170 },
{ 0x2039, 0x203A, 0x172 },
{ 0x2044, 0x2044, 0x174 },
{ 0x2052, 0x2052, 0x175 },
{ 0x20A1, 0x20A1, 0x176 },
{ 0x20A3, 0x20A4, 0x177 },
{ 0x20A6, 0x20A7, 0x179 },
{ 0x20A9, 0x20A9, 0x17B },
{ 0x20AB, 0x20AD, 0x17C },
{ 0x20B1, 0x20B2, 0x17F },
{ 0x20B5, 0x20B5, 0x181 },
{ 0x20B9, 0x20BA, 0x182 },
{ 0x20BC, 0x20BD, 0x184 },
{ 0x20BF, 0x20BF, 0x186 },
{ 0x2190, 0x2199, 0x187 },
{ 0x2202, 0x2202, 0x191 },
{ 0x2205, 0x2206, 0x192 },
{ 0x220F, 0x220F, 0x194 },
{ 0x2211, 0x2212, 0x195 },
{ 0x2215, 0x2215, 0x197 },
{ 0x2219, 0x221A, 0x198 },
{ 0x221E, 0x221E, 0x19A },
{ 0x222B, 0x222B, 0x19B },
{ 0x2248, 0x2248, 0x19C },
{ 0x2260, 0x2260, 0x19D },
{ 0x2264, 0x2265, 0x19E },
};
static const EpdFontData spacegrotesk = {
spacegroteskBitmaps,
spacegroteskGlyphs,
spacegroteskIntervals,
48,
21,
17,
-5,
false,
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,137 @@
#!/bin/bash
set -e
cd "$(dirname "$0")/../builtinFonts"
echo "// The contents of this file are generated by ./lib/EpdFont/scripts/build-font-ids.sh"
echo "#pragma once"
echo ""
echo "#define ALEO_12_FONT_ID ($(
ruby -rdigest -e 'puts [
"./aleo_12_regular.h",
"./aleo_12_bold.h",
"./aleo_12_bolditalic.h",
"./aleo_12_italic.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define ALEO_14_FONT_ID ($(
ruby -rdigest -e 'puts [
"./aleo_14_regular.h",
"./aleo_14_bold.h",
"./aleo_14_bolditalic.h",
"./aleo_14_italic.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define ALEO_16_FONT_ID ($(
ruby -rdigest -e 'puts [
"./aleo_16_regular.h",
"./aleo_16_bold.h",
"./aleo_16_bolditalic.h",
"./aleo_16_italic.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define ALEO_18_FONT_ID ($(
ruby -rdigest -e 'puts [
"./aleo_18_regular.h",
"./aleo_18_bold.h",
"./aleo_18_bolditalic.h",
"./aleo_18_italic.h",
].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 ($(
ruby -rdigest -e 'puts [
"./opendyslexic_8_regular.h",
"./opendyslexic_8_bold.h",
"./opendyslexic_8_bolditalic.h",
"./opendyslexic_8_italic.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define OPENDYSLEXIC_10_FONT_ID ($(
ruby -rdigest -e 'puts [
"./opendyslexic_10_regular.h",
"./opendyslexic_10_bold.h",
"./opendyslexic_10_bolditalic.h",
"./opendyslexic_10_italic.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define OPENDYSLEXIC_12_FONT_ID ($(
ruby -rdigest -e 'puts [
"./opendyslexic_12_regular.h",
"./opendyslexic_12_bold.h",
"./opendyslexic_12_bolditalic.h",
"./opendyslexic_12_italic.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define OPENDYSLEXIC_14_FONT_ID ($(
ruby -rdigest -e 'puts [
"./opendyslexic_14_regular.h",
"./opendyslexic_14_bold.h",
"./opendyslexic_14_bolditalic.h",
"./opendyslexic_14_italic.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define UI_10_FONT_ID ($(
ruby -rdigest -e 'puts [
"./ubuntu_10_regular.h",
"./ubuntu_10_bold.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define UI_12_FONT_ID ($(
ruby -rdigest -e 'puts [
"./ubuntu_12_regular.h",
"./ubuntu_12_bold.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"
echo "#define SMALL_FONT_ID ($(
ruby -rdigest -e 'puts [
"./spacegrotesk.h",
].map{|f| Digest::SHA256.hexdigest(File.read(f)).to_i(16) }.sum % (2 ** 32) - (2 ** 31)'
))"

View File

@ -0,0 +1,55 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
READER_FONT_STYLES=("Regular" "Italic" "Bold" "BoldItalic")
ALEO_FONT_SIZES=(12 14 16 18)
NOTOSANS_FONT_SIZES=(12 14 16 18)
OPENDYSLEXIC_FONT_SIZES=(8 10 12 14)
for size in ${ALEO_FONT_SIZES[@]}; do
for style in ${READER_FONT_STYLES[@]}; do
font_name="aleo_${size}_$(echo $style | tr '[:upper:]' '[:lower:]')"
font_path="../builtinFonts/source/Aleo/Aleo-${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 ${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 style in ${READER_FONT_STYLES[@]}; do
font_name="opendyslexic_${size}_$(echo $style | tr '[:upper:]' '[:lower:]')"
font_path="../builtinFonts/source/OpenDyslexic/OpenDyslexic-${style}.otf"
output_path="../builtinFonts/${font_name}.h"
python fontconvert.py $font_name $size $font_path --2bit > $output_path
echo "Generated $output_path"
done
done
UI_FONT_SIZES=(10 12)
UI_FONT_STYLES=("Regular" "Bold")
for size in ${UI_FONT_SIZES[@]}; do
for style in ${UI_FONT_STYLES[@]}; do
font_name="ubuntu_${size}_$(echo $style | tr '[:upper:]' '[:lower:]')"
font_path="../builtinFonts/source/Ubuntu/Ubuntu-${style}.ttf"
output_path="../builtinFonts/${font_name}.h"
python fontconvert.py $font_name $size $font_path > $output_path
echo "Generated $output_path"
done
done
python fontconvert.py spacegrotesk 8 ../builtinFonts/source/SpaceGrotesk/SpaceGrotesk-Regular.ttf > ../builtinFonts/spacegrotesk.h

View File

@ -3,7 +3,7 @@
#include <FsHelpers.h>
#include <HardwareSerial.h>
#include <JpegToBmpConverter.h>
#include <SD.h>
#include <SDCardManager.h>
#include <ZipFile.h>
#include "Epub/parsers/ContainerParser.h"
@ -72,8 +72,7 @@ bool Epub::parseContentOpf(BookMetadataCache::BookMetadata& bookMetadata) {
// Grab data from opfParser into epub
bookMetadata.title = opfParser.title;
// TODO: Parse author
bookMetadata.author = "";
bookMetadata.author = opfParser.author;
bookMetadata.coverItemHref = opfParser.coverItemHref;
bookMetadata.textReferenceHref = opfParser.textReferenceHref;
@ -95,13 +94,13 @@ bool Epub::parseTocNcxFile() const {
Serial.printf("[%lu] [EBP] Parsing toc ncx file: %s\n", millis(), tocNcxItem.c_str());
const auto tmpNcxPath = getCachePath() + "/toc.ncx";
File tempNcxFile;
if (!FsHelpers::openFileForWrite("EBP", tmpNcxPath, tempNcxFile)) {
FsFile tempNcxFile;
if (!SdMan.openFileForWrite("EBP", tmpNcxPath, tempNcxFile)) {
return false;
}
readItemContentsToStream(tocNcxItem, tempNcxFile, 1024);
tempNcxFile.close();
if (!FsHelpers::openFileForRead("EBP", tmpNcxPath, tempNcxFile)) {
if (!SdMan.openFileForRead("EBP", tmpNcxPath, tempNcxFile)) {
return false;
}
const auto ncxSize = tempNcxFile.size();
@ -133,7 +132,7 @@ bool Epub::parseTocNcxFile() const {
free(ncxBuffer);
tempNcxFile.close();
SD.remove(tmpNcxPath.c_str());
SdMan.remove(tmpNcxPath.c_str());
Serial.printf("[%lu] [EBP] Parsed TOC items\n", millis());
return true;
@ -219,12 +218,12 @@ bool Epub::load() {
}
bool Epub::clearCache() const {
if (!SD.exists(cachePath.c_str())) {
if (!SdMan.exists(cachePath.c_str())) {
Serial.printf("[%lu] [EPB] Cache does not exist, no action needed\n", millis());
return true;
}
if (!FsHelpers::removeDir(cachePath.c_str())) {
if (!SdMan.removeDir(cachePath.c_str())) {
Serial.printf("[%lu] [EPB] Failed to clear cache\n", millis());
return false;
}
@ -234,17 +233,11 @@ bool Epub::clearCache() const {
}
void Epub::setupCacheDir() const {
if (SD.exists(cachePath.c_str())) {
if (SdMan.exists(cachePath.c_str())) {
return;
}
// Loop over each segment of the cache path and create directories as needed
for (size_t i = 1; i < cachePath.length(); i++) {
if (cachePath[i] == '/') {
SD.mkdir(cachePath.substr(0, i).c_str());
}
}
SD.mkdir(cachePath.c_str());
SdMan.mkdir(cachePath.c_str());
}
const std::string& Epub::getCachePath() const { return cachePath; }
@ -260,11 +253,20 @@ const std::string& Epub::getTitle() const {
return bookMetadataCache->coreMetadata.title;
}
const std::string& Epub::getAuthor() const {
static std::string blank;
if (!bookMetadataCache || !bookMetadataCache->isLoaded()) {
return blank;
}
return bookMetadataCache->coreMetadata.author;
}
std::string Epub::getCoverBmpPath() const { return cachePath + "/cover.bmp"; }
bool Epub::generateCoverBmp() const {
// Already generated, return true
if (SD.exists(getCoverBmpPath().c_str())) {
if (SdMan.exists(getCoverBmpPath().c_str())) {
return true;
}
@ -284,30 +286,30 @@ bool Epub::generateCoverBmp() const {
Serial.printf("[%lu] [EBP] Generating BMP from JPG cover image\n", millis());
const auto coverJpgTempPath = getCachePath() + "/.cover.jpg";
File coverJpg;
if (!FsHelpers::openFileForWrite("EBP", coverJpgTempPath, coverJpg)) {
FsFile coverJpg;
if (!SdMan.openFileForWrite("EBP", coverJpgTempPath, coverJpg)) {
return false;
}
readItemContentsToStream(coverImageHref, coverJpg, 1024);
coverJpg.close();
if (!FsHelpers::openFileForRead("EBP", coverJpgTempPath, coverJpg)) {
if (!SdMan.openFileForRead("EBP", coverJpgTempPath, coverJpg)) {
return false;
}
File coverBmp;
if (!FsHelpers::openFileForWrite("EBP", getCoverBmpPath(), coverBmp)) {
FsFile coverBmp;
if (!SdMan.openFileForWrite("EBP", getCoverBmpPath(), coverBmp)) {
coverJpg.close();
return false;
}
const bool success = JpegToBmpConverter::jpegFileToBmpStream(coverJpg, coverBmp);
coverJpg.close();
coverBmp.close();
SD.remove(coverJpgTempPath.c_str());
SdMan.remove(coverJpgTempPath.c_str());
if (!success) {
Serial.printf("[%lu] [EBP] Failed to generate BMP from JPG cover image\n", millis());
SD.remove(getCoverBmpPath().c_str());
SdMan.remove(getCoverBmpPath().c_str());
}
Serial.printf("[%lu] [EBP] Generated BMP from JPG cover image, success: %s\n", millis(), success ? "yes" : "no");
return success;
@ -319,6 +321,11 @@ bool Epub::generateCoverBmp() const {
}
uint8_t* Epub::readItemContentsToBytes(const std::string& itemHref, size_t* size, const bool trailingNullByte) const {
if (itemHref.empty()) {
Serial.printf("[%lu] [EBP] Failed to read item, empty href\n", millis());
return nullptr;
}
const std::string path = FsHelpers::normalisePath(itemHref);
const auto content = ZipFile(filepath).readFileToMemory(path.c_str(), size, trailingNullByte);
@ -331,6 +338,11 @@ uint8_t* Epub::readItemContentsToBytes(const std::string& itemHref, size_t* size
}
bool Epub::readItemContentsToStream(const std::string& itemHref, Print& out, const size_t chunkSize) const {
if (itemHref.empty()) {
Serial.printf("[%lu] [EBP] Failed to read item, empty href\n", millis());
return false;
}
const std::string path = FsHelpers::normalisePath(itemHref);
return ZipFile(filepath).readFileToStream(path.c_str(), out, chunkSize);
}

View File

@ -1,5 +1,7 @@
#pragma once
#include <Print.h>
#include <memory>
#include <string>
#include <unordered_map>
@ -38,6 +40,7 @@ class Epub {
const std::string& getCachePath() const;
const std::string& getPath() const;
const std::string& getTitle() const;
const std::string& getAuthor() const;
std::string getCoverBmpPath() const;
bool generateCoverBmp() const;
uint8_t* readItemContentsToBytes(const std::string& itemHref, size_t* size = nullptr,

View File

@ -1,7 +1,6 @@
#include "BookMetadataCache.h"
#include <HardwareSerial.h>
#include <SD.h>
#include <Serialization.h>
#include <ZipFile.h>
@ -10,7 +9,7 @@
#include "FsHelpers.h"
namespace {
constexpr uint8_t BOOK_CACHE_VERSION = 1;
constexpr uint8_t BOOK_CACHE_VERSION = 3;
constexpr char bookBinFile[] = "/book.bin";
constexpr char tmpSpineBinFile[] = "/spine.bin.tmp";
constexpr char tmpTocBinFile[] = "/toc.bin.tmp";
@ -30,7 +29,7 @@ bool BookMetadataCache::beginContentOpfPass() {
Serial.printf("[%lu] [BMC] Beginning content opf pass\n", millis());
// Open spine file for writing
return FsHelpers::openFileForWrite("BMC", cachePath + tmpSpineBinFile, spineFile);
return SdMan.openFileForWrite("BMC", cachePath + tmpSpineBinFile, spineFile);
}
bool BookMetadataCache::endContentOpfPass() {
@ -42,10 +41,10 @@ bool BookMetadataCache::beginTocPass() {
Serial.printf("[%lu] [BMC] Beginning toc pass\n", millis());
// Open spine file for reading
if (!FsHelpers::openFileForRead("BMC", cachePath + tmpSpineBinFile, spineFile)) {
if (!SdMan.openFileForRead("BMC", cachePath + tmpSpineBinFile, spineFile)) {
return false;
}
if (!FsHelpers::openFileForWrite("BMC", cachePath + tmpTocBinFile, tocFile)) {
if (!SdMan.openFileForWrite("BMC", cachePath + tmpTocBinFile, tocFile)) {
spineFile.close();
return false;
}
@ -71,27 +70,27 @@ bool BookMetadataCache::endWrite() {
bool BookMetadataCache::buildBookBin(const std::string& epubPath, const BookMetadata& metadata) {
// Open all three files, writing to meta, reading from spine and toc
if (!FsHelpers::openFileForWrite("BMC", cachePath + bookBinFile, bookFile)) {
if (!SdMan.openFileForWrite("BMC", cachePath + bookBinFile, bookFile)) {
return false;
}
if (!FsHelpers::openFileForRead("BMC", cachePath + tmpSpineBinFile, spineFile)) {
if (!SdMan.openFileForRead("BMC", cachePath + tmpSpineBinFile, spineFile)) {
bookFile.close();
return false;
}
if (!FsHelpers::openFileForRead("BMC", cachePath + tmpTocBinFile, tocFile)) {
if (!SdMan.openFileForRead("BMC", cachePath + tmpTocBinFile, tocFile)) {
bookFile.close();
spineFile.close();
return false;
}
constexpr size_t headerASize =
sizeof(BOOK_CACHE_VERSION) + /* LUT Offset */ sizeof(size_t) + sizeof(spineCount) + sizeof(tocCount);
const size_t metadataSize = metadata.title.size() + metadata.author.size() + metadata.coverItemHref.size() +
metadata.textReferenceHref.size() + sizeof(uint32_t) * 4;
const size_t lutSize = sizeof(size_t) * spineCount + sizeof(size_t) * tocCount;
const size_t lutOffset = headerASize + metadataSize;
constexpr uint32_t headerASize =
sizeof(BOOK_CACHE_VERSION) + /* LUT Offset */ sizeof(uint32_t) + sizeof(spineCount) + sizeof(tocCount);
const uint32_t metadataSize = metadata.title.size() + metadata.author.size() + metadata.coverItemHref.size() +
metadata.textReferenceHref.size() + sizeof(uint32_t) * 4;
const uint32_t lutSize = sizeof(uint32_t) * spineCount + sizeof(uint32_t) * tocCount;
const uint32_t lutOffset = headerASize + metadataSize;
// Header A
serialization::writePod(bookFile, BOOK_CACHE_VERSION);
@ -107,7 +106,7 @@ bool BookMetadataCache::buildBookBin(const std::string& epubPath, const BookMeta
// Loop through spine entries, writing LUT positions
spineFile.seek(0);
for (int i = 0; i < spineCount; i++) {
auto pos = spineFile.position();
uint32_t pos = spineFile.position();
auto spineEntry = readSpineEntry(spineFile);
serialization::writePod(bookFile, pos + lutOffset + lutSize);
}
@ -115,9 +114,9 @@ bool BookMetadataCache::buildBookBin(const std::string& epubPath, const BookMeta
// Loop through toc entries, writing LUT positions
tocFile.seek(0);
for (int i = 0; i < tocCount; i++) {
auto pos = tocFile.position();
uint32_t pos = tocFile.position();
auto tocEntry = readTocEntry(tocFile);
serialization::writePod(bookFile, pos + lutOffset + lutSize + spineFile.position());
serialization::writePod(bookFile, pos + lutOffset + lutSize + static_cast<uint32_t>(spineFile.position()));
}
// LUTs complete
@ -143,8 +142,9 @@ bool BookMetadataCache::buildBookBin(const std::string& epubPath, const BookMeta
zip.close();
return false;
}
size_t cumSize = 0;
uint32_t cumSize = 0;
spineFile.seek(0);
int lastSpineTocIndex = -1;
for (int i = 0; i < spineCount; i++) {
auto spineEntry = readSpineEntry(spineFile);
@ -160,9 +160,12 @@ bool BookMetadataCache::buildBookBin(const std::string& epubPath, const BookMeta
// Not a huge deal if we don't fine a TOC entry for the spine entry, this is expected behaviour for EPUBs
// Logging here is for debugging
if (spineEntry.tocIndex == -1) {
Serial.printf("[%lu] [BMC] Warning: Could not find TOC entry for spine item %d: %s\n", millis(), i,
spineEntry.href.c_str());
Serial.printf(
"[%lu] [BMC] Warning: Could not find TOC entry for spine item %d: %s, using title from last section\n",
millis(), i, spineEntry.href.c_str());
spineEntry.tocIndex = lastSpineTocIndex;
}
lastSpineTocIndex = spineEntry.tocIndex;
// Calculate size for cumulative size
size_t itemSize = 0;
@ -196,25 +199,25 @@ bool BookMetadataCache::buildBookBin(const std::string& epubPath, const BookMeta
}
bool BookMetadataCache::cleanupTmpFiles() const {
if (SD.exists((cachePath + tmpSpineBinFile).c_str())) {
SD.remove((cachePath + tmpSpineBinFile).c_str());
if (SdMan.exists((cachePath + tmpSpineBinFile).c_str())) {
SdMan.remove((cachePath + tmpSpineBinFile).c_str());
}
if (SD.exists((cachePath + tmpTocBinFile).c_str())) {
SD.remove((cachePath + tmpTocBinFile).c_str());
if (SdMan.exists((cachePath + tmpTocBinFile).c_str())) {
SdMan.remove((cachePath + tmpTocBinFile).c_str());
}
return true;
}
size_t BookMetadataCache::writeSpineEntry(File& file, const SpineEntry& entry) const {
const auto pos = file.position();
uint32_t BookMetadataCache::writeSpineEntry(FsFile& file, const SpineEntry& entry) const {
const uint32_t pos = file.position();
serialization::writeString(file, entry.href);
serialization::writePod(file, entry.cumulativeSize);
serialization::writePod(file, entry.tocIndex);
return pos;
}
size_t BookMetadataCache::writeTocEntry(File& file, const TocEntry& entry) const {
const auto pos = file.position();
uint32_t BookMetadataCache::writeTocEntry(FsFile& file, const TocEntry& entry) const {
const uint32_t pos = file.position();
serialization::writeString(file, entry.title);
serialization::writeString(file, entry.href);
serialization::writeString(file, entry.anchor);
@ -268,7 +271,7 @@ void BookMetadataCache::createTocEntry(const std::string& title, const std::stri
/* ============= READING / LOADING FUNCTIONS ================ */
bool BookMetadataCache::load() {
if (!FsHelpers::openFileForRead("BMC", cachePath + bookBinFile, bookFile)) {
if (!SdMan.openFileForRead("BMC", cachePath + bookBinFile, bookFile)) {
return false;
}
@ -306,8 +309,8 @@ BookMetadataCache::SpineEntry BookMetadataCache::getSpineEntry(const int index)
}
// Seek to spine LUT item, read from LUT and get out data
bookFile.seek(lutOffset + sizeof(size_t) * index);
size_t spineEntryPos;
bookFile.seek(lutOffset + sizeof(uint32_t) * index);
uint32_t spineEntryPos;
serialization::readPod(bookFile, spineEntryPos);
bookFile.seek(spineEntryPos);
return readSpineEntry(bookFile);
@ -325,14 +328,14 @@ BookMetadataCache::TocEntry BookMetadataCache::getTocEntry(const int index) {
}
// Seek to TOC LUT item, read from LUT and get out data
bookFile.seek(lutOffset + sizeof(size_t) * spineCount + sizeof(size_t) * index);
size_t tocEntryPos;
bookFile.seek(lutOffset + sizeof(uint32_t) * spineCount + sizeof(uint32_t) * index);
uint32_t tocEntryPos;
serialization::readPod(bookFile, tocEntryPos);
bookFile.seek(tocEntryPos);
return readTocEntry(bookFile);
}
BookMetadataCache::SpineEntry BookMetadataCache::readSpineEntry(File& file) const {
BookMetadataCache::SpineEntry BookMetadataCache::readSpineEntry(FsFile& file) const {
SpineEntry entry;
serialization::readString(file, entry.href);
serialization::readPod(file, entry.cumulativeSize);
@ -340,7 +343,7 @@ BookMetadataCache::SpineEntry BookMetadataCache::readSpineEntry(File& file) cons
return entry;
}
BookMetadataCache::TocEntry BookMetadataCache::readTocEntry(File& file) const {
BookMetadataCache::TocEntry BookMetadataCache::readTocEntry(FsFile& file) const {
TocEntry entry;
serialization::readString(file, entry.title);
serialization::readString(file, entry.href);

View File

@ -1,6 +1,6 @@
#pragma once
#include <SD.h>
#include <SDCardManager.h>
#include <string>
@ -47,15 +47,15 @@ class BookMetadataCache {
bool loaded;
bool buildMode;
File bookFile;
FsFile bookFile;
// Temp file handles during build
File spineFile;
File tocFile;
FsFile spineFile;
FsFile tocFile;
size_t writeSpineEntry(File& file, const SpineEntry& entry) const;
size_t writeTocEntry(File& file, const TocEntry& entry) const;
SpineEntry readSpineEntry(File& file) const;
TocEntry readTocEntry(File& file) const;
uint32_t writeSpineEntry(FsFile& file, const SpineEntry& entry) const;
uint32_t writeTocEntry(FsFile& file, const TocEntry& entry) const;
SpineEntry readSpineEntry(FsFile& file) const;
TocEntry readTocEntry(FsFile& file) const;
public:
BookMetadata coreMetadata;

View File

@ -7,7 +7,7 @@ void PageLine::render(GfxRenderer& renderer, const int fontId, const int xOffset
block->render(renderer, fontId, xPos + xOffset, yPos + yOffset);
}
bool PageLine::serialize(File& file) {
bool PageLine::serialize(FsFile& file) {
serialization::writePod(file, xPos);
serialization::writePod(file, yPos);
@ -15,7 +15,7 @@ bool PageLine::serialize(File& file) {
return block->serialize(file);
}
std::unique_ptr<PageLine> PageLine::deserialize(File& file) {
std::unique_ptr<PageLine> PageLine::deserialize(FsFile& file) {
int16_t xPos;
int16_t yPos;
serialization::readPod(file, xPos);
@ -31,7 +31,7 @@ void Page::render(GfxRenderer& renderer, const int fontId, const int xOffset, co
}
}
bool Page::serialize(File& file) const {
bool Page::serialize(FsFile& file) const {
const uint32_t count = elements.size();
serialization::writePod(file, count);
@ -46,7 +46,7 @@ bool Page::serialize(File& file) const {
return true;
}
std::unique_ptr<Page> Page::deserialize(File& file) {
std::unique_ptr<Page> Page::deserialize(FsFile& file) {
auto page = std::unique_ptr<Page>(new Page());
uint32_t count;

View File

@ -1,5 +1,5 @@
#pragma once
#include <FS.h>
#include <SdFat.h>
#include <utility>
#include <vector>
@ -18,7 +18,7 @@ class PageElement {
explicit PageElement(const int16_t xPos, const int16_t yPos) : xPos(xPos), yPos(yPos) {}
virtual ~PageElement() = default;
virtual void render(GfxRenderer& renderer, int fontId, int xOffset, int yOffset) = 0;
virtual bool serialize(File& file) = 0;
virtual bool serialize(FsFile& file) = 0;
};
// a line from a block element
@ -29,8 +29,8 @@ class PageLine final : public PageElement {
PageLine(std::shared_ptr<TextBlock> block, const int16_t xPos, const int16_t yPos)
: PageElement(xPos, yPos), block(std::move(block)) {}
void render(GfxRenderer& renderer, int fontId, int xOffset, int yOffset) override;
bool serialize(File& file) override;
static std::unique_ptr<PageLine> deserialize(File& file);
bool serialize(FsFile& file) override;
static std::unique_ptr<PageLine> deserialize(FsFile& file);
};
class Page {
@ -38,6 +38,6 @@ class Page {
// the list of block index and line numbers on this page
std::vector<std::shared_ptr<PageElement>> elements;
void render(GfxRenderer& renderer, int fontId, int xOffset, int yOffset) const;
bool serialize(File& file) const;
static std::unique_ptr<Page> deserialize(File& file);
bool serialize(FsFile& file) const;
static std::unique_ptr<Page> deserialize(FsFile& file);
};

View File

@ -1,7 +1,6 @@
#include "Section.h"
#include <FsHelpers.h>
#include <SD.h>
#include <SDCardManager.h>
#include <Serialization.h>
#include "Page.h"
@ -9,17 +8,17 @@
namespace {
constexpr uint8_t SECTION_FILE_VERSION = 7;
constexpr size_t HEADER_SIZE = sizeof(uint8_t) + sizeof(int) + sizeof(float) + sizeof(bool) + sizeof(int) +
sizeof(int) + sizeof(int) + sizeof(size_t);
constexpr uint32_t HEADER_SIZE = sizeof(uint8_t) + sizeof(int) + sizeof(float) + sizeof(bool) + sizeof(int) +
sizeof(int) + sizeof(int) + sizeof(uint32_t);
} // namespace
size_t Section::onPageComplete(std::unique_ptr<Page> page) {
uint32_t Section::onPageComplete(std::unique_ptr<Page> page) {
if (!file) {
Serial.printf("[%lu] [SCT] File not open for writing page %d\n", millis(), pageCount);
return 0;
}
const auto position = file.position();
const uint32_t position = file.position();
if (!page->serialize(file)) {
Serial.printf("[%lu] [SCT] Failed to serialize page %d\n", millis(), pageCount);
return 0;
@ -38,7 +37,7 @@ void Section::writeSectionFileHeader(const int fontId, const float lineCompressi
}
static_assert(HEADER_SIZE == sizeof(SECTION_FILE_VERSION) + sizeof(fontId) + sizeof(lineCompression) +
sizeof(extraParagraphSpacing) + sizeof(viewportWidth) + sizeof(viewportHeight) +
sizeof(pageCount) + sizeof(size_t),
sizeof(pageCount) + sizeof(uint32_t),
"Header size mismatch");
serialization::writePod(file, SECTION_FILE_VERSION);
serialization::writePod(file, fontId);
@ -47,12 +46,12 @@ void Section::writeSectionFileHeader(const int fontId, const float lineCompressi
serialization::writePod(file, viewportWidth);
serialization::writePod(file, viewportHeight);
serialization::writePod(file, pageCount); // Placeholder for page count (will be initially 0 when written)
serialization::writePod(file, static_cast<size_t>(0)); // Placeholder for LUT offset
serialization::writePod(file, static_cast<uint32_t>(0)); // Placeholder for LUT offset
}
bool Section::loadSectionFile(const int fontId, const float lineCompression, const bool extraParagraphSpacing,
const int viewportWidth, const int viewportHeight) {
if (!FsHelpers::openFileForRead("SCT", filePath, file)) {
if (!SdMan.openFileForRead("SCT", filePath, file)) {
return false;
}
@ -94,12 +93,12 @@ bool Section::loadSectionFile(const int fontId, const float lineCompression, con
// Your updated class method (assuming you are using the 'SD' object, which is a wrapper for a specific filesystem)
bool Section::clearCache() const {
if (!SD.exists(filePath.c_str())) {
if (!SdMan.exists(filePath.c_str())) {
Serial.printf("[%lu] [SCT] Cache does not exist, no action needed\n", millis());
return true;
}
if (!SD.remove(filePath.c_str())) {
if (!SdMan.remove(filePath.c_str())) {
Serial.printf("[%lu] [SCT] Failed to clear cache\n", millis());
return false;
}
@ -112,13 +111,19 @@ bool Section::createSectionFile(const int fontId, const float lineCompression, c
const int viewportWidth, const int viewportHeight,
const std::function<void()>& progressSetupFn,
const std::function<void(int)>& progressFn) {
constexpr size_t MIN_SIZE_FOR_PROGRESS = 50 * 1024; // 50KB
constexpr uint32_t MIN_SIZE_FOR_PROGRESS = 50 * 1024; // 50KB
const auto localPath = epub->getSpineItem(spineIndex).href;
const auto tmpHtmlPath = epub->getCachePath() + "/.tmp_" + std::to_string(spineIndex) + ".html";
// Create cache directory if it doesn't exist
{
const auto sectionsDir = epub->getCachePath() + "/sections";
SdMan.mkdir(sectionsDir.c_str());
}
// Retry logic for SD card timing issues
bool success = false;
size_t fileSize = 0;
uint32_t fileSize = 0;
for (int attempt = 0; attempt < 3 && !success; attempt++) {
if (attempt > 0) {
Serial.printf("[%lu] [SCT] Retrying stream (attempt %d)...\n", millis(), attempt + 1);
@ -126,12 +131,12 @@ bool Section::createSectionFile(const int fontId, const float lineCompression, c
}
// Remove any incomplete file from previous attempt before retrying
if (SD.exists(tmpHtmlPath.c_str())) {
SD.remove(tmpHtmlPath.c_str());
if (SdMan.exists(tmpHtmlPath.c_str())) {
SdMan.remove(tmpHtmlPath.c_str());
}
File tmpHtml;
if (!FsHelpers::openFileForWrite("SCT", tmpHtmlPath, tmpHtml)) {
FsFile tmpHtml;
if (!SdMan.openFileForWrite("SCT", tmpHtmlPath, tmpHtml)) {
continue;
}
success = epub->readItemContentsToStream(localPath, tmpHtml, 1024);
@ -139,8 +144,8 @@ bool Section::createSectionFile(const int fontId, const float lineCompression, c
tmpHtml.close();
// If streaming failed, remove the incomplete file immediately
if (!success && SD.exists(tmpHtmlPath.c_str())) {
SD.remove(tmpHtmlPath.c_str());
if (!success && SdMan.exists(tmpHtmlPath.c_str())) {
SdMan.remove(tmpHtmlPath.c_str());
Serial.printf("[%lu] [SCT] Removed incomplete temp file after failed attempt\n", millis());
}
}
@ -157,11 +162,11 @@ bool Section::createSectionFile(const int fontId, const float lineCompression, c
progressSetupFn();
}
if (!FsHelpers::openFileForWrite("SCT", filePath, file)) {
if (!SdMan.openFileForWrite("SCT", filePath, file)) {
return false;
}
writeSectionFileHeader(fontId, lineCompression, extraParagraphSpacing, viewportWidth, viewportHeight);
std::vector<size_t> lut = {};
std::vector<uint32_t> lut = {};
ChapterHtmlSlimParser visitor(
tmpHtmlPath, renderer, fontId, lineCompression, extraParagraphSpacing, viewportWidth, viewportHeight,
@ -169,18 +174,18 @@ bool Section::createSectionFile(const int fontId, const float lineCompression, c
progressFn);
success = visitor.parseAndBuildPages();
SD.remove(tmpHtmlPath.c_str());
SdMan.remove(tmpHtmlPath.c_str());
if (!success) {
Serial.printf("[%lu] [SCT] Failed to parse XML and build pages\n", millis());
file.close();
SD.remove(filePath.c_str());
SdMan.remove(filePath.c_str());
return false;
}
const auto lutOffset = file.position();
const uint32_t lutOffset = file.position();
bool hasFailedLutRecords = false;
// Write LUT
for (const auto& pos : lut) {
for (const uint32_t& pos : lut) {
if (pos == 0) {
hasFailedLutRecords = true;
break;
@ -191,12 +196,12 @@ bool Section::createSectionFile(const int fontId, const float lineCompression, c
if (hasFailedLutRecords) {
Serial.printf("[%lu] [SCT] Failed to write LUT due to invalid page positions\n", millis());
file.close();
SD.remove(filePath.c_str());
SdMan.remove(filePath.c_str());
return false;
}
// Go back and write LUT offset
file.seek(HEADER_SIZE - sizeof(size_t) - sizeof(pageCount));
file.seek(HEADER_SIZE - sizeof(uint32_t) - sizeof(pageCount));
serialization::writePod(file, pageCount);
serialization::writePod(file, lutOffset);
file.close();
@ -204,15 +209,15 @@ bool Section::createSectionFile(const int fontId, const float lineCompression, c
}
std::unique_ptr<Page> Section::loadPageFromSectionFile() {
if (!FsHelpers::openFileForRead("SCT", filePath, file)) {
if (!SdMan.openFileForRead("SCT", filePath, file)) {
return nullptr;
}
file.seek(HEADER_SIZE - sizeof(size_t));
size_t lutOffset;
file.seek(HEADER_SIZE - sizeof(uint32_t));
uint32_t lutOffset;
serialization::readPod(file, lutOffset);
file.seek(lutOffset + sizeof(size_t) * currentPage);
size_t pagePos;
file.seek(lutOffset + sizeof(uint32_t) * currentPage);
uint32_t pagePos;
serialization::readPod(file, pagePos);
file.seek(pagePos);

View File

@ -12,11 +12,11 @@ class Section {
const int spineIndex;
GfxRenderer& renderer;
std::string filePath;
File file;
FsFile file;
void writeSectionFileHeader(int fontId, float lineCompression, bool extraParagraphSpacing, int viewportWidth,
int viewportHeight);
size_t onPageComplete(std::unique_ptr<Page> page);
uint32_t onPageComplete(std::unique_ptr<Page> page);
public:
int pageCount = 0;

View File

@ -24,7 +24,7 @@ void TextBlock::render(const GfxRenderer& renderer, const int fontId, const int
}
}
bool TextBlock::serialize(File& file) const {
bool TextBlock::serialize(FsFile& file) const {
if (words.size() != wordXpos.size() || words.size() != wordStyles.size()) {
Serial.printf("[%lu] [TXB] Serialization failed: size mismatch (words=%u, xpos=%u, styles=%u)\n", millis(),
words.size(), wordXpos.size(), wordStyles.size());
@ -43,7 +43,7 @@ bool TextBlock::serialize(File& file) const {
return true;
}
std::unique_ptr<TextBlock> TextBlock::deserialize(File& file) {
std::unique_ptr<TextBlock> TextBlock::deserialize(FsFile& file) {
uint32_t wc;
std::list<std::string> words;
std::list<uint16_t> wordXpos;

View File

@ -1,6 +1,6 @@
#pragma once
#include <EpdFontFamily.h>
#include <FS.h>
#include <SdFat.h>
#include <list>
#include <memory>
@ -36,6 +36,6 @@ class TextBlock final : public Block {
// given a renderer works out where to break the words into lines
void render(const GfxRenderer& renderer, int fontId, int x, int y) const;
BlockType getType() override { return TEXT_BLOCK; }
bool serialize(File& file) const;
static std::unique_ptr<TextBlock> deserialize(File& file);
bool serialize(FsFile& file) const;
static std::unique_ptr<TextBlock> deserialize(FsFile& file);
};

View File

@ -1,8 +1,8 @@
#include "ChapterHtmlSlimParser.h"
#include <FsHelpers.h>
#include <GfxRenderer.h>
#include <HardwareSerial.h>
#include <SDCardManager.h>
#include <expat.h>
#include "../Page.h"
@ -218,8 +218,8 @@ bool ChapterHtmlSlimParser::parseAndBuildPages() {
return false;
}
File file;
if (!FsHelpers::openFileForRead("EHP", filepath, file)) {
FsFile file;
if (!SdMan.openFileForRead("EHP", filepath, file)) {
XML_ParserFree(parser);
return false;
}

View File

@ -35,8 +35,8 @@ ContentOpfParser::~ContentOpfParser() {
if (tempItemStore) {
tempItemStore.close();
}
if (SD.exists((cachePath + itemCacheFile).c_str())) {
SD.remove((cachePath + itemCacheFile).c_str());
if (SdMan.exists((cachePath + itemCacheFile).c_str())) {
SdMan.remove((cachePath + itemCacheFile).c_str());
}
}
@ -102,9 +102,14 @@ void XMLCALL ContentOpfParser::startElement(void* userData, const XML_Char* name
return;
}
if (self->state == IN_METADATA && strcmp(name, "dc:creator") == 0) {
self->state = IN_BOOK_AUTHOR;
return;
}
if (self->state == IN_PACKAGE && (strcmp(name, "manifest") == 0 || strcmp(name, "opf:manifest") == 0)) {
self->state = IN_MANIFEST;
if (!FsHelpers::openFileForWrite("COF", self->cachePath + itemCacheFile, self->tempItemStore)) {
if (!SdMan.openFileForWrite("COF", self->cachePath + itemCacheFile, self->tempItemStore)) {
Serial.printf(
"[%lu] [COF] Couldn't open temp items file for writing. This is probably going to be a fatal error.\n",
millis());
@ -114,7 +119,7 @@ void XMLCALL ContentOpfParser::startElement(void* userData, const XML_Char* name
if (self->state == IN_PACKAGE && (strcmp(name, "spine") == 0 || strcmp(name, "opf:spine") == 0)) {
self->state = IN_SPINE;
if (!FsHelpers::openFileForRead("COF", self->cachePath + itemCacheFile, self->tempItemStore)) {
if (!SdMan.openFileForRead("COF", self->cachePath + itemCacheFile, self->tempItemStore)) {
Serial.printf(
"[%lu] [COF] Couldn't open temp items file for reading. This is probably going to be a fatal error.\n",
millis());
@ -126,7 +131,7 @@ void XMLCALL ContentOpfParser::startElement(void* userData, const XML_Char* name
self->state = IN_GUIDE;
// TODO Remove print
Serial.printf("[%lu] [COF] Entering guide state.\n", millis());
if (!FsHelpers::openFileForRead("COF", self->cachePath + itemCacheFile, self->tempItemStore)) {
if (!SdMan.openFileForRead("COF", self->cachePath + itemCacheFile, self->tempItemStore)) {
Serial.printf(
"[%lu] [COF] Couldn't open temp items file for reading. This is probably going to be a fatal error.\n",
millis());
@ -244,6 +249,11 @@ void XMLCALL ContentOpfParser::characterData(void* userData, const XML_Char* s,
self->title.append(s, len);
return;
}
if (self->state == IN_BOOK_AUTHOR) {
self->author.append(s, len);
return;
}
}
void XMLCALL ContentOpfParser::endElement(void* userData, const XML_Char* name) {
@ -273,6 +283,11 @@ void XMLCALL ContentOpfParser::endElement(void* userData, const XML_Char* name)
return;
}
if (self->state == IN_BOOK_AUTHOR && strcmp(name, "dc:creator") == 0) {
self->state = IN_METADATA;
return;
}
if (self->state == IN_METADATA && (strcmp(name, "metadata") == 0 || strcmp(name, "opf:metadata") == 0)) {
self->state = IN_PACKAGE;
return;

View File

@ -12,6 +12,7 @@ class ContentOpfParser final : public Print {
IN_PACKAGE,
IN_METADATA,
IN_BOOK_TITLE,
IN_BOOK_AUTHOR,
IN_MANIFEST,
IN_SPINE,
IN_GUIDE,
@ -23,7 +24,7 @@ class ContentOpfParser final : public Print {
XML_Parser parser = nullptr;
ParserState state = START;
BookMetadataCache* cache;
File tempItemStore;
FsFile tempItemStore;
std::string coverItemId;
static void startElement(void* userData, const XML_Char* name, const XML_Char** atts);
@ -32,6 +33,7 @@ class ContentOpfParser final : public Print {
public:
std::string title;
std::string author;
std::string tocNcxPath;
std::string coverItemHref;
std::string textReferenceHref;

View File

@ -1,81 +1,7 @@
#include "FsHelpers.h"
#include <SD.h>
#include <vector>
bool FsHelpers::openFileForRead(const char* moduleName, const char* path, File& file) {
if (!SD.exists(path)) {
Serial.printf("[%lu] [%s] File does not exist: %s\n", millis(), moduleName, path);
return false;
}
file = SD.open(path, FILE_READ);
if (!file) {
Serial.printf("[%lu] [%s] Failed to open file for reading: %s\n", millis(), moduleName, path);
return false;
}
return true;
}
bool FsHelpers::openFileForRead(const char* moduleName, const std::string& path, File& file) {
return openFileForRead(moduleName, path.c_str(), file);
}
bool FsHelpers::openFileForRead(const char* moduleName, const String& path, File& file) {
return openFileForRead(moduleName, path.c_str(), file);
}
bool FsHelpers::openFileForWrite(const char* moduleName, const char* path, File& file) {
file = SD.open(path, FILE_WRITE, true);
if (!file) {
Serial.printf("[%lu] [%s] Failed to open file for writing: %s\n", millis(), moduleName, path);
return false;
}
return true;
}
bool FsHelpers::openFileForWrite(const char* moduleName, const std::string& path, File& file) {
return openFileForWrite(moduleName, path.c_str(), file);
}
bool FsHelpers::openFileForWrite(const char* moduleName, const String& path, File& file) {
return openFileForWrite(moduleName, path.c_str(), file);
}
bool FsHelpers::removeDir(const char* path) {
// 1. Open the directory
File dir = SD.open(path);
if (!dir) {
return false;
}
if (!dir.isDirectory()) {
return false;
}
File file = dir.openNextFile();
while (file) {
String filePath = path;
if (!filePath.endsWith("/")) {
filePath += "/";
}
filePath += file.name();
if (file.isDirectory()) {
if (!removeDir(filePath.c_str())) {
return false;
}
} else {
if (!SD.remove(filePath.c_str())) {
return false;
}
}
file = dir.openNextFile();
}
return SD.rmdir(path);
}
std::string FsHelpers::normalisePath(const std::string& path) {
std::vector<std::string> components;
std::string component;

View File

@ -1,14 +1,7 @@
#pragma once
#include <FS.h>
#include <string>
class FsHelpers {
public:
static bool openFileForRead(const char* moduleName, const char* path, File& file);
static bool openFileForRead(const char* moduleName, const std::string& path, File& file);
static bool openFileForRead(const char* moduleName, const String& path, File& file);
static bool openFileForWrite(const char* moduleName, const char* path, File& file);
static bool openFileForWrite(const char* moduleName, const std::string& path, File& file);
static bool openFileForWrite(const char* moduleName, const String& path, File& file);
static bool removeDir(const char* path);
static std::string normalisePath(const std::string& path);
};

View File

@ -123,7 +123,7 @@ Bitmap::~Bitmap() {
delete[] errorNextRow;
}
uint16_t Bitmap::readLE16(File& f) {
uint16_t Bitmap::readLE16(FsFile& f) {
const int c0 = f.read();
const int c1 = f.read();
const auto b0 = static_cast<uint8_t>(c0 < 0 ? 0 : c0);
@ -131,7 +131,7 @@ uint16_t Bitmap::readLE16(File& f) {
return static_cast<uint16_t>(b0) | (static_cast<uint16_t>(b1) << 8);
}
uint32_t Bitmap::readLE32(File& f) {
uint32_t Bitmap::readLE32(FsFile& f) {
const int c0 = f.read();
const int c1 = f.read();
const int c2 = f.read();
@ -192,7 +192,7 @@ BmpReaderError Bitmap::parseHeaders() {
const uint16_t bfType = readLE16(file);
if (bfType != 0x4D42) return BmpReaderError::NotBMP;
file.seek(8, SeekCur);
file.seekCur(8);
bfOffBits = readLE32(file);
// --- DIB HEADER ---
@ -214,10 +214,10 @@ BmpReaderError Bitmap::parseHeaders() {
// Allow BI_RGB (0) for all, and BI_BITFIELDS (3) for 32bpp which is common for BGRA masks.
if (!(comp == 0 || (bpp == 32 && comp == 3))) return BmpReaderError::UnsupportedCompression;
file.seek(12, SeekCur); // biSizeImage, biXPelsPerMeter, biYPelsPerMeter
file.seekCur(12); // biSizeImage, biXPelsPerMeter, biYPelsPerMeter
const uint32_t colorsUsed = readLE32(file);
if (colorsUsed > 256u) return BmpReaderError::PaletteTooLarge;
file.seek(4, SeekCur); // biClrImportant
file.seekCur(4); // biClrImportant
if (width <= 0 || height <= 0) return BmpReaderError::BadDimensions;

Some files were not shown because too many files have changed in this diff Show More