Bug 139562 - override font to use in pdf documents
Summary: override font to use in pdf documents
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 137062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-03 16:23 UTC by Ludo
Modified: 2019-04-27 18:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludo 2007-01-03 16:23:10 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

PDF documents (possibly the same applies to postscript & djvu) specify the font to use to render the document (or even embed the font if my understanding is correct). What would be great is if it would be possible to enforce the use of another font in the configuration dialog.
This would be useful for documents which have not-very-readable fonts.

Not sure if this is possible, but I assume it is.
Comment 1 Albert Astals Cid 2007-06-04 12:02:16 UTC
Reassigning to the mailing list
Comment 2 Robert Knight 2008-01-12 20:23:36 UTC
I'd like to second this.  A couple of my lecturers in the past have had a habit of using Comic Sans MS (I kid you not) in their PDF slides.  Being able to replace this with a sane Sans Serif font would have been much appreciated.
Comment 3 Dotan Cohen 2009-06-05 14:47:25 UTC
It appears that the Windows version of Adobe Reader has a font replacement
option, called 'local fonts'. So there is precedent for this feature. Furthermore, on Bug 137062 a workaround was proposed:

"""
It's right that one can 'ADD' font substitution in .fonts.conf. Here's the example which i added to Change the non-existing Baskerville font to "Times New Roman" which looks a lot better in KPDF.

... (after </match>) in ~/.fonts.conf

<alias>
<family>Baskerville</family>
<accept><family>Times New Roman</family></accept>
</alias>
</fontconfig>

"""
Comment 4 Albert Astals Cid 2009-08-26 23:57:29 UTC
To support this in a feature we need poppler to support it, please go to http://bugs.freedesktop.org/ and report a feature request on it
Comment 5 Dotan Cohen 2009-08-27 12:53:30 UTC
*** Bug 137062 has been marked as a duplicate of this bug. ***
Comment 6 Dotan Cohen 2009-08-27 12:58:28 UTC
> To support this in a feature we need poppler
> to support it

Thanks, Albert, the bug is filed here:
https://bugs.freedesktop.org/show_bug.cgi?id=23546

Please comment and vote on that bug.
Comment 7 Albert Astals Cid 2012-12-08 22:37:06 UTC
Moving to new, "needsinfo" is not a good state for this bug, it might be "Resolved" "Later" but i don't like the "resolved" part, so we'll just store it on new
Comment 8 Laura David Hurka 2019-04-27 18:00:10 UTC
Overriding the font would also be useful for .epub. I have an .epub here which sets the font to serif in every <p> in it’s internal .html files.

The .epub uses only this one font, so a global override would be appropiate.

In the epub backend config dialog, only the default font is available. This can  change the font size, as it is not set by the .epub.

(In general, I think that an .epub shouldn’t set the font.)