You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading CSS sizes specified in pt, in, cm, mm, pc, THTMLViewer uses Screen.PixelsPerInch to convert sizes to pixels.
But when reading CSS sizes specified in px, Screen.PixelsPerInch is ignored, pixels are read as they are.
So, if Screen.PixelsPerInch <> 96, sizes are inconsistent.
But HTML assumes that pixels have 96 dpi.
Suggested change in function LengthConv:
...
else if U = 'px' then
V := V * Screen.PixelsPerInch / 96
...
However, this is not a complete fix. HTML may contain pixel sizes not only here, but also in other places (table CellPadding, Border, etc.)
The text was updated successfully, but these errors were encountered:
When reading CSS sizes specified in pt, in, cm, mm, pc, THTMLViewer uses Screen.PixelsPerInch to convert sizes to pixels.
But when reading CSS sizes specified in px, Screen.PixelsPerInch is ignored, pixels are read as they are.
So, if Screen.PixelsPerInch <> 96, sizes are inconsistent.
But HTML assumes that pixels have 96 dpi.
Suggested change in function LengthConv:
However, this is not a complete fix. HTML may contain pixel sizes not only here, but also in other places (table CellPadding, Border, etc.)
The text was updated successfully, but these errors were encountered: