Skip to content

UX: fit text on screen by width of chars

Emma Turner requested to merge emturner@text-width into main

Blocked by: !66 (merged)

Previously, the device app assumed constant width chars, where 19 chars would always fit on a screen line.

While this often worked, the display text itself is not monospace, meaning that text containing to many wide characters (e.g. M) would either

  • spill over the edge of the screen on the nanos
  • be shortened by the SDK on nanosp/nanox (leading to some text replaced with ...)

In order to always be able to show correctly the full text, we only write as many characters to the screen as will actually fit.

Edited by Emma Turner

Merge request reports