(el, mode)
| 1749 | } |
| 1750 | |
| 1751 | function getElementFontForMode(el, mode) { |
| 1752 | if (!el) return mode === "u8g2" ? DEFAULT_U8G2_FONT : DEFAULT_TFT_FONT; |
| 1753 | if (mode === "u8g2") { |
| 1754 | const candidate = el.u8g2Font || el.font; |
| 1755 | return sanitizeU8g2FontName(candidate); |
| 1756 | } |
| 1757 | const candidate = el.tftFont || el.font; |
| 1758 | return sanitizeTftFontId(candidate); |
| 1759 | } |
| 1760 | |
| 1761 | function setElementFontForMode(el, mode, value) { |
| 1762 | if (!el) return; |
no test coverage detected