···55inline int min(const int a, const int b) { return a < b ? a : b; }
66inline int max(const int a, const int b) { return a < b ? b : a; }
7788-// TODO: Text properties??
98void EpdFont::getTextBounds(const char* string, const int startX, const int startY, int* minX, int* minY, int* maxX,
109 int* maxY) const {
1110 *minX = startX;
-2
lib/Epub/Epub/Section.cpp
···1212 Serial.printf("Page %d complete\n", pageCount);
13131414 const auto filePath = cachePath + "/page_" + std::to_string(pageCount) + ".bin";
1515- // TODO can this be removed?
1616- SD.open(filePath.c_str(), FILE_WRITE).close();
17151816 std::ofstream outputFile("/sd" + filePath);
1917 page->serialize(outputFile);