|
| 1 | +Test 1 |
| 2 | +-font=ZQUEl8eS38RlsvEahHGNfnrbSswrcJKFwvlCdEttwcheuXvCN49MvWmndqj4 |
| 3 | +< /FindFont {/Times-Roman findfont} def |
| 4 | +> /FindFont {/ZQUEl8eS38RlsvEahHGNfnrbSswrcJKFwvlCdEttwcheuXvCN49MvWmndqj4 findfont} def |
| 5 | +-fontsize 2000 |
| 6 | +< /fontsize 24.000000 def |
| 7 | +> /fontsize 2000.000000 def |
| 8 | +< /descent 36.000000 def |
| 9 | +< /leftmargin 12.000000 def |
| 10 | +> /descent 3000.000000 def |
| 11 | +> /leftmargin 1000.000000 def |
| 12 | +-resolution 7200 |
| 13 | +-leftmargin=15 |
| 14 | +< /leftmargin 12.000000 def |
| 15 | +> /leftmargin 15.000000 def |
| 16 | +-rightmargin=20 |
| 17 | +< /rightmargin 0.000000 def |
| 18 | +> /rightmargin 20.000000 def |
| 19 | +-topmargin=10 |
| 20 | +< /topmargin 0.000000 def |
| 21 | +> /topmargin 10.000000 def |
| 22 | +-bottommargin=14 |
| 23 | +< /descent 36.000000 def |
| 24 | +> /descent 0.000000 def |
| 25 | +< /bottommargin 0.000000 def |
| 26 | +> /bottommargin 14.000000 def |
| 27 | +-ascent=30 |
| 28 | +< /ascent 0.000000 def |
| 29 | +> /ascent 30.000000 def |
| 30 | +-descent=20 |
| 31 | +< /descent 36.000000 def |
| 32 | +> /descent 20.000000 def |
| 33 | +-pad |
| 34 | +< /descent 36.000000 def |
| 35 | +> /descent 0.000000 def |
| 36 | +< /pad false def |
| 37 | +> /pad true def |
| 38 | +-crop |
| 39 | +< /descent 36.000000 def |
| 40 | +< /leftmargin 12.000000 def |
| 41 | +> /descent 0.000000 def |
| 42 | +> /leftmargin 0.000000 def |
| 43 | +-stroke 1 |
| 44 | +< /pensize -1.000000 def |
| 45 | +> /pensize 1.000000 def |
| 46 | +Test Invalid |
| 47 | +Expected failure 1 (-fontsize) 1 |
| 48 | +Expected failure 2 (-fontsize 0) 1 |
| 49 | +Expected failure 3 (-resolution) 1 |
| 50 | +Expected failure 4 (-resolution=0) 1 |
| 51 | +Expected failure 5 (-leftmargin) 1 |
| 52 | +Expected failure 6 (-leftmargin -1) 1 |
| 53 | +Expected failure 7 (-rightmargin) 1 |
| 54 | +Expected failure 8 (-rightmargin -1) 1 |
| 55 | +Expected failure 9 (-topmargin) 1 |
| 56 | +Expected failure 10 (-topmargin -1) 1 |
| 57 | +Expected failure 11 (-bottommargin) 1 |
| 58 | +Expected failure 12 (-bottommargin -1) 1 |
| 59 | +Expected failure 13 (-ascent) 1 |
| 60 | +Expected failure 14 (-ascent -1) 1 |
| 61 | +Expected failure 15 (-descent) 1 |
| 62 | +Expected failure 16 (-descent -1) 1 |
| 63 | +Expected failure 17 (-stroke=A) 1 |
| 64 | +Expected failure 18 (-pad -crop) 1 |
| 65 | +Expected failure 19 (-font="") 1 |
0 commit comments