Summary: | media-fonts/acroread-asianfonts: not picked up by ghostscript (CRITICAL for Chinese/Japanese/Korean) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Walter <walter> |
Component: | New packages | Assignee: | CJK Team <cjk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 249871 | ||
Bug Blocks: |
Description
Walter
2008-11-24 06:40:42 UTC
Is your ghostscript-gpl emerged with cjk useflag ? Yes, 'cjk' is in the USE flags. This seems to install some additional fonts, but does not establish relationships with standard Adobe fonts (used on all other platforms for PDFs, also used in acroread and available through portage) OR establish working aliases instead. Just tried on a friend's workstation - this functionality works on Ubuntu... Any news? sorry for delay. I heard that acroread-asianfonts could be used only for Adobe Reader due to the license issue. It works on Ubuntu? Maybe they are using some of the free fonts (also available on Gentoo) as substitutes for the standard Acrobat Asian fonts (eg: AdobeSong* for Chinese). I tried to get this working by manually editing the Ghostscript Fontmap file (and others), but had no success. Ubuntu has a very complex intermediary font configuration engine that is difficult to directly copy settings from. hmm, the file.pdf works for me.
$ gs file.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 1.
Page 1
Substituting CID font resource/Adobe-GB1 for /STSongStd-Light-Acro.
Loading a TT font from /usr/share/fonts/arphicfonts/gbsn00lp.ttf to emulate a CID font BousungEG-Light-GB ... Done.
Substituting CID font resource/Adobe-GB1 for /STSongStd-Light-Acro.
>>showpage, press <return> to continue<<
Great news! But it won't work for me. Can you tell me which versions of relevant packages you have installed? # emerge --search arphic Searching... [ Results for search key : arphic ] [ Applications found : 1 ] * media-fonts/arphicfonts Latest version available: 0.1.20060928 Latest version installed: 0.1.20060928 Size of files: 40,522 kB Homepage: http://www.arphic.com.tw/ http://www.freedesktop.org/wiki/Software_2fCJKUnifonts Description: Chinese TrueType Arphic Fonts License: Arphic .......... # gs -sDEVICE=pngmono file.pdf GPL Ghostscript 8.62 (2008-02-29) 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 1. Page 1 Substituting CID font resource/Adobe-GB1 for /STSongStd-Light-Acro. Loading a TT font from /usr/share/fonts/arphicfonts/gbsn00lp.ttf to emulate a CID font BousungEG-Light-GB ... Done. Error: /invalidfont in --.buildcidfont-- Operand stack: --nostringval-- --dict:5/14(L)-- F2 20.0 --dict:5/5(L)-- --dict:5/5(L)-- STSongStd-Light-Acro,Bold-GBK-EUC-H --dict:10/12(ro)(G)-- --nostringval-- --dict:6/6(L)-- --dict:6/6(L)-- Adobe-GB1 CIDFont true Adobe-GB1 Adobe-GB1 -1 true BousungEG-Light-GB BousungEG-Light-GB BousungEG-Light-GB --dict:25/25(G)-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1889 1 3 %oparray_pop 1888 1 3 %oparray_pop 1872 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- 1840 13 9 %oparray_pop findresource %errorexec_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- 1848 21 10 %oparray_pop --nostringval-- Dictionary stack: --dict:1145/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:25/40(L)-- --dict:20/26(ro)(G)-- Current allocation mode is local GPL Ghostscript 8.62: Unrecoverable error, exit code 1 So I tried to clean my installation back to the standard portage version... # emerge -C ghostscript-gpl && emerge ghostscript-gpl (...snip...) # emerge -C arphicfonts && emerge arphicfonts (...snip...) # gs -sDEVICE=pngmono file.pdf No difference... still crashes. :( I noticed you have ghostscript version 8.63, would this make a difference? ok, I reproduce the issue in another gentoo machine. it is fixed in ghostscript-gpl-8.63. depends on #249871. Great news! But I upgraded and now I get a different error. # gs -sDEVICE=pngmono file.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 1. Page 1 Substituting CID font resource/Adobe-GB1 for /STSongStd-Light-Acro. Loading a TT font from /usr/share/fonts/arphicfonts/gbsn00lpGPL Ghostscript 8.63: **** Could not open the file . .ttf to emulate a CID font BousungEG-Light-GB ... Done. Substituting CID font resource/Adobe-GB1 for /STSongStd-Light-Acro. Error: /invalidfileaccess in --showpage-- Operand stack: --nostringval-- 1 true Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1889 1 3 %oparray_pop 1888 1 3 %oparray_pop 1872 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1761 1 9 %oparray_pop --nostringval-- --nostringval-- Dictionary stack: --dict:1145/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:24/40(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript 8.63: Unrecoverable error, exit code 1 # ls /usr/share/fonts/arphicfonts/ bkai00mp.ttf bsmi00lp.ttf encodings.dir fonts.dir fonts.scale gbsn00lp.ttf gkai00mp.ttf ukai.ttf uming.ttf I tried upgrading to media-fonts/arphicfonts-0.2.20080216.1 but no difference. My eselect fontconfig: # eselect fontconfig list Available fontconfig .conf files ( * is enabled ): [1] 10-autohint.conf [2] 10-no-sub-pixel.conf [3] 10-sub-pixel-bgr.conf [4] 10-sub-pixel-rgb.conf [5] 10-sub-pixel-vbgr.conf [6] 10-sub-pixel-vrgb.conf [7] 10-unhinted.conf [8] 20-fix-globaladvance.conf * [9] 20-unhint-small-vera.conf * [10] 25-ttf-arphic-ukai-render.conf [11] 25-ttf-arphic-uming-bitmaps.conf [12] 25-ttf-arphic-uming-render.conf [13] 25-unhint-nonlatin.conf [14] 30-metric-aliases.conf * [15] 30-urw-aliases.conf * [16] 35-ttf-arphic-ukai-aliases.conf * [17] 35-ttf-arphic-uming-aliases.conf * [18] 40-nonlatin.conf * [19] 41-ttf-arphic-ukai.conf * [20] 41-ttf-arphic-uming.conf * [21] 45-latin.conf * [22] 49-sansserif.conf * [23] 50-user.conf * [24] 51-local.conf * [25] 60-latin.conf * [26] 64-ttf-arphic-uming.conf [27] 65-fonts-persian.conf * [28] 65-nonlatin.conf * [29] 69-unifont.conf * [30] 70-no-bitmaps.conf [31] 70-yes-bitmaps.conf [32] 75-ttf-arphic-ukai-select.conf * [33] 80-delicious.conf * [34] 90-synthetic.conf * [35] 90-ttf-arphic-ukai-embolden.conf * [36] 90-ttf-arphic-uming-embolden.conf * OutputFile argument is required for DEVICE=pngmono. $ gs -sDEVICE=pngmono -sOutputFile=file.png file.pdf Great! Works now, thanks a lot! However, the default font substitution could be improved for our use case: Substituting CID font resource/Adobe-GB1 for /STSongStd-Light-Acro. ... this is too light a font for use on faxes. Could you tell me where in Gentoo's setup I can change this default to something heavier? (In reply to comment #13) > Substituting CID font resource/Adobe-GB1 for /STSongStd-Light-Acro. > > ... this is too light a font for use on faxes. Could you tell me where > in Gentoo's setup I can change this default to something heavier? See /usr/share/ghostscript/8.63/lib/cidfmap Ok, this is not fonts issue... Looks like this issue is resolved. Please, reopen if not. |