From 759f6af674ebfe755dd3fd0386b9927eab26ea62 Mon Sep 17 00:00:00 2001 From: wlemb Date: Tue, 26 Feb 2002 01:22:14 +0000 Subject: Add support for font families `T' and `H'. * font/devdvi/HBI: New file. * font/devdvi/B: Renamed to ... * font/devdvi/TB: This. * font/devdvi/BI: Renamed to ... * font/devdvi/TBI: This. * font/devdvi/I: Renamed to ... * font/devdvi/TI: This. * font/devdvi/R: Renamed to ... * font/devdvi/TR: This. * font/devdvi/H: Renamed to ... * font/devdvi/HR: This. * font/devdvi/Makefile.sub (DEVFILES): Updated. * font/devdvi/generate/Makefile (FONTS): Updated. (R, I, B, BI, H): Renamed to ... (TR, TI, TB, TBI, HR): This, respectively. * NEWS, src/devices/grodvi/grodvi.man: Updated. * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI. Add `styles' and `family' keywords. * tmac/dvi.tmac: Alias `H' to `HR'. Add some fspecial requests for italic fonts. Add TR and TI as special. Add support for `_' with font CWI. * src/roff/troff/number.cc (parse_expr): Add missing `break' for operator `:'. Until now, the expression `0:1' would return 2 instead of 1. --- tmac/dvi.tmac | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tmac/dvi.tmac') diff --git a/tmac/dvi.tmac b/tmac/dvi.tmac index 25ca1890..90981dc8 100644 --- a/tmac/dvi.tmac +++ b/tmac/dvi.tmac @@ -7,14 +7,21 @@ .ftr CO CWI .ftr CI CWI .ftr TT CW -.ftr HR H -.\" This uses the dvi-char_1 string in font CW, dvi-char_0 otherwise. -.char _ \R'dvi-char_ \\n[.f]==\f[CW]\\n[.f]\f[P]'\\*[dvi-char_\\n[dvi-char_]] +.ftr H HR +.special TR TI +.fspecial TI CWI +.fspecial TBI CWI +.fspecial HI CWI +.fspecial HBI CWI +.\" This uses the dvi-char_1 string in font CW pr CWI, dvi-char_0 otherwise. +.char _ \ +\R'dvi-char_ ((\\n[.f] == \f[CW]\\n[.f]\f[P]) : \ + (\\n[.f] == \f[CWI]\\n[.f]\f[P]))'\\*[dvi-char_\\n[dvi-char_]] .char \[ul] \R'dvi-char_ \w'M'==\w'i''\\*[dvi-char_\\n[dvi-char_]] .\" Normally use a rule. .\" This is designed so that \(ul, \(rn and \(br form corners. .ds dvi-char_0 \Z'\v'.23m'\D'R .54m .04m''\h'.5m' -.\" In font CW use a real _ character. +.\" In font CW and CWI use a real _ character. .ds dvi-char_1 _ .if !c\[radicalex] .char \[radicalex] \D'R .5m -.04m'\v'.04m' .if !c\[br] .char \[br] \Z'\v'.25m'\D'R .04m -1m'' -- cgit v1.2.1