MarianArlt / kde-plasmoid-betterinlineclock

Your usual clock widget, just way better and on a single line!
https://www.opendesktop.org/p/1245902
GNU General Public License v3.0
20 stars 14 forks source link

Font is too small for the selected size #21

Open ali1234 opened 2 years ago

ali1234 commented 2 years ago

To reproduce:

  1. Open KDE settings -> appearance -> fonts and note the size of the general font. image
  2. Open Better inline clock settings and set the font to the same size: image
  3. Apply. Result: image

The result is that the clock font is much smaller than it should be.

This is a result of interpreting the specified size as pixels instead of points. On a 96dpi monitor there are 96 pixels per 72 points. If you desire the clock to use the system default size of 10pt, it would be necessary to enter a pixel size of 13.3333333333 pixels. However, because the input field only accepts integers, this is not possible. Therefore it is impossible to have the clock use the system default font size.