You are not logged in.

#1 2014-10-15 15:38:39

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

wrong font substitution in PDF

hi fellows,
I have a problem with almost all PDF: if a font is not embedded in the PDF, the system replace it with one that is my system (and so far it's good)
the problem is that replace it with a wrong one!

e.g. PDF wants "verdana-bold" and is not embedded ---> is replaced with "dejavu-bold" I have installed in my system the package "ttf-win8" which contains "verdana" too
screenshot:      http://imgur.com/aoht6wy

how can I fix it?

thanks


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#2 2014-10-15 15:42:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: wrong font substitution in PDF

This looks like a font-config issue - having the font installed is only part of it, font-config also needs to 'know' about it.  Do you get the same output for the command below as me, or does your give DejaVu?

$ fc-match "Verdana-Bold"
verdana.ttf: "Verdana" "Normal"

EDIT: FWIW, the dark magics of font-config are still quite a mystery to me.  I also get the following if I leave out the hyphen:

$ fc-match "Verdana Bold"
DejaVuSans.ttf: "DejaVu Sans" "Book"

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2014-10-15 15:43:17

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: wrong font substitution in PDF

I get this:

[mattia@arch-desktop ~]$ fc-match "Verdana-Bold"
DejaVuSans.ttf: "DejaVu Sans" "Book"

+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#4 2014-10-15 15:45:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: wrong font substitution in PDF

Check out the font-config wiki page then.  Perhaps this part.  Though I think if the fonts were installed correctly that shouldn't be necessary.  I use ttf-ms-fonts, not the win8.  Perhaps there is a difference in the post-install steps for the two packages.

EDIT: assuming you mean you use ttf-ms-win8 from the AUR, then both packages do have the same post-install scripts (except for an -s flag to fc-cache which should be irrelevant here).

Last edited by Trilby (2014-10-15 15:47:32)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2014-10-15 15:59:01

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: wrong font substitution in PDF

because I can't manually add an entry for every fonts I need to investigate on....

thanks for the moment @Trliby


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#6 2014-10-15 17:28:16

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: wrong font substitution in PDF

ok, I can fix my "issue" using

# fc-presets set ms

NB: it's a bin from fontconfig-infinality-ultimate...I don't know if and how you can do it with "vanilla" fontconfig tools...

PS: ohhh noooo...archlinux.org site use Sans as font....why?

Last edited by nTia89 (2014-10-15 17:28:26)


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

Board footer

Powered by FluxBB