6868 /text1font /Helvetica def
6969 /text1size 12.0 def
7070 /text1xoffset 7.25 def
71- /text1yoffset -0 .25 def
71+ /text1yoffset -5 .25 def
7272 /height -1.0 def
73+ /guarddescent 5 def
7374 /width 0 def
7475
7576 /propspec false def
@@ -136,6 +137,8 @@ begin
136137 /ean8 ast /apply_ast //render exec not { //raiseerror exec } if
137138 /resolve_strictspec //render exec
138139
140+ /descent guarddescent modunit mul 72 div def % Guard bar descent
141+
139142 %
140143 % Add checksum digit
141144 %
@@ -211,15 +214,15 @@ begin
211214 /height /resolve_height //render exec dup -1 eq { pop 1.0 } if def
212215
213216 includetext {
214- /descent 5 modunit mul 72 div def % Guard bar descent: 5X
215- /bhs [height height 8{height descent sub }repeat height height 8{height descent sub }repeat height height ] def
216- /bbs [0 0 8{descent }repeat 0 0 8{descent }repeat 0 0 ] def
217+ /guardheight height descent add def
218+ /bhs [guardheight guardheight 8{height}repeat guardheight guardheight 8{height}repeat guardheight guardheight ] def
219+ /bbs [descent neg descent neg 8{0 }repeat descent neg descent neg 8{0 }repeat descent neg descent neg ] def
217220 } {
218221 /bhs [22{height}repeat] def
219222 /bbs [22{0}repeat] def
220223 /txt [] def
221224 } ifelse
222- /guardrightypos 0 .0 def
225+ /guardrightypos -5 .0 def
223226
224227 %
225228 % Append the addon
@@ -228,6 +231,7 @@ begin
228231 /addopts <<
229232 /includetext true
230233 /height height includetext { 0.15 sub } if
234+ /guarddescent guarddescent
231235 /text1xoffset addontextxoffset null ne {addontextxoffset} {70.25 addongap add} ifelse
232236 addontextyoffset null ne {/text1yoffset addontextyoffset} if
233237 /text1size addontextsize null ne {addontextsize} {text1size} ifelse
@@ -253,12 +257,13 @@ begin
253257 /txt txt
254258 /opt options
255259 /guardleftpos 7.0
260+ /guardleftypos -5.0
256261 /guardrightpos addon () eq {7.0} {5.0} ifelse
257262 /guardrightypos guardrightypos
258263 /borderleft 7.0
259264 /borderright addon () eq {7.0} {5.0} ifelse
260265 /bordertop 0.0
261- /borderbottom 5.0
266+ /borderbottom 5.0 guarddescent modunit mul add
262267 /strictspec strictspec
263268 /loosespec loosespec
264269 /xdim xdim
0 commit comments