u8x8 font modification on the fly, adding fx #2512
-
first question |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
first question: There is a function void u8x8_get_glyph_data(u8x8_t *u8x8, uint8_t encoding, uint8_t *buf, uint8_t tile_offset) which will copy the 8x8 tile into the provided buffer. In Arduino, it might look like this:
There is also an Arduino example, which demonstrates how to rotate a 8x8 tile by 90 degree: u8g2/sys/arduino/u8x8/Rotate90/Rotate90.ino Lines 362 to 367 in 416abe4 The Rotate90.ino example is also available in Arduino IDE of the latest u8g2 release. second question: |
Beta Was this translation helpful? Give feedback.
The font format differs between u8g2 and u8x8, but you can convert a 4x6 font into u8x8 format. However Each char would be 8 pixel wide.
As an alternative you could use u8g2 in page mode. It will only consume a little bit more RAM. Even better, u8g2 fonts are compressed.