Hi All, I'm trying to install a postscript font. Mainly I need it to print correctly, but obviously it would be nice if it would be used by the preview tools too. However, I can't make it work at all. I have several copies of the font in different formats: GnuMICR.afm GnuMICR.pfa GnuMICR.pfm GnuMICR.ttf GnuMICR.otf GnuMICR.pfb GnuMICR.raw I can look at them in Konqueror, and I get a preview from any/all of them (except the metrics files). Then if I right click on them in Konqueror, and pick "actions-> install" it prompts me whether to install for system or local--I've tried both. There are no error messages generated, but I find: 1) if I let it install GnuMICR.otf for system use, then gs crashes trying to view a document that uses the font. 2) any other installation goes utterly unnoticed I guess it's possible (though seems unlikely since the preview works) that the GnuMICR.otf file is corrupt, but how can I get the postscript system (printing above all) to notice these fonts? Any one of them would be fine. Thanks in advance for any ideas! Cheers, Simon "You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." Naguib Mahfouz __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--- Simon Roberts
Hi All,
I'm trying to install a postscript font. Mainly I need it to print correctly, but obviously it would be nice if it would be used by the preview tools too.
However, I can't make it work at all. I have several copies of the font in different formats:
GnuMICR.afm GnuMICR.pfa GnuMICR.pfm GnuMICR.ttf GnuMICR.otf GnuMICR.pfb GnuMICR.raw
I can look at them in Konqueror, and I get a preview from any/all of them (except the metrics files). Then if I right click on them in Konqueror, and pick "actions-> install" it prompts me whether to install for system or local--I've tried both. There are no error messages generated, but I find:
1) if I let it install GnuMICR.otf for system use, then gs crashes trying to view a document that uses the font.
2) any other installation goes utterly unnoticed
Now I find that provided I only install one at a time, I get some progress. But only some... I have the GnuMICR.pfb file installed, and I find that a small test doucument that uses the font: 1) displays correctly in gs 2) _fails_ to display in gv (how can that be, isn't gv just a front-end to gs?) -- error report (rather verbose) below 3) fails to print using "lp test.ps" 4) _works_ on screen, and in printing, inside OpenOffice! What am I missing? (aside from my marbles :) Cheers, Simon Here's the error report from gv: Error: /invalidfileaccess in --.libfile-- Operand stack: GnuMICR Font GnuMICR 357654 GnuMICR --nostringval-- GnuMICR (/usr/local/share/fonts/GnuMICR.pfb) Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 0 --nostringval-- %repeat_continue --nostringval-- 2 --nostringval-- %repeat_continue --nostringval-- --nostringval-- --nostringval-- 1 3 %oparray_pop 2 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 5 4 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- 8 5 %oparray_pop --nostringval-- Dictionary stack: --dict:1131/3371(ro)(G)-- --dict:0/20(G)-- --dict:185/200(L)-- --dict:17/17(ro)(G)-- --dict:1131/3371(ro)(G)-- Current allocation mode is local Current file position is 24281 ESP Ghostscript 8.15.0: Unrecoverable error, exit code 1 and here's the test file: ------------------------------------ %! /GnuMICR findfont 12 scalefont setfont newpath 100 500 moveto (0123456789 A B C D) show stroke showpage ------------------------------------ "You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." Naguib Mahfouz __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Wednesday 11 January 2006 21:55, Simon Roberts wrote:
Hi All,
I'm trying to install a postscript font. Mainly I need it to print correctly, but obviously it would be nice if it would be used by the preview tools too.
However, I can't make it work at all. I have several copies of the font in different formats:
GnuMICR.afm GnuMICR.pfa GnuMICR.pfm GnuMICR.ttf GnuMICR.otf GnuMICR.pfb GnuMICR.raw
I can look at them in Konqueror, and I get a preview from any/all of them (except the metrics files). Then if I right click on them in Konqueror, and pick "actions-> install" it prompts me whether to install for system or local--I've tried both. There are no error messages generated, but I find:
1) if I let it install GnuMICR.otf for system use, then gs crashes trying to view a document that uses the font.
2) any other installation goes utterly unnoticed
I guess it's possible (though seems unlikely since the preview works) that the GnuMICR.otf file is corrupt, but how can I get the postscript system (printing above all) to notice these fonts? Any one of them would be fine.
Thanks in advance for any ideas! Cheers, Simon =========== Simon, The easiest thing, I would suggest, is to drop the appropriate font into your system fonts directory. The YaST2 install procedure is nice and I've used it before, but I find the direct approach is easier for me.
If you want to use Truetype (.ttf), then put the GnuMICR.ttf font into your /usr/X11R6/lib/X11/fonts/truetype directory. I think the Type1 font would be better, so drop both the .afm & .pfb files into your /usr/X11R6/lib/X11/fonts/Type1 directory. Do not install more than one type! After putting the correct font files into the correct directory, run /sbin/SuSEconfig from a shell as root. That should make it available, but sometimes it doesn't, so you may have to restart X. The best way to do that is ctrl-alt-F1, login as root, init 3, then init 5 to get back to kde. That should give you the font system wide. regards, Lee
--- BandiPat
I'm trying to install a postscript font ... Simon, The easiest thing, I would suggest, is to drop the appropriate font into your system fonts directory. The YaST2 install procedure is nice and
I've used it before, but I find the direct approach is easier for me.
If you want to use Truetype (.ttf), then put the GnuMICR.ttf font into your /usr/X11R6/lib/X11/fonts/truetype directory. I think the Type1 font would be better, so drop both the .afm & .pfb files into your /usr/X11R6/lib/X11/fonts/Type1 directory. Do not install more than one type! After putting the correct font files into the correct
directory, run /sbin/SuSEconfig from a shell as root. That should make it available, but sometimes it doesn't, so you may have to restart X.
The best way to do that is ctrl-alt-F1, login as root, init 3, then init 5 to get back to kde.
That should give you the font system wide.
regards, Lee
Thanks for this. I think I must have confused something with my extensive messing around trying earlier. I have the font (I went with the Type 1) working well enough for my needs, but it still shows up well for gs, but not for gv and a number of other tools. However, it's not a problem for me, and in future, I'll know what I should do first time out, and hopefully that'll work. Thanks again, Cheers, Simon "You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." Naguib Mahfouz __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Simon Roberts wrote:
I'm trying to install a postscript font. [...] However, I can't make it work at all. I have several copies of the font in different formats:
GnuMICR.afm GnuMICR.pfa GnuMICR.pfm GnuMICR.ttf GnuMICR.otf GnuMICR.pfb GnuMICR.raw
A Type1 font consists of a .afm file, and a .pfa or .pfb file. (In Windows a Type1 or postscript font consists of .pfm and .pfa/.pfb.) A .otf ("Open Type Font") is a comparatively new format, I have not seen support for it in Linux yet. IMO, it would be best to shove both the .afm and the .pfa or .pfb into /usr/X11R6/lib/X11/fonts/Type1 (to install system wide) or into ~/.fonts (to install for one user) and run, as root, SuSEconfig -module fonts This way of installing fonts was introduced in SuSE 8.2, I've never had any problem with it.
participants (3)
-
BandiPat
-
Simon Roberts
-
Sjoerd Hiemstra