Azure / azure-iot-explorer

Cross-platform UI for interacting with devices attached to Azure IoT Hub. This tool is meant for learning and testing, not for production environment.
MIT License
223 stars 74 forks source link

[BUG] Wrong Fonts in ubuntu #475

Closed rido-min closed 3 years ago

rido-min commented 3 years ago

Running in Ubuntu the fonts dont seem right:

image

YingXue commented 3 years ago

Hi @rido-min This is expected as Ubuntu and Windows have different default font. If you have used the Mac OS version of the tool, you would notice they look different as well.

rido-min commented 3 years ago

can we use fonts that are available in all platforms? or at least use a fallback?

YingXue commented 3 years ago

As I was googling this issue, people would recommend changing the default fonts for ubuntu system themslves if they don't feel used to it. Finding a common fonts is not a recommended solution, or at least not worth doing since it would alter the appearance for other platforms, and can be fragile if the os supported fonts changes.

rido-min commented 3 years ago

Finding a common fonts is not a recommended solution how other electron apps solve this issue? eg, Storage Explorer looks almost the same in Windows and Ubuntu

image

YingXue commented 3 years ago

the screenshot you attached does not look the same to me. the fonts and the space is not the same, maybe closer. in explorer, we directly put span or div around plain text. other apps could be using bootstrap or something else. but i dont think there is a need for us to follow exactly the same.

YingXue commented 3 years ago

if you strongly feel like it is worth doing, please reopen the issue as a feature request instead.

rido-min commented 3 years ago

I'm not advocating for a pixel perfect comparision, just not use Times New Roman as a default :)

YingXue commented 2 years ago

from this site, there are several fonts recommended. We are also updating to Arial and see if that gets the app a better look: http://rigaux.org/font-family-compatibility-between-linux-.html