3 9b4a2324 2009-07-09 rsc fontsrv \- file system access to host fonts
18 9b4a2324 2009-07-09 rsc .SH DESCRIPTION
20 9b4a2324 2009-07-09 rsc presents the host window system's fonts
21 9b4a2324 2009-07-09 rsc in the standard Plan 9 format
23 9b4a2324 2009-07-09 rsc .IR font (7)).
24 9b4a2324 2009-07-09 rsc It serves a virtual directory tree mounted at
28 9b4a2324 2009-07-09 rsc option is given)
29 9b4a2324 2009-07-09 rsc and posted at
36 9b4a2324 2009-07-09 rsc option changes
37 22209440 2009-07-09 rsc .IR fontsrv 's
38 9b4a2324 2009-07-09 rsc behavior: rather than serve a file system,
40 9b4a2324 2009-07-09 rsc prints to standard output the contents of the named
44 9b4a2324 2009-07-09 rsc names a directory in the served file system,
46 9b4a2324 2009-07-09 rsc lists the directory's contents.
48 9b4a2324 2009-07-09 rsc The fonts are arranged in a two-level tree.
49 9b4a2324 2009-07-09 rsc The root contains directories named for each system font.
50 9b4a2324 2009-07-09 rsc Each font directory contains subdirectories named for
51 9b4a2324 2009-07-09 rsc a point size and whether the subfonts are anti-aliased:
55 9b4a2324 2009-07-09 rsc (anti-aliased greyscale)
59 9b4a2324 2009-07-09 rsc The font directory will synthesize additional sizes on
60 9b4a2324 2009-07-09 rsc demand: looking up
62 9b4a2324 2009-07-09 rsc will synthesize the 19-point anti-aliased size
64 9b4a2324 2009-07-09 rsc Each size directory contains a
66 9b4a2324 2009-07-09 rsc file and subfont files
68 9b4a2324 2009-07-09 rsc .BR x0000.bit ,
69 9b4a2324 2009-07-09 rsc .BR x0100.bit ,
71 9b4a2324 2009-07-09 rsc representing 256-character Unicode ranges.
75 9b4a2324 2009-07-09 rsc .IR graphics (3))
76 9b4a2324 2009-07-09 rsc recognizes font paths beginning with
78 9b4a2324 2009-07-09 rsc and implements them by invoking
79 9b4a2324 2009-07-09 rsc .IR fontsrv ;
80 9b4a2324 2009-07-09 rsc it need not be running already.
83 b3a110af 2015-02-17 rsc for a full discussion of font name syntaxes.
85 9b4a2324 2009-07-09 rsc List the fonts on the system:
95 9b4a2324 2009-07-09 rsc % fontsrv -p .
100 9b4a2324 2009-07-09 rsc using the operating system's Monaco as the fixed-width font:
103 9b4a2324 2009-07-09 rsc % acme -F /mnt/font/Monaco/13a/font
108 9b4a2324 2009-07-09 rsc using the same font:
111 72f9e950 2009-07-09 rsc % font=/mnt/font/Monaco/13a/font sam
114 9b4a2324 2009-07-09 rsc .B \*9/src/cmd/fontsrv
115 9b4a2324 2009-07-09 rsc .SH SEE ALSO
116 9b4a2324 2009-07-09 rsc .IR font (7)
119 9b4a2324 2009-07-09 rsc Due to OS X restrictions,
121 9b4a2324 2009-07-09 rsc does not fork itself into the background
122 9b4a2324 2009-07-09 rsc when serving a user-level file system.
125 9b4a2324 2009-07-09 rsc has no support for X11 fonts;
126 9b4a2324 2009-07-09 rsc on X11 systems, it will serve an empty top-level directory.
128 9b4a2324 2009-07-09 rsc On OS X, the anti-aliased bitmaps are not perfect.
129 9b4a2324 2009-07-09 rsc For example, the lower case r in the subfont
130 9b4a2324 2009-07-09 rsc .B Times-Roman/14a/x0000.bit
131 9b4a2324 2009-07-09 rsc appears truncated on the right and
132 9b4a2324 2009-07-09 rsc too light overall.