Skip to content

Modified font size setting in text_mode_pypixelcolor#35

Open
BAERnado wants to merge 2 commits into
cagcoach:mainfrom
BAERnado:main
Open

Modified font size setting in text_mode_pypixelcolor#35
BAERnado wants to merge 2 commits into
cagcoach:mainfrom
BAERnado:main

Conversation

@BAERnado

Copy link
Copy Markdown

I found font_size did not apply if using mode:text however the app does provide this.
I have modified the naming and normalized inputs when sending text as text (not textImage):

  1. If font_size is below 16 use 16.
  2. If font_size is bigger than device_height use device_height.
  3. Only use multiplies of 16. char_height = math.floor(font_size/16)*16

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

Successfully merging this pull request may close these issues.

1 participant