https://bugs.kde.org/show_bug.cgi?id=325119

Tobias Deiminger <haxti...@posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |haxti...@posteo.de

--- Comment #8 from Tobias Deiminger <haxti...@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.

Reply via email to