Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use custom fonts? #50

Open
AlessandroFano opened this issue May 7, 2024 · 0 comments
Open

How to use custom fonts? #50

AlessandroFano opened this issue May 7, 2024 · 0 comments

Comments

@AlessandroFano
Copy link

Hello,
thankyou so much for this library.
As per the README file, I am trying to use a Font from AdafruitGFX, but I am not sure what is the correct procedure to do so.

      GFXfont myFont = FreeMonoBoldOblique12pt7b;
      obdSetCustomFont(&obd, &myFont, 1);
      obdWriteString(&obd, 0, 0, 0, (char *)"FONT_6x8" , FONT_6x8, OBD_BLACK, 1);
      obdWriteStringCustom(&obd, &myFont, 0, 9, (char *)"CUSTOM_FONT", OBD_BLACK);

With these instructions only the line "FONT_6x8" is shown in the display.
Can you help me out here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant