The height of display.newText() varies with line breaks?

Please considering following two cases that print some texts that occupy two lines

case1: display.newText(“1\n2”,…)  – occupies two lines with a line break “\n”

case2: display.newText(“long text”, …) – no line break, but the long text occupies two lines (fixed width)

I found the heights for these two cases are slightly different, which is causing me some trouble.

Is it because of the font I choose? or all fonts behave this way?

Why would a line break make the difference?

I decide to print one text at a time to solve my problem.

I decide to print one text at a time to solve my problem.

Printing one text or one word at a time isn’t the best solution because the look is not optimized for the output.

The final solution is to find the right font.

Apple has many fonts that are good in this case. And for Android, I found Roboto is good for this case. FYI.

Printing one text or one word at a time isn’t the best solution because the look is not optimized for the output.

The final solution is to find the right font.

Apple has many fonts that are good in this case. And for Android, I found Roboto is good for this case. FYI.