You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (SSD1306_WIDTH< (SSD1306.CurrentX+Font.width) ||
SSD1306_HEIGHT< (SSD1306.CurrentY+Font.height))
{
// Not enough space on current line
return0;
}
Maybe it could be replaced by code like this:
uint8_twidth=Font.char_width ? Font.char_width[ch-32] : Font.width;
// Check remaining space on current lineif (SSD1306_WIDTH< (SSD1306.CurrentX+width) ||SSD1306_HEIGHT< (SSD1306.CurrentY+Font.height))
{
// Not enough space on current linereturn0;
}
This could break fonts that are drawing outside of their char width to create overlapping characters. (consider )
Although I'm not sure if those fonts were supported in the first place.
The text was updated successfully, but these errors were encountered:
Currently,
DrawChar
doesn't draw chars like "i" or "j", even though they fit, because only the "worst case" character width is considered:stm32-ssd1306/ssd1306/ssd1306.c
Lines 228 to 235 in d815b74
Maybe it could be replaced by code like this:
This could break fonts that are drawing outside of their char width to create overlapping characters. (consider
)
Although I'm not sure if those fonts were supported in the first place.
The text was updated successfully, but these errors were encountered: