Skip to content

Centre Text #1978

Answered by Bodmer
leetut asked this question in Q&A - Fonts
Aug 23, 2022 · 7 comments
Discussion options

You must be logged in to vote

The print stream cannot be used with text formatting for technical reasons. Use drawString():

tft.setTextDatum(MC_DATUM);
tft.drawString("Hello", tft.width() / 2, 15);

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by leetut
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1977 on August 23, 2022 14:31.