Skip to content

text2png : OLED 64x32 #40

@yboujraf

Description

@yboujraf

Dear @tkrkt , @adityapatadia , @bashaus , @greyvugrin , @philipeachille

I 'd like to use your library to generate 1 or 2 or 3 or 4 lines in a 64x32 pixels picture.
Each line could have different fonts and sizes depending of the number of lines.

  • Is it possible to extend the library to define the high and width of the png ?
  • There is a way to calculate the font size to be sure the text will fit in the line ?
  • There is a way to dis/enable wrapping the text to the next line if text is bigger than the width.

the ouput file could be an array or buffer.

This a layout I am looking to do by using javascript or typescript to generate on the fly the png to display to a oled display

TEXT264x32_PIXELS_PNG_OR_BITMAP_1_COLOR_DEPTH_AND RGB_8BITS.pdf

Best Regards
Youssef

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