Strange behaviour with fonts

Hello,

our APP use Roboto font for labels, buttons and list items.

With small font size (10 to 14), the upper part of some symbols, expecially uppercase letters and digits, are cut on top.
Please, refer to the following images, not the red boxes (for example the words “Device”, “Scontrino”, “CONO” or the number “1213” and “2,60”).

The size of label control is right to contain the entire text.

If I use a bigger size (20, 24 or 28), the words are perfect, but I can’t always use big fonts.

Have you already experienced this problem ?
What kind of font shoud I use to prevent it ?
There are something else I can do ?

Terminal ID is: P6SW184JS001540, is a development device.

Thanks in advice

Giuseppe Garzotto

Hi Giuseppe,
We never came across this issue.
Is your app a native android app? if not i guess this has something to do with the platform that you are using

Hello Deepak,

yes, app is a native Android app.
It’s written with Embarcadero Delphi XE, version 10.2.

I wrote the request because the same app on other devices (e.g. Huawei) show text in perfect way.
I think the question is related to display resolution and density, but I can’t find information about it in the documentation.

Can you tell me some details about display features ? It can be useful if I write request to Embarcadero support.

Thanks for support.

Giuseppe Garzotto

Hi Giuseppe,
Here are the display parameters

Physical size: 800x1280
Physical density: 213

You could use the commands to get the display info,
adb shell wm size
adb shell wm density

1 Like