Bug 46073 - ghostscript не видит фонта verdana
Summary: ghostscript не видит фонта verdana
Status: NEW
Alias: None
Product: Simply Linux
Classification: Distributions
Component: bugs (show other bugs)
Version: 10.1
Hardware: x86_64 Linux
: P5 normal
Assignee: Mikhail Efremov
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-05 12:33 MSK by ЧМК
Modified: 2023-05-05 12:33 MSK (History)
0 users

See Also:


Attachments
файл с мегафона (382.37 KB, application/pdf)
2023-05-05 12:33 MSK, ЧМК
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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<<