Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3037 > unrolled thread
| Started by | Jinsong Zhao <jszhao@yeah.net> |
|---|---|
| First post | 2017-04-07 11:45 +0800 |
| Last post | 2017-04-21 09:36 +0800 |
| Articles | 7 — 2 participants |
Back to article view | Back to comp.lang.postscript
where to put custom CMap file? Jinsong Zhao <jszhao@yeah.net> - 2017-04-07 11:45 +0800
Re: where to put custom CMap file? ken <ken@spamcop.net> - 2017-04-07 07:58 +0100
Re: where to put custom CMap file? Jinsong Zhao <jszhao@yeah.net> - 2017-04-09 15:39 +0800
Re: where to put custom CMap file? ken <ken@spamcop.net> - 2017-04-10 07:56 +0100
Re: where to put custom CMap file? Jinsong Zhao <jszhao@yeah.net> - 2017-04-18 11:27 +0800
Re: where to put custom CMap file? ken <ken@spamcop.net> - 2017-04-18 16:05 +0100
Re: where to put custom CMap file? Jinsong Zhao <jszhao@yeah.net> - 2017-04-21 09:36 +0800
| From | Jinsong Zhao <jszhao@yeah.net> |
|---|---|
| Date | 2017-04-07 11:45 +0800 |
| Subject | where to put custom CMap file? |
| Message-ID | <oc71ri$3mq$1@dont-email.me> |
Hi there, I am using ghostscript on Windows system. The ghostscript 9.21 for Windows don't have Resource directory. So, my question is, where I can place custom CMap file and corresponding CIDfont. In my case, I hope to use SourceHanSerifSC-Regular.otf and the correspoinding CMap file UniSourceHanSerifCN-UTF8-H. Thanks for any suggestions and hints. Best, Jinsong
[toc] | [next] | [standalone]
| From | ken <ken@spamcop.net> |
|---|---|
| Date | 2017-04-07 07:58 +0100 |
| Message-ID | <MPG.335149042339849c989915@usenet.plus.net> |
| In reply to | #3037 |
In article <oc71ri$3mq$1@dont-email.me>, jszhao@yeah.net says... > > Hi there, > > I am using ghostscript on Windows system. The ghostscript 9.21 for > Windows don't have Resource directory. So, my question is, where I can > place custom CMap file and corresponding CIDfont. In my case, I hope to > use SourceHanSerifSC-Regular.otf and the correspoinding CMap file > UniSourceHanSerifCN-UTF8-H. The Windows version of Ghostscript uses a ROM file system by default. You need to get a copy of the source code, add the files to the relevant sub-directories of ghostpdl/Resource and then either : 1) rebuild Ghostscript so that the ROM file system contains the new files. You could also rebuild Ghostscript so that it doesn't use the ROM file system and then use option 2 below, but there's no great advantage to that. Or 2) Use the existing binary but tell Ghostscript to include an external path in its search for resources, using the -I switch to add your modified directory tree to the search. Ken
[toc] | [prev] | [next] | [standalone]
| From | Jinsong Zhao <jszhao@yeah.net> |
|---|---|
| Date | 2017-04-09 15:39 +0800 |
| Message-ID | <occoam$qpb$1@dont-email.me> |
| In reply to | #3038 |
On 2017/4/7 14:58, ken wrote: > In article <oc71ri$3mq$1@dont-email.me>, jszhao@yeah.net says... >> >> Hi there, >> >> I am using ghostscript on Windows system. The ghostscript 9.21 for >> Windows don't have Resource directory. So, my question is, where I can >> place custom CMap file and corresponding CIDfont. In my case, I hope to >> use SourceHanSerifSC-Regular.otf and the correspoinding CMap file >> UniSourceHanSerifCN-UTF8-H. > > The Windows version of Ghostscript uses a ROM file system by default. > You need to get a copy of the source code, add the files to the relevant > sub-directories of ghostpdl/Resource and then either : > > 1) rebuild Ghostscript so that the ROM file system contains the new > files. You could also rebuild Ghostscript so that it doesn't use the ROM > file system and then use option 2 below, but there's no great advantage > to that. > > Or > > 2) Use the existing binary but tell Ghostscript to include an external > path in its search for resources, using the -I switch to add your > modified directory tree to the search. > > > > Ken > Thank you very much for the explanation. However, it's not easy to rebuild Ghostscript on Windows. Do you have any plan or option to provide the Ghostscript that doesn't use the ROM file system? Thanks again. Best, Jinsong
[toc] | [prev] | [next] | [standalone]
| From | ken <ken@spamcop.net> |
|---|---|
| Date | 2017-04-10 07:56 +0100 |
| Message-ID | <MPG.33553cfc2e489209989916@usenet.plus.net> |
| In reply to | #3041 |
In article <occoam$qpb$1@dont-email.me>, jszhao@yeah.net says... > Thank you very much for the explanation. However, it's not easy to > rebuild Ghostscript on Windows. I don't see why not. Get hold of a copy of Visual Studio from Microsoft; the community edition can be downlaoded for free, and Ghostscript qualifies for using it, as its open source. Open the ghostpdl.sln file, and allow VS to update it. Then just compile the Ghostscript project. If you prefer command lines, then open the VS command shell from the start menu, navigate to the ghostpdl directory and "nmake -f psi/msvc.mak" > Do you have any plan or option to > provide the Ghostscript that doesn't use the ROM file system? No. As I said before, you need not even rebuild Ghostscript. You *will* need the source code, because that's where the resource files can be found. Once you have thosse file locally, modify them as you see fit and then use the -I switch to tell Ghostscript to 'Include' those files. if you read the documentation here: https://ghostscript.com/doc/9.21/Use.htm#Finding_files then you will see that Ghostscript will search for resrouce files in the Included (-I) directories before it searches the ROM file system. If its too much work to specify the directory on the command line every time, then you can set the GS_LIB environment variable, which *still* gets searched before the ROM file system. Ken
[toc] | [prev] | [next] | [standalone]
| From | Jinsong Zhao <jszhao@yeah.net> |
|---|---|
| Date | 2017-04-18 11:27 +0800 |
| Message-ID | <od40up$ih4$1@dont-email.me> |
| In reply to | #3043 |
On 2017/4/10 14:56, ken wrote: > In article <occoam$qpb$1@dont-email.me>, jszhao@yeah.net says... > >> Thank you very much for the explanation. However, it's not easy to >> rebuild Ghostscript on Windows. > > I don't see why not. Get hold of a copy of Visual Studio from Microsoft; > the community edition can be downlaoded for free, and Ghostscript > qualifies for using it, as its open source. > > Open the ghostpdl.sln file, and allow VS to update it. Then just compile > the Ghostscript project. If you prefer command lines, then open the VS > command shell from the start menu, navigate to the ghostpdl directory > and "nmake -f psi/msvc.mak" > > >> Do you have any plan or option to >> provide the Ghostscript that doesn't use the ROM file system? > > No. As I said before, you need not even rebuild Ghostscript. You *will* > need the source code, because that's where the resource files can be > found. > > Once you have thosse file locally, modify them as you see fit and then > use the -I switch to tell Ghostscript to 'Include' those files. if you > read the documentation here: > > https://ghostscript.com/doc/9.21/Use.htm#Finding_files > > then you will see that Ghostscript will search for resrouce files > in the Included (-I) directories before it searches the ROM file system. > > If its too much work to specify the directory on the command line every > time, then you can set the GS_LIB environment variable, which *still* > gets searched before the ROM file system. > > Ken > Thank you very much. It works. It's convenient for me to use some special fonts for a specific situation. Best, Jinsong
[toc] | [prev] | [next] | [standalone]
| From | ken <ken@spamcop.net> |
|---|---|
| Date | 2017-04-18 16:05 +0100 |
| Message-ID | <MPG.33603ba3ed54a0bf989918@usenet.plus.net> |
| In reply to | #3047 |
In article <od40up$ih4$1@dont-email.me>, jszhao@yeah.net says... > Thank you very much. It works. It's convenient for me to use some > special fonts for a specific situation. You can add fonts even without the resource files, its in the documentation. Ken
[toc] | [prev] | [next] | [standalone]
| From | Jinsong Zhao <jszhao@yeah.net> |
|---|---|
| Date | 2017-04-21 09:36 +0800 |
| Message-ID | <odbng8$q3l$1@dont-email.me> |
| In reply to | #3049 |
On 2017/4/18 23:05, ken wrote: > In article <od40up$ih4$1@dont-email.me>, jszhao@yeah.net says... > > >> Thank you very much. It works. It's convenient for me to use some >> special fonts for a specific situation. > > You can add fonts even without the resource files, its in the > documentation. > > > Ken > I want to add not only fonts, but also the specific CMap files. Thank you again for kind help. Best, Jinsong
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.postscript
csiph-web