Skip to content

How to use custom fonts? #50

@AlessandroFano

Description

@AlessandroFano

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions