Skip to content

Conversation

@ReformatDuckhunt
Copy link

This feature adds text alignment support to the PDF printer, including:

  • Center alignment
  • Left alignment
  • Right alignment (implemented with a small workaround, as the actual string width is not yet accurately determined)

@sonntagd
Copy link
Owner

Hi @ReformatDuckhunt
thanks for your PR!
In my applications I am mainly using the ->utf8ImagedText way, but isnt the normal ->text method just using monospaced fonts? If yes, one could replace the text width guessing by indenting the centered/right-aligned text with a well-calculated number of spaces.

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.

2 participants