74 paletteColor_t innerColor,
const char* text, int16_t xOff, int16_t yOff);
76 int16_t yMin, int16_t xMax, int16_t yMax);
78 const font_ch_t* ch, int16_t xOff, int16_t yOff, int16_t xMin, int16_t yMin, int16_t xMax,
81 int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax);
83 paletteColor_t innerColor,
const char* text, int16_t xOff, int16_t yOff, int16_t xMin,
84 int16_t yMin, int16_t xMax, int16_t yMax);
87 int16_t xMax, int16_t yMax);
89 int16_t yStart, int16_t* xOff, int16_t* yOff, int16_t xMax, int16_t yMax);
91 int16_t* yOff, int16_t xMax, int16_t yMax);
97 int16_t xMax, int32_t* timer);
99 int16_t maxW,
bool center);
102 const paletteColor_t* colors, uint32_t colorCount, uint32_t segmentCount);
uint8_t width
The width of this character.
Definition font.h:57
font_ch_t chars['~' - ' '+2]
An array of characters, enough space for all printed ASCII chars, and pi.
Definition font.h:68
uint8_t * bitmap
This character's bitmap data.
Definition font.h:58
void drawShinyCharBounds(paletteColor_t outerColor, paletteColor_t middleColor, paletteColor_t innerColor, int h, const font_ch_t *ch, int16_t xOff, int16_t yOff, int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax)
Draw a single character with a horizontal gradient through the center from a font to a display.
Definition font.c:80
int16_t drawText(const font_t *font, paletteColor_t color, const char *text, int16_t xOff, int16_t yOff)
Draw text to a display with the given color and font.
Definition font.c:194
int16_t drawTextMarquee(const font_t *font, paletteColor_t color, const char *text, int16_t xOff, int16_t yOff, int16_t xMax, int32_t *timer)
Draw text to the display with a marquee effect.
Definition font.c:682
void drawChar(paletteColor_t color, int h, const font_ch_t *ch, int16_t xOff, int16_t yOff)
Draw a single character from a font to a display.
Definition font.c:96
uint16_t textWordWrapHeight(const font_t *font, const char *text, int16_t width, int16_t maxHeight)
Return the height of a block of word wrapped text.
Definition font.c:557
const char * drawTextWordWrapCentered(const font_t *font, paletteColor_t color, const char *text, int16_t *xOff, int16_t *yOff, int16_t xMax, int16_t yMax)
Draws text, breaking on word boundaries, until the given bounds are filled or all text is drawn....
Definition font.c:536
void drawCharBounds(paletteColor_t color, int h, const font_ch_t *ch, int16_t xOff, int16_t yOff, int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax)
Draw a single character from a font to a display.
Definition font.c:59
int16_t drawShinyText(const font_t *font, paletteColor_t outerColor, paletteColor_t middleColor, paletteColor_t innerColor, const char *text, int16_t xOff, int16_t yOff)
Draw text to a display with the given color and font.
Definition font.c:211
const char * drawTextWordWrap(const font_t *font, paletteColor_t color, const char *text, int16_t *xOff, int16_t *yOff, int16_t xMax, int16_t yMax)
Draws text, breaking on word boundaries, until the given bounds are filled or all text is drawn.
Definition font.c:511
int16_t drawShinyTextBounds(const font_t *font, paletteColor_t outerColor, paletteColor_t middleColor, paletteColor_t innerColor, const char *text, int16_t xOff, int16_t yOff, int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax)
Draw text to a display with the given color and font.
Definition font.c:157
bool drawTextEllipsize(const font_t *font, paletteColor_t color, const char *text, int16_t xOff, int16_t yOff, int16_t maxW, bool center)
Draw text to the display that fits within a given length, replacing any overflowing text with "....
Definition font.c:722
void makeOutlineFont(font_t *srcFont, font_t *dstFont, bool spiRam)
Create the outline of a font as a separate font.
Definition font.c:618
void setGlobalCharSpacing(int32_t spacing)
Adjust the spacing between characters when drawing words.
Definition font.c:791
const char * drawTextWordWrapFixed(const font_t *font, paletteColor_t color, const char *text, int16_t xStart, int16_t yStart, int16_t *xOff, int16_t *yOff, int16_t xMax, int16_t yMax)
Definition font.c:542
uint8_t height
The height of this font. All chars have the same height.
Definition font.h:67
uint16_t textWidth(const font_t *font, const char *text)
Return the pixel width of some text in a given font.
Definition font.c:225
int16_t drawTextBounds(const font_t *font, paletteColor_t color, const char *text, int16_t xOff, int16_t yOff, int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax)
Draw text to a display with the given color and font.
Definition font.c:115
int16_t drawTextMulticolored(const font_t *font, const char *text, int16_t xOff, int16_t yOff, const paletteColor_t *colors, uint32_t colorCount, uint32_t segmentCount)
Draws text divided into any number of colored segments.
Definition font.c:767
A character used in a font_t. Each character is a bitmap with the same height as the other characters...
Definition font.h:56
A font is a collection of font_ch_t for all ASCII characters. Each character has the same height and ...
Definition font.h:66
paletteColor_t
All 216 possible colors, named like cRGB.
Definition palette.h:23