We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47a4c85 commit 130d5f0Copy full SHA for 130d5f0
common/src/logger.rs
@@ -100,11 +100,11 @@ impl Logger {
100
'\n' => self.newline(),
101
'\r' => self.carriage_return(),
102
c => {
103
- if self.x_pos >= self.width() {
+ let bitmap_char = get_bitmap(c, FontWeight::Regular, BitmapHeight::Size14).unwrap();
104
+ if self.x_pos + bitmap_char.width() > self.width() {
105
self.newline();
106
}
- let bitmap_char = get_bitmap(c, FontWeight::Regular, BitmapHeight::Size14).unwrap();
107
- if self.y_pos >= (self.height() - bitmap_char.height()) {
+ if self.y_pos + bitmap_char.height() > self.height() {
108
self.clear();
109
110
self.write_rendered_char(bitmap_char);
0 commit comments