MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / processFontPath

Function processFontPath

ESP32_AP-Flasher/src/contentmanager.cpp:657–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657uint8_t processFontPath(String &font) {
658 if (font == "") return 3;
659 if (font == "glasstown_nbp_tf") return 1;
660 if (font == "7x14_tf") return 1;
661 if (font == "t0_14b_tf") return 1;
662 if (font.indexOf('/') == -1) font = "/fonts/" + font;
663 if (!font.startsWith("/")) font = "/" + font;
664 if (font.endsWith(".vlw")) font = font.substring(0, font.length() - 4);
665 if (font.endsWith(".ttf")) return 2;
666 return 3;
667}
668
669void replaceVariables(String &format) {
670 size_t startIndex = 0;

Callers 2

drawStringFunction · 0.85
drawTextBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected