Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#55311 closed defect (fixed)

ghostscript-fonts-hiragino cannot convert Japanese fonts

Reported by: kazu-yamamoto (Kazu Yamamoto) Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: highsierra Cc: kobayos
Port: ghostscript-fonts-hiragino

Description

  • ghostscript-fonts-hiragino @9.21_0+alias (active)
  • MacPorts 2.4.2 on High Sierra

Though ghostscript-fonts-hiragino 9.21 works perfectly on Sierra, it does not convert Japanese fonts in PostScript files to PDF. PDF results in, so called, mojibake.

I have cleanly installed MacPorts then installed ghostscript-fonts-hiragino 9.21 with Hiragino fonts. The files in "/opt/local/share/ghostscript/9.21/Resource/Font/" were certainly created. I have no idea to resolve this issue.

Attachments (1)

Portfile.patch (358 bytes) - added by kobayos 7 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: highsierra added
Port: ghostscript-fonts-hiragino added

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Version: 2.4.2

comment:3 Changed 7 years ago by kazu-yamamoto (Kazu Yamamoto)

I found the reason why this happens. The current version ghostscript is 9.22 but ghostscript-fonts-hiragino assumes 9.21. I confirmed that just upgrading ghostscript-fonts-hiragino to ghostscript v9.22 works well by copying all files in /opt/local/share/ghostscript/9.21 to /opt/local/share/ghostscript/9.22.

comment:4 Changed 7 years ago by kazu-yamamoto (Kazu Yamamoto)

I guess that just s/9.21/9.22/ in Portfile works.

comment:5 Changed 7 years ago by mf2k (Frank Schima)

When I make the change and try to build it, I see the following error:

--->  Staging ghostscript-fonts-hiragino into destroot
Error: Failed to destroot ghostscript-fonts-hiragino: Font file "/opt/local/share/fonts/otf/Hiragino/ヒラギノ角ゴ Pro W3.otf" is not found. 
If you have former versions of OS X such as Yosemite, copy the font file from it.

comment:6 Changed 7 years ago by kazu-yamamoto (Kazu Yamamoto)

Yes. This is intentional. You need to follow the instruction if you want to install this package. For more informatio, see:

https://trac.macports.org/ticket/49279

Changed 7 years ago by kobayos

Attachment: Portfile.patch added

comment:7 Changed 7 years ago by kobayos

I made a patch to update ghostscript-fonts-hiragino for ghostscript-9.22. I confirmed the patch worked fine on my high sierra system.

comment:8 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to mf2k
Resolution: fixed
Status: newclosed

In 65989d811d09b3662844a7c7aff6758fce875ce7/macports-ports:

ghostscript-fonts-hiragino: Fix to allow conversion of Japanese fonts

Fixes: #55311

comment:9 Changed 7 years ago by kazu-yamamoto (Kazu Yamamoto)

Thank you for fixing this!

Note: See TracTickets for help on using tickets.