You are not logged in.
I have pdf which uses windows fonts,but okular/firefox etc. use notofonts for text inside inside instead of liberation or gnu-fonts which provide better appearence.How do i change this
Last edited by neoabc123 (2022-11-07 16:21:11)
Offline
Don't know why but installing xpdf fixed this in poppler based pdfs
Offline
https://wiki.archlinux.org/title/Metric … figuration
symlinking /usr/share/fontconfig/conf.avail/30-metric-aliases.conf into /usr/share/fontconfig/conf.default should do - and be in place.
fc-match ArialAre we sure the pdf actually "uses window fonts"? And what "windows fonts"? And why are they not embedded?
Edit: probably though an (unrelated?) config from https://archlinux.org/packages/extra/any/gsfonts/ ?
Did you have that package before?
Last edited by seth (2022-11-07 08:22:26)
Offline
yes it uses windows fonts eg timesNewRomanPSMT etc. i found in okular file properties that these were substituted with noto-fonts and only a few were embedded.
sudo ln -sf /usr/share/fontconfig/conf.avail/30-metric-aliases.conf /usr/share/fontconfig/conf.defaultdoesn't fix
fc-match arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"xpdf installed with gs-fonts that probably fixed something.
edit: no didnt have earlier{didn't saw your edit}
Last edited by neoabc123 (2022-11-07 08:36:27)
Offline
Compare
fc-match "Times New Roman"
fc-match Arialw/ and w/o gsfonts.
Offline
the same output
Last edited by neoabc123 (2022-11-07 09:29:48)
Offline
… being?
Offline
$ fc-match "Times New Roman"
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"$ fc-match Arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"Offline
That would suggest that fontconfig correctly resolves the Liberation fonts, but "okular/firefox etc." do not?
Does
pdffonts -subst file.pdfsow different results depending on the presence of gsfonts?
Offline
same output
name object ID substitute font substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
TimesNewRomanPS-BoldMT 157 0 Noto Sans Bold /usr/share/fonts/noto/NotoSans-Bold.ttf
TimesNewRomanPSMT 160 0 Noto Sans Regular /usr/share/fonts/noto/NotoSans-Regular.ttf
TimesNewRomanPS-BoldItalicMT 163 0 Noto Sans Bold Italic /usr/share/fonts/noto/NotoSans-BoldItalic.ttf
TimesNewRomanPS-ItalicMT 166 0 Noto Sans Italic /usr/share/fonts/noto/NotoSans-Italic.ttf
ArialMT 181 0 Noto Sans Regular /usr/share/fonts/noto/NotoSans-Regular.ttfLast edited by neoabc123 (2022-11-07 13:36:31)
Offline
So to summarize:
Regardless of gsfonts fontconfig resolves the desired Liberation for while poppler *regardlessly!* substitutes Noto.
But installing gsfonts changes the behavior of poppler???
Try mupdf/llpp…
Offline
yes strange.Without gs fonts it renders incorrectly
Mupdf works fine even without gsfonts.
Offline
https://gitlab.freedesktop.org/poppler/ … issues/819
The problem will be that "TimesNewRomanPS" is different from "Times New Roman".
Offline
Thanks
Offline