| 655 | } |
| 656 | |
| 657 | uint8_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 | |
| 669 | void replaceVariables(String &format) { |
| 670 | size_t startIndex = 0; |
no outgoing calls
no test coverage detected