GNOME Bugzilla – Bug 725254
[webkit-composer] Smaller font size shown as 0 in preview when received
Last modified: 2020-04-28 10:41:54 UTC
Steps: a) open a new composer in HTML mode b) add text with font size 1, 0, -1 and -2 on one line and send it Actual result: when received, the size 1 is larger than size 0, but sized -1 and -2 are of the same size as size 0 Note: replying to such message shows font sizes properly, -1 is smaller than 0 and -2 is smaller than -1.
Can you try it again on latest commit in wip/webkit-composer branch as I cannot reproduce it.
Still there, at commit a01db2f with webkitgtk3-2.2.4-1.fc20.x86_64
Can it be a preview panel issue, defining any minimal font size? If I reply to the message then it shows proper font sizes, the raw message body also shows: <html><head></head><body data-message="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <font size="1">EM-2 </font> <font size="2">EM-1 </font> EM0 <font size="4">EM1 </font> <font size="5">EM2 </font> <font size="6">EM3 </font> <font size="7">EM4</font></body></html> thus the smaller fonts should be smaller, but they are not. By the way (I can open a new bug report for this), could you drop webkit tweaks in the style, please? We want to have used standard properties, instead of surprises when the content is rendered with anything other than webkit (or something which doesn't understand webkit specific tweaks).
*** Bug 780149 has been marked as a duplicate of this bug. ***
I think the problem here is the user's current font.. It's reproducible if I have a default font of size 10.. But if I set the font size to 16, then it works. Could be that the font doesn't have the size for current height - 1 or 2? Just a guess here..
Created attachment 348261 [details] font settings screenshot For what it's worth the Droid Sans fonts I'm using are specifically designed for small sizes so I don't know why they would be a problem. Dunno about the other fonts though. Note that I'm using global font scaling of 90% at the moment.
Created commit b9589fdf1d in evo master (3.37.2+) Simply do not limit minimum font size for the WebKitWebView.