Slackware 14.0 64-bit Problem with Ghostview (gv) and Fonts
I'm getting strange (at least to me) error messages using
Code:
gv filename.ps Quote:
Something I've missed somewhere? I do have the Adobe Type Library installed (in /usr/local/share/fonts/Adobe) -- it's all PostScript -- along with other local font directories in /usr/local/share/fonts/[names] with the local.conf file in /etc/fonts (been working for years, those). Plus I have Code:
/var/log/packages/fontforge-20120731_b-x86_64-1_SBo |
What's in /usr/share/ghostscript/fonts/?
On my box, it's a link to /usr/share/fonts/Type1 |
Code:
ls /usr/share/ghostscript Tiz a puzzlement |
Is there a fonts.dir, fonts.scale & font.alias? If not, it doesn't see the fonts. cd to the directory and as root do
mkfontdir mkfontscale From the mkfontdir man page Quote:
|
Apparently, this goes back quite a ways (google gv missing font problem).
From July 2010: http://old.nabble.com/font-issues-td29164490.html -- the answer was libXt.patch, but it was for 1.0.7, not for 1.1.3 as in Slackware 14.0. Oh, phooey. OK, so look at another one, from September 2010: https://bugzilla.redhat.com/show_bug.cgi?id=634039. Lots of discussion about exactly the same problem (but Fedora-specific). There is one suggestion, Quote:
Subsequently, there is this post (referring to the above one): Quote:
I'm going to keep digging -- it certainly is strange that the identical errors occur in Slackware 14 that were appearing years ago, eh? |
Not really strange that the same error happened in the past, with similar consequences.
If you find a solution (in this case, running mkfontdir like I already suggested) check for it or do it. Otherwise, ignore the past. Have you fonts.dir wuith a line for each of your fonts? |
Both fonts.dir and fonts.scale contain 593 indexes for the font files found in /usr/share/ghostscript/fonts (which is actually a symbolic link to /usr/share/fonts/Type1).
I have a 13.37 box (gv, ghostscript and ghostscript-fonts are the same versions on 13.37 and 14.0 and I'm doing compares to find any differences. None have turned up as yet. |
try /etc/fonts/*.conf. IIRC, fonts.conf should be left alone, but you can add local.conf with any additions
|
OK, finally got a little bit schmarter; a Google search for "Missing charsets in String to FontSet conversion" turned up the answer at http://www-01.ibm.com/support/docvie...id=swg21146408 -- it's the locale, stupid.
You know those warnings about UTF-8 in /etc/profile.d/lang.sh? Well, they're true -- you're going to get the messages from gv with a UTF-8 locale but if you put it back to LANG=en_US you don't. Dammit. |
All times are GMT -5. The time now is 09:39 PM. |