LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2013, 01:00 AM   #1
Mann_engg
LQ Newbie
 
Registered: May 2013
Posts: 4

Rep: Reputation: Disabled
Install new Font HelveticaNeue-LightExt for ghostscript


I am converting pdf to JPEG using ghost script,but somehow it failed.

When I executed below command ,I came to know that it is problem of non availability of Font.

/# gs -dBATCH -dNOPAUSE -sDEVICE=nullpage test.pdf
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 3.
Page 1
Can't find (or can't open) font file /usr/share/ghostscript/8.63/Resource/Font/HelveticaNeue-LightExt.
Can't find (or can't open) font file HelveticaNeue-LightExt.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/8.63/Resource/Font/HelveticaNeue-LightExt.
Can't find (or can't open) font file HelveticaNeue-LightExt.
Didn't find this font on the system!
Substituting font Helvetica for HelveticaNeue-LightExt.
Loading NimbusSanL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n019003l.pfb... 2647800 1276882 5842040 4535895 3 done.
Error: /rangecheck in --run--
Operand stack:
--nostringval-- --dict:7/16(L)-- --dict:13/15(ro)(L)-- 87 W -string-
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 3 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- %finish_show --nostringval-- --nostringval-- 8 9 2 --nostringval-- (gs_show_enum) %op_show_continue
Dictionary stack:
--dict:1149/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:27/40(L)--
Current allocation mode is local
GPL Ghostscript 8.63: Unrecoverable error, exit code 1


I googled a lot ,everyone specifies one path for fonts
------------------------------------------------------------
cd /usr/share/ghostscript/8.63/Resource/Font/


I have only 2 files in it,there are no any other font.
they are Dingbats and StandardSymL

I found fonts in :
------------------------
# cd /var/lib/defoma/gs.d/dirs/fonts
root@test:/var/lib/defoma/gs.d/dirs/fonts# ls
CIDFnmap DejaVuSansMono-BoldOblique.ttf FAPIfontmap Malige-t.ttf b018012l.pfb dotum.ttf lohit_ta.ttf n021003l.pfb p052024l.pfb
DejaVuSans-Bold.ttf DejaVuSansMono-Oblique.ttf Fontmap


Can anyone help me know how do I install new font and make it available for ghostscript.
 
Old 08-28-2013, 01:57 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
without knowing what operating system you are using
i can really only say :
Use your package manager to install it

or for your normal user ,fonts can be installed to ~/.font ( home/UserName/.font)
 
Old 08-28-2013, 02:03 AM   #3
Mann_engg
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Operating system is Linux

I am using Linux.
Do I just need to copy paste .ttf file???


I just tried the following :
--------------------------------
Added HelveticaNeue_Lt.ttf in /var/lib/defoma/gs.d/dirs/fonts directory
and added entry into Fontmap:

#> gs -dBATCH -dNOPAUSE -sDEVICE=nullpage test.pdf
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 3.
Page 1
Loading HelveticaNeue-LightExt font from HelveticaNeue_Lt.ttf... 2570848 1045255 5740008 4408571 3 done.
Using HelveticaNeueLight font for HelveticaNeue-LightExt.
Error: /typecheck in --run--
Operand stack:
--nostringval-- --dict:7/16(L)-- --dict:13/15(ro)(L)-- 87 W 58
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 3 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- %finish_show --nostringval-- --nostringval-- 8 9 2 --nostringval-- (gs_show_enum) %op_show_continue
Dictionary stack:
--dict:1149/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:27/40(L)--
Current allocation mode is local
GPL Ghostscript 8.63: Unrecoverable error, exit code 1


Still it is giving error.Please help
 
Old 08-28-2013, 02:26 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
I am using Linux.
Linux is NOT the operating system it is the hardware/software kernel
linux is the bit of code that sits between the OPERATING SYSTEM and the hardware
some os's use "yum"
some os's use "apt-get"
some are RPM based
some are DEB based

some are in the redhat family of OS's
some are in the Debian family of OS's

when you boot
WHAT is the NAME on the boot screen

also have you used google?
google "HelveticaNeue-LightExt" and that returns a LOT of info
7 of the top 10 are FONT web sites , where you can get it


for installing to ONLY your normal user ( you) copy/past it to /home/YourYserName/.font
it is a hidden "dot" folder

Last edited by John VV; 08-28-2013 at 02:28 AM.
 
Old 08-28-2013, 02:46 AM   #5
Mann_engg
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
There is not need to add entry in Fontmap???

To make available fonts for ghostscript,I would need to add entry of font in Fontmap ??/
 
Old 08-28-2013, 08:07 AM   #6
cyberpatrol
Member
 
Registered: Dec 2012
Posts: 75

Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
Linux is NOT the operating system it is the hardware/software kernel
linux is the bit of code that sits between the OPERATING SYSTEM and the hardware
Sorry, that I have to correct you and go a bit off topic, but Linux IS the operating system. The operating system IS the "bit of code" that sits between the hardware and the user space.

What you mean is the Linux distribution. OpenSUSE, Fedora, Gentoo, Arch Linux etc. are the distributions, not the operating systems. Linux distributions are just collections of software put together and around the Linux kernel, so that the user can easily install the "operating system" and get a computer up and running easily with all of the user applications like web browsers, e-mail clients, office suites etc. This includes different package managers.

See also: https://en.wikipedia.org/wiki/Operating_system
Even if this article isn't completely correct, too, since in the strict sense the operating system is not GNU/Linux, but Linux. GNU is "just" a set of essential user space tools without which the operating system (Linux) wouldn't be very usable. So in a not so strict sense you could call GNU/Linux an operating system, too, to honour the importance and the work of GNU.

https://en.wikipedia.org/wiki/Linux_distribution is totally wrong in this respect. In this article the term "operating system" is used in its colloquial, not in its technical term.

Last edited by cyberpatrol; 08-28-2013 at 08:10 AM.
 
Old 08-28-2013, 02:58 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:

To make available fonts for ghostscript,I would need to add entry of font in Fontmap ??/
for just the single user
just place it in ~./font

or in a folder in "/usr/share/font" for system wide
-- then reboot
that is all there is to it

there is NO "installing" like on a windows system

Last edited by John VV; 08-28-2013 at 03:00 PM.
 
1 members found this post helpful.
  


Reply

Tags
ghostscript, ghostscript fonts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install GhostScript into a home directory djlerman Linux - Software 2 06-12-2013 11:41 AM
Ghostscript , font problem? J_Szucs Linux - Software 3 09-02-2010 08:35 AM
emerge fails while trying to install ghostscript ub3rj3phf Linux - Software 2 03-19-2007 04:10 PM
How to install ghostscript? riklee Linux - Software 1 09-15-2003 07:21 AM
Requesting Ghostscript Install Help AlfredSka Slackware 1 03-23-2003 02:57 PM


All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration