Bug 334210 - PDF: In-line annotation font face is always the same
Summary: PDF: In-line annotation font face is always the same
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.19.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-02 09:03 UTC by chris.taylor
Modified: 2022-03-21 11:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chris.taylor 2014-05-02 09:03:05 UTC
The in-line annotation font that is displayed never changes from the default, no matter which font is selected for an individual in-line annotation, or configured globally for all in-line annotations.

A further problem therefore is that if a non-unicode font is the default font, then e.g. Greek characters are not displayed.

Reproducible: Always

Steps to Reproduce:
Either:
1. Open a PDF document in Okular.
2. Insert an in-line annotation.
3. Type something.
4. Click OK.
5. Right-click in-line annotation --> Properties.
6. Change font to anything (pick something obviously different for testing).
7. Click OK.

Or:
1. Change global font in Settings --> Configure Okular --> Annotations --> Inline Note --> Edit
Actual Results:  
Font stays as default.

Expected Results:  
Font changes to the one you've selected.

No error messages are displayed.

As mentioned above, potential knock on effect of non-display of non-unicode characters (see https://bugs.kde.org/show_bug.cgi?id=330527).
Comment 1 Albert Astals Cid 2014-05-03 17:48:04 UTC
Correct, poppler doesn't support specifying which font it should use for annotations so it always uses the same. If you annotate a ps file it works, and also changing the font size also works. This will need someone adding that feature to poppler first so do not hold your breath.
Comment 2 chris.taylor 2014-05-03 20:27:04 UTC
Should I file a bug report against Poppler then?
Comment 3 Albert Astals Cid 2014-05-03 21:00:41 UTC
Sure
Comment 4 V字龍(Vdragon) 2014-09-22 07:50:55 UTC
I have similar issue(CJK characters in inline annotations are not rendered), is the bug report in poppler filed?
Comment 5 V字龍(Vdragon) 2016-04-18 19:51:39 UTC
OK I found the Poppler bug report, just for anyone's convenience.
Bug 65956 – okular does not show non-latin characters in inline notes
https://bugs.freedesktop.org/show_bug.cgi?id=65956
Comment 6 Mikael 2022-03-21 11:00:55 UTC
A second issue caused by this is that the font used by Okular for Typewriter and Inline note annotations obviously requires less space compared to the substituted font in other readers, such as Adobe Acrobat reader or pdf.online web-app. The result is that text boxes created around on-screen text annotations in Okular is to small for the text inside them when viewed in another viewer.
A way to handle this better in Okular until custom fonts are supported by Poppler is to use a (much) more space consuming font face for annotations in Okular, or to increase the padding arround Typewriter and Inline note annotations in Okular. My testing suggest that today you need to set the font size in Okular to at least '12' (in contrast to default '9') in order to avoid cropping (for longer lines or multi-line annotations) when the font face used by Okular/Poppler is substituted to another default font face and font size in other PDF readers.