Skip to content

U8g2 for Adafruit GFX - Polish fonts #2120

Answered by olikraus
ExciterELB asked this question in Q&A
Discussion options

You must be logged in to vote

Things are mixed in your code. This is the issue tracker for u8g2. However your code uses Adafruit lib: So better ask the Adafruit people for support.

In general, your problem could be solved without problems by using "u8g2lib.h"

  • Enable UTF8
  • Use a type "e" font, which will include the letters you need.
  • Just use the letters in your code (provided, that your IDE / Editor supports UTF8)

The following example will use the built-in font helvR14, see https://github.com/olikraus/u8g2/wiki/fntgrpadobex11#helvr14

Again: By using u8g2 you can just use any none-ASCII chars directly in the code as shown in the example below.

void setup(void) {
  u8g2.begin();
  u8g2.enableUTF8Print();		// enable UT…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ExciterELB
Comment options

@olikraus
Comment options

@ExciterELB
Comment options

@olikraus
Comment options

Answer selected by ExciterELB
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants