aboutsummaryrefslogtreecommitdiff
path: root/troff/font/devutf/charlib/RC
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-05-16 08:02:19 +0000
committerwkj <devnull@localhost>2004-05-16 08:02:19 +0000
commit282ce666c3c009d63f554ef6c40e4cf7f150cca7 (patch)
tree4fc37ad22c79c8b66cc4e077267aa2c52aedca74 /troff/font/devutf/charlib/RC
parentb4bf678f388597855ba2e002a5b8339ba828975d (diff)
downloadplan9port-282ce666c3c009d63f554ef6c40e4cf7f150cca7.tar.gz
plan9port-282ce666c3c009d63f554ef6c40e4cf7f150cca7.tar.bz2
plan9port-282ce666c3c009d63f554ef6c40e4cf7f150cca7.zip
Use the Plan 9 version of the world.
Diffstat (limited to 'troff/font/devutf/charlib/RC')
-rw-r--r--troff/font/devutf/charlib/RC45
1 files changed, 34 insertions, 11 deletions
diff --git a/troff/font/devutf/charlib/RC b/troff/font/devutf/charlib/RC
index bfb2af2f..954e290d 100644
--- a/troff/font/devutf/charlib/RC
+++ b/troff/font/devutf/charlib/RC
@@ -1,13 +1,36 @@
-/build_RC {
+%
+% This stuff has gotten terribly complicated - sorry.
+%
+
+currentdict /bvbbox known not {/bvbbox [0 0 0 0 0 0 0] def} if
+
+/build_rc {
pop
- size 4 div /side exch def
- currentpoint
- newpath
- moveto
- 0 side 1.5 mul rmoveto
- 0 side rlineto
- side 2.5 mul 0 rlineto
- 0 side neg rlineto
- closepath
- fill
+ gsave
+ currentpoint translate newpath
+ bvbbox 6 get size ne {
+ gsave
+ initgraphics
+ scaling scaling scale
+ 0 0 moveto
+ (\357) false charpath flattenpath pathbbox 0 0 size bvbbox astore pop
+ 0 1 idtransform dup mul exch dup mul add sqrt dup
+ bvbbox 1 get add bvbbox 1 3 -1 roll put
+ bvbbox 3 get exch sub bvbbox 3 3 -1 roll put
+ bvbbox 2 get bvbbox 0 get sub bvbbox 4 3 -1 roll put
+ bvbbox 2 get bvbbox 0 get add 2 div bvbbox 5 3 -1 roll put
+ grestore
+ } if
+ bvbbox 2 get bvbbox 1 get moveto
+ bvbbox 2 get bvbbox 3 get lineto
+ bvbbox 5 get bvbbox 4 get 8 mul sub dup bvbbox 3 get lineto
+ bvbbox 1 get lineto closepath clip newpath
+ 0 0 moveto (\357) show
+ bvbbox 5 get bvbbox 3 get moveto
+ bvbbox 4 get dup dup
+ 8 mul neg 0 rlineto
+ 0 exch neg rlineto
+ 8 mul 0 rlineto
+ closepath clip eofill
+ grestore
} def