epstopdf/ghostscript에서 글꼴을 찾을 수 없습니다.

epstopdf/ghostscript에서 글꼴을 찾을 수 없습니다.

나는 다음과 같은 설정을 가지고 있습니다

$ epstopdf --version
epstopdf ($Id: epstopdf.pl 31784 2013-09-27 22:43:16Z karl $) 2.18

$ gs --version
9.10

$ tex --version
TeX 3.1415926 (TeX Live 2014/dev)

$ uname -a
Linux escritorio-01 3.12.5-302.fc20.x86_64 #1 SMP Tue Dec 17 20:42:32 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

일부 .eps 파일을 .pdf로 변환하려고 합니다. 다음 명령을 실행 중입니다.

$ epstopdf untitled.eps --debug
* kpsewhich command: kpsewhich
* Input filename: untitled.eps
* Output filename: untitled.pdf
* BoundingBox comment: %%BoundingBox:
* Ghostscript command: gs
* Compression: on
* Embedding: on
* Rotation: None
* Resolution: [use gs default]
* Ghostscript pipe: gs -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=untitled.pdf -dPDFSETTINGS=/prepress -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dAutoRotatePages=/None - -c quit
* Binary junk at start of file: 0 byte(s)
* Scanning header for BoundingBox
* Old BoundingBox: 81 227 529 564
* New BoundingBox: 0 0 448 337
* Offset: -81 -227
GPL Ghostscript 9.10 (2013-08-30)
Copyright (C) 2013 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file /usr/share/ghostscript/9.10/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.10/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/9.10/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Didn't find this font on the system!
Substituting font Courier for NimbusSanL-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.10/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.10/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Didn't find this font on the system!
Unable to substitute for font.
Error: /invalidfont in /findfont
Operand stack:
   120   Helvetica   ISOLatin1Encoding   Helvetica   Helvetica
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1884   1   3   %oparray_pop   1883   1   3   %oparray_pop   --nostringval--   1867   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   1836   5   5   %oparray_pop
Dictionary stack:
   --dict:1174/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--   --dict:94/160(L)--   --dict:8/85(L)--
Current allocation mode is local
Last OS error: Not a directory
GPL Ghostscript 9.10: Unrecoverable error, exit code 1
epstopdf ($Id: epstopdf.pl 31784 2013-09-27 22:43:16Z karl $) 2.18
!!! Error: Writing to gs failed, error code 1

이렇게 하면 .pdf 파일 공백이 생성됩니다. 관련 논의가 있는 것 같습니다.이 버그 보고서에서, 업데이트에 실패한 일부 캐시에 대해. 하지만 스레드의 기술 수준은 나를 능가합니다. 저는 고스트스크립트에 대해 전혀 모릅니다. 그럼에도 불구하고, ghostscript가 Nimbus* 글꼴을 찾을 수 없다는 것이 아니라 이를 대체하지 못하는 것이 문제인 것 같습니다. 누구든지 나를 도와줄 수 있나요? 감사해요!

편집됨: 해결책을 찾았습니다. 아래에 답변을 추가했습니다. 감사합니다 여러분

답변1

글쎄, 나는 마침내 문제를 해결했습니다. 이것은 답변보다 해결책에 가깝습니다. 보기에,어떤 종류의 갈등이 있습니다고스트스크립트와무한 패키지Unix에서 더 나은 글꼴 렌더링에 사용됩니다(Fedora의 기본 글꼴 렌더링은 끔찍합니다). 그래서 무한성을 제거해야합니다 :(

$ sudo yum remove -y freetype-infinality 

그리고 그게 다야,엡스토PDF 다시 일했습니다. 그리고 이제 다시 끔찍한 글꼴을 갖게 되었습니다!

아마도 글꼴, 고스트스크립트 및 무한성에 대해 조금 더 이해하는 사람이 이 스레드에 무슨 일이 일어나고 있는지에 대한 실제 답변을 추가할 수 있을 것입니다. 저처럼 단순한 솔루션이 아닙니다. 감사해요.

답변2


-sFONTPATH=...명령줄에서 직접 스위치를 사용하여 언제든지 Ghostscript에 글꼴을 찾을 위치를 구체적으로 알릴 수 있습니다 .

  gs -sFONTPATH=/usr/share/fonts;/some/other/path [...rest of command...]

또는 GS_FONTPATH환경 변수를 설정할 수 있습니다.

여러 글꼴 디렉토리의 경우 세미콜론을 ;구분 기호로 사용합니다.

관련 정보