#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)
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)
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:
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: | new → closed |
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.