[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries
Tobias Deiminger
bugzilla_noreply at kde.org
Thu Apr 12 07:01:25 UTC 2018
https://bugs.kde.org/show_bug.cgi?id=325119
Tobias Deiminger <haxtibal at posteo.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |haxtibal at posteo.de
--- Comment #8 from Tobias Deiminger <haxtibal at posteo.de> ---
At least one cause for the misfit is this: Okular doesn't consult
generator/poppler for required size when it calculates the desired bounding box
of annotations. Actually it can't, because Poppler has no such API yet. Instead
Okular tries to guess the size of the bounding box on its own by using
QFontMetricsF::boundingRect [0].
Only the annotation rendering engine (i.e. Poppler) could know the exact size.
E.g. it's not even guaranteed that QFontMetricsF and Poppler actually select
the same font (may or may not use lib fontconfig to search fonts, afaikt) even
if description matches. A QT-based guess can always be more or less wrong.
[0]
https://cgit.kde.org/okular.git/tree/ui/pageviewannotator.cpp?h=Applications/18.04#n199
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list