annotate runtime/print/cidfont.ps @ 15623:e3ddffe48d17 v8.1.0819

patch 8.1.0819: a failed assert with a long string is hard to read commit https://github.com/vim/vim/commit/865767126e97d9ac65e052a657b29bbc32dcb512 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 25 20:48:33 2019 +0100 patch 8.1.0819: a failed assert with a long string is hard to read Problem: A failed assert with a long string is hard to read. Solution: Shorten the assert message.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Jan 2019 21:00:14 +0100
parents 631143ac4a01
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
1 %!PS-Adobe-3.0 Resource-ProcSet
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
2 %%Title: VIM-CIDFont
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
3 %%Version: 1.0 0
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
4 %%EndComments
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
5 % Editing of this file is NOT RECOMMENDED. You run a very good risk of causing
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
6 % all PostScript printing from VIM failing if you do. PostScript is not called
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
7 % a write-only language for nothing!
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
8 /CP currentpacking d T setpacking
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
9 /SB 256 string d
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
10 /CIDN? systemdict/composefont known d /GS? systemdict/.makeoperator known d
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
11 CIDN?{
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
12 GS?{/vim_findresource{2 copy resourcestatus not{1 index SB cvs runlibfile}{
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
13 pop pop}ifelse findresource}bd/vim_composefont{0 get/CIDFont vim_findresource
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
14 exch/CMap vim_findresource exch[exch]composefont pop}bd}{/vim_findresource
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
15 /findresource ld/vim_composefont{composefont pop}bd}ifelse
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
16 }{
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
17 /vim_fontname{0 get SB cvs length dup SB exch(-)putinterval 1 add dup SB exch
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
18 dup 256 exch sub getinterval 3 -1 roll exch cvs length add SB exch 0 exch
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
19 getinterval cvn}bd/vim_composefont{vim_fontname findfont d}bd
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
20 } ifelse
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
21 /cfs{exch scalefont d}bd
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
22 /sffs{findfont 3 1 roll 1 index mul exch 2 index/FontMatrix get matrix copy
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
23 scale makefont d}bd
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
24 CP setpacking
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
25 % vim:ff=unix:
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
26 %%EOF