summaryrefslogtreecommitdiffstats
path: root/man/man3/subfont.3
diff options
context:
space:
mode:
authorDmitri Vereshchagin <dmitri.vereshchagin@gmail.com>2024-01-31 20:47:13 +0300
committerDan Cross <crossd@gmail.com>2025-07-27 09:58:50 -0400
commit10564b11755ff2d48d0f5073c46571e806fa6fb4 (patch)
tree229252742051d83558fff2352642d0f57ba66615 /man/man3/subfont.3
parent00446db7d8fdb3ea56fa104643b34823960f7be2 (diff)
downloadplan9port-10564b11755ff2d48d0f5073c46571e806fa6fb4.tar.gz
plan9port-10564b11755ff2d48d0f5073c46571e806fa6fb4.zip
tmac/tmac.an: define .MR in a groff compatible way
groff 1.23.0 added .MR to its -man macro package. The NEWS file states that the inclusion of the macro "was prompted by its introduction to Plan 9 from User Space's troff in August 2020." From d32deab it seems that the name for Plan 9 from User Space's implementation was suggested by groff maintainer G. Brandon Robinson. Not sure if the intention was to make these definitions compatible, but it would be nice if they were. Currently, Plan 9 from User Space's .MR expects its second argument to be parenthesized. groff's .MR does not. This results in extra parentheses appearing in manual references when viewing Plan 9 from User Space's manual pages on a system using groff.
Diffstat (limited to 'man/man3/subfont.3')
-rw-r--r--man/man3/subfont.328
1 files changed, 14 insertions, 14 deletions
diff --git a/man/man3/subfont.3 b/man/man3/subfont.3
index 1de30246..43170d40 100644
--- a/man/man3/subfont.3
+++ b/man/man3/subfont.3
@@ -53,13 +53,13 @@ Font* mkfont(Subfont *f, Rune min)
.SH DESCRIPTION
Subfonts are the components of fonts that hold the character images.
A font comprises an array of subfonts; see
-.MR cachechars (3) .
+.MR cachechars 3 .
A new
.B Subfont
is allocated and initialized with
.IR allocsubfont .
See
-.MR cachechars (3)
+.MR cachechars 3
for the meaning of
.IR n ,
.IR height ,
@@ -81,7 +81,7 @@ The appropriate fields of the returned
structure are set to
the passed arguments, and the image is registered as a subfont
with the graphics device
-.MR draw (3) .
+.MR draw 3 .
.I Allocsubfont
returns 0 on failure.
.PP
@@ -97,7 +97,7 @@ on
if
.B f->info
was not allocated by
-.MR malloc (3)
+.MR malloc 3
it should be zeroed before calling
.IR subffree .
.PP
@@ -150,7 +150,7 @@ Although it is principally a routine internal to the library,
may be substituted by the application to provide a less file-oriented subfont naming scheme.
.PP
The format of a subfont file is described in
-.MR font (7) .
+.MR font 7 .
Briefly, it contains a image with all the characters in it,
followed by a subfont header, followed by character information.
.I Readsubfont
@@ -181,13 +181,13 @@ the part of a subfont file that comes after the image. It should be preceded by
a call to
.IR writeimage
(see
-.MR allocimage (3) ).
+.MR allocimage 3 ).
.PP
.I Stringsubfont
is analogous to
.B string
(see
-.MR draw (3) )
+.MR draw 3 )
for subfonts. Rather than use the underlying font caching primitives,
it calls
.B draw
@@ -224,12 +224,12 @@ bitmap font file tree
.SH SOURCE
.B \*9/src/libdraw
.SH SEE ALSO
-.MR graphics (3) ,
-.MR allocimage (3) ,
-.MR draw (3) ,
-.MR cachechars (3) ,
-.MR image (7) ,
-.MR font (7)
+.MR graphics 3 ,
+.MR allocimage 3 ,
+.MR draw 3 ,
+.MR cachechars 3 ,
+.MR image 7 ,
+.MR font 7
.SH DIAGNOSTICS
All of the functions use the graphics error function (see
-.MR graphics (3) ).
+.MR graphics 3 ).