[okular] [Bug 443403] Reduce the size of the digital signature display
smihael
bugzilla_noreply at kde.org
Thu Nov 16 12:37:30 GMT 2023
https://bugs.kde.org/show_bug.cgi?id=443403
smihael <smihael at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smihael at gmail.com
--- Comment #31 from smihael <smihael at gmail.com> ---
This particular issue has been bothering me for a long while, so I tried to
investigate if this could be addressed easily.
A quick solution is to add the following line:
pData->setFontSize(10);
to the following file:
https://invent.kde.org/graphics/okular/-/blob/release/23.08/generators/poppler/generator_pdf.cpp#L1382
Side note: After compiling Okular from source
(https://okular.kde.org/build-it/) make sure to also update the library path
(otherwise system version of the compiled generator_pdf will be called).
At this point, I cannot make any pull request, because there are several other
things that should be addressed. The font size setting could be added to:
https://invent.kde.org/graphics/okular/-/blob/release/23.08/part/selectcertificatedialog.ui
However, the "signature is too small" warning dialogue is currently somewhat
arbitrary and based on fixed pixel size
(https://invent.kde.org/graphics/okular/-/blob/release/23.08/part/pageviewannotator.cpp#L358)
so without further changes the user would get the warning even with the smaller
font size.
A more adaptive solution (font size automatically determined from annotation
box size), would probably require changes in the poppler library.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list