Bug 46073

Summary: ghostscript не видит фонта verdana
Product: Simply Linux Reporter: ЧМК <web_admin>
Component: bugsAssignee: Mikhail Efremov <sem>
Status: NEW --- QA Contact: Andrey Cherepanov <cas>
Severity: normal    
Priority: P5    
Version: 10.1   
Hardware: x86_64   
OS: Linux   
Attachments:
Description Flags
файл с мегафона none

Description ЧМК 2023-05-05 12:33:01 MSK
Created attachment 13120 [details]
файл с мегафона

Получили счёт из Мегафона. Если его печатать из браузера (пробовали на опера и хромиум), то некоторые строки печатаются иероглифами. Если файл печатать из atril, то нормально. Фонт есть в системе:
$ gs megafon.pdf
GPL Ghostscript 9.54.0 (2021-03-30)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 39.
Page 1
Can't find CID font "Verdana".
Attempting to substitute CID font /Adobe-Identity for /Verdana, see doc/Use.htm#CIDFontSubstitution.
The substitute CID font "Adobe-Identity" is not provided either. attempting to use fallback CIDFont.See doc/Use.htm#CIDFontSubstitution.
Loading a TT font from /usr/share/ghostscript/9.54.0/Resource/CIDFSubst/DroidSansFallback.ttf to emulate a CID font Adobe-Identity ... Done.
Can't find CID font "Verdana".
Attempting to substitute CID font /Adobe-Identity for /Verdana, see doc/Use.htm#CIDFontSubstitution.
%%BoundingBox: 53 266 555 814
%%HiResBoundingBox: 53.429694 266.057992 554.310967 813.545975
>>showpage, press <return> to continue<<

Прописал в /usr/share/ghostscript/9.54.0/Resource/Init/cidfmap:
Verdana << /FileType /TrueType /Path (/usr/share/fonts/ttf/ms/verdana.ttf) /SubfontID 0 /CSI [(Identity) 0] >> ;

$ gs magafon.pdf
GPL Ghostscript 9.54.0 (2021-03-30)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 39.
Page 1
%%BoundingBox: 53 266 555 814
%%HiResBoundingBox: 53.429694 266.057992 554.310967 813.545975
Loading a TT font from /usr/share/fonts/ttf/ms/verdana.ttf to emulate a CID font Verdana ... Done.
>>showpage, press <return> to continue<<