<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32427</bug_id>
          
          <creation_ts>2016-08-24 21:13:58 +0300</creation_ts>
          <short_desc>Ghostscript does not find base fonts</short_desc>
          <delta_ts>2016-08-30 16:35:10 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>fontconfig-infinality</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Liakhovets">a.o.liakh</reporter>
          <assigned_to name="cow@altlinux.org">cow</assigned_to>
          <cc>cow</cc>
    
    <cc>mike</cc>
    
    <cc>vladimir.didenko</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>158270</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Liakhovets">a.o.liakh</who>
    <bug_when>2016-08-24 21:13:58 +0300</bug_when>
    <thetext>fontconfig-infinality-1-alt6.git20130126
ghostscript-9.16-alt0.M70P.1

(для Сизифа и P8 это тоже должно проявляться)

В файле /etc/fonts/infinality/infinality.conf запрещены шрифты Type 1.
В результате ghostscript фактически не работает (для ps-файлов с текстом,
требующим не встроенных базовых шрифтов, -- наиболее частый случай).

В командной строке это можно увидеть так:

$ gs -sDEVICE=nullpage -dBATCH -c &apos;(Times-Bold) findfont&apos;
GPL Ghostscript 9.16 (2015-03-30)
Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can&apos;t find (or can&apos;t open) font file /usr/share/ghostscript/9.16/Resource/Font/NimbusRomNo9L-Medi.
Can&apos;t find (or can&apos;t open) font file NimbusRomNo9L-Medi.
Can&apos;t find (or can&apos;t open) font file /usr/share/ghostscript/9.16/Resource/Font/NimbusRomNo9L-Medi.
Can&apos;t find (or can&apos;t open) font file NimbusRomNo9L-Medi.
Querying operating system for font files...
Can&apos;t find (or can&apos;t open) font file /usr/share/ghostscript/9.16/Resource/Font/NimbusRomNo9L-Medi.
Can&apos;t find (or can&apos;t open) font file NimbusRomNo9L-Medi.
Didn&apos;t find this font on the system!
Substituting font Courier for NimbusRomNo9L-Medi.
Can&apos;t find (or can&apos;t open) font file /usr/share/ghostscript/9.16/Resource/Font/NimbusMonL-Regu.
Can&apos;t find (or can&apos;t open) font file NimbusMonL-Regu.
Can&apos;t find (or can&apos;t open) font file /usr/share/ghostscript/9.16/Resource/Font/NimbusMonL-Regu.
Can&apos;t find (or can&apos;t open) font file NimbusMonL-Regu.
Didn&apos;t find this font on the system!
Unable to substitute for font.
Error: /invalidfont in /findfont
Operand stack:
   Times-Bold
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1903   1   3   %oparray_pop
Dictionary stack:
   --dict:1185/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.16: Unrecoverable error, exit code 1

Есть несколько вариантов &quot;исправления&quot;:
- удалить fontconfig-infinality
- закомментировать запрет Type 1 в /etc/fonts/infinality/infinality.conf
 (и перестроить кэш)
- положить нужные шрифты локально для ghostscript&apos;а
- экспортировать GS_FONTPATH с подходящими директориями, например,
 с /usr/share/fonts/type1
- запускать gs, например, с -sFONTPATH=/usr/share/fonts/type1

По-моему, убрать запрет Type 1 в конфиге лучше всего.

Ссылки:
http://ghostscript.com/irclogs/2014/03/12.html
https://forums.gentoo.org/viewtopic-t-989836-start-0.html
http://tex.stackexchange.com/questions/151607/epstopdf-ghostscript-cant-find-fonts
https://bbs.archlinux.org/viewtopic.php?pid=1512496#p1512496
https://bbs.archlinux.org/viewtopic.php?id=162098&amp;p=65
...

И в нашей bugzilla&apos;е есть несколько багов, причина которых может быть именно
в этом запрете Type 1:
https://bugzilla.altlinux.org/show_bug.cgi?id=30962 -- закрыт
https://bugzilla.altlinux.org/show_bug.cgi?id=30892
https://bugzilla.altlinux.org/show_bug.cgi?id=30870 -- при печати (attachment)
https://bugzilla.altlinux.org/show_bug.cgi?id=30410</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158275</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-08-25 09:57:11 +0300</bug_when>
    <thetext>fontconfig-infinality-1-alt7.git20130126 -&gt; sisyphus:

* Thu Aug 25 2016 Vladimir Didenko &lt;cow@altlinux&gt; 1-alt7.git20130126
- don&apos;t ban Type-1 fonts (closes: #32427)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158349</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-08-30 16:35:10 +0300</bug_when>
    <thetext>Отметил изменение шрифтов по умолчанию в сегодняшней сборке regular-cinnamon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>