View Single Post
Old 12-23-2020, 11:17 AM   #1
maraskan_user
Member
maraskan_user began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2020
Location: Germany
Device: Boox Nova 3, Galaxy Tab S6, Samsung M21
Font size rendering in Calibre Viewer vs. Editor

I notice that fonts that are defined by px or pt instead of em are rendered slightly different by the viewer and the editor.

In the attached picture, both viewer and editor were configured to use 18px as default font on a system set to 96 dpi (so 13.5pt = 18px). While the Calibre editor shows the line using a font size of 1em with the same size as the ones that were using 18px or 13.5pt, the Calibre Viewer in comparison upscales the lines that are using pt or px values by around 15%.

I was wondering what the cause might be, and which one is actually considered correct.

(I included the used epub file for reference.)
Attached Thumbnails
Click image for larger version

Name:	2020-12-23_16.59.01.651.png
Views:	417
Size:	178.6 KB
ID:	184225  
Attached Files
File Type: epub GF Tests 1 - Font Scaling.epub (2.9 KB, 359 views)
maraskan_user is offline   Reply With Quote