|
Lines 1-6
Link Here
|
| 1 |
<!-- $FreeBSD: doc/en_US.ISO_8859-1/articles/fonts/article.sgml,v 1.5 1999/10/04 21:31:02 jesusr Exp $ --> |
1 |
<!-- $FreeBSD: doc/en_US.ISO_8859-1/articles/fonts/article.sgml,v 1.5 1999/10/04 21:31:02 jesusr Exp $ --> |
| 2 |
<!-- The FreeBSD Documentation Project --> |
2 |
<!-- The FreeBSD Documentation Project --> |
| 3 |
<!DOCTYPE ARTICLE PUBLIC "-//FreeBSD//DTD DocBook V3.1-Based Extension//EN"> |
3 |
<!DOCTYPE ARTICLE PUBLIC "-//FreeBSD//DTD DocBook V3.1-Based Extension//EN" [ |
|
|
4 |
<!ENTITY % man PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN"> |
| 5 |
%man; |
| 6 |
]> |
| 4 |
|
7 |
|
| 5 |
<!-- Recently, I wanted to figure out how to use some additional fonts that |
8 |
<!-- Recently, I wanted to figure out how to use some additional fonts that |
| 6 |
I had accumulated. I finally figured out *how to do it* from the various |
9 |
I had accumulated. I finally figured out *how to do it* from the various |
|
Lines 62-67
Link Here
|
| 62 |
|
65 |
|
| 63 |
<para>There are many different font formats and associated font file |
66 |
<para>There are many different font formats and associated font file |
| 64 |
suffixes. A few that will be addressed here are: |
67 |
suffixes. A few that will be addressed here are: |
|
|
68 |
</para> |
| 65 |
<variablelist> |
69 |
<variablelist> |
| 66 |
|
70 |
|
| 67 |
<varlistentry><term><filename>.pfa</>, <filename>.pfb</></term> |
71 |
<varlistentry><term><filename>.pfa</>, <filename>.pfb</></term> |
|
Lines 104-110
Link Here
|
| 104 |
<listitem><para>Bitmapped screen fonts</para></listitem> |
108 |
<listitem><para>Bitmapped screen fonts</para></listitem> |
| 105 |
|
109 |
|
| 106 |
</varlistentry> |
110 |
</varlistentry> |
| 107 |
</variablelist></para> |
111 |
</variablelist> |
| 108 |
|
112 |
|
| 109 |
<para>The <filename>.fot</filename> file is used by Windows as sort |
113 |
<para>The <filename>.fot</filename> file is used by Windows as sort |
| 110 |
of a symbolic link to the actual TrueType font |
114 |
of a symbolic link to the actual TrueType font |
|
Lines 122-132
Link Here
|
| 122 |
and/or drivers may make use of the font files. Here is a small cross |
126 |
and/or drivers may make use of the font files. Here is a small cross |
| 123 |
reference of application/driver to the font type suffixes:</para> |
127 |
reference of application/driver to the font type suffixes:</para> |
| 124 |
|
128 |
|
| 125 |
<para> |
|
|
| 126 |
<variablelist> |
129 |
<variablelist> |
| 127 |
<varlistentry><term>Driver</term> |
130 |
<varlistentry><term>Driver</term> |
| 128 |
<listitem> |
131 |
<listitem> |
| 129 |
<para> |
|
|
| 130 |
<variablelist> |
132 |
<variablelist> |
| 131 |
<varlistentry><term>syscons</term> |
133 |
<varlistentry><term>syscons</term> |
| 132 |
<listitem> |
134 |
<listitem> |
|
Lines 135-141
Link Here
|
| 135 |
</listitem> |
137 |
</listitem> |
| 136 |
</varlistentry> |
138 |
</varlistentry> |
| 137 |
</variablelist> |
139 |
</variablelist> |
| 138 |
</para> |
|
|
| 139 |
|
140 |
|
| 140 |
</listitem> |
141 |
</listitem> |
| 141 |
</varlistentry> |
142 |
</varlistentry> |
|
Lines 143-149
Link Here
|
| 143 |
<varlistentry><term>Application</term> |
144 |
<varlistentry><term>Application</term> |
| 144 |
|
145 |
|
| 145 |
<listitem> |
146 |
<listitem> |
| 146 |
<para> |
|
|
| 147 |
<variablelist> |
147 |
<variablelist> |
| 148 |
<varlistentry><term>Ghostscript</term> |
148 |
<varlistentry><term>Ghostscript</term> |
| 149 |
<listitem> |
149 |
<listitem> |
|
Lines 176-187
Link Here
|
| 176 |
</listitem> |
176 |
</listitem> |
| 177 |
</varlistentry> |
177 |
</varlistentry> |
| 178 |
</variablelist> |
178 |
</variablelist> |
| 179 |
</para> |
|
|
| 180 |
|
179 |
|
| 181 |
</listitem> |
180 |
</listitem> |
| 182 |
</varlistentry> |
181 |
</varlistentry> |
| 183 |
</variablelist> |
182 |
</variablelist> |
| 184 |
</para> |
|
|
| 185 |
|
183 |
|
| 186 |
<para>The <filename>.fnt</filename> suffix is used quite frequently. |
184 |
<para>The <filename>.fnt</filename> suffix is used quite frequently. |
| 187 |
I suspect that whenever someone wanted to create a specialized font |
185 |
I suspect that whenever someone wanted to create a specialized font |
|
Lines 201-231
Link Here
|
| 201 |
|
199 |
|
| 202 |
<para>First, a 8x8 font must be loaded. |
200 |
<para>First, a 8x8 font must be loaded. |
| 203 |
<filename>/etc/sysconfig</filename> should contain the lines: |
201 |
<filename>/etc/sysconfig</filename> should contain the lines: |
|
|
202 |
</para> |
| 204 |
<informalexample> |
203 |
<informalexample> |
| 205 |
<programlisting># Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default) |
204 |
<programlisting># Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default) |
| 206 |
font8x8=/usr/share/syscons/fonts/cp437-8x8.fnt</programlisting> |
205 |
font8x8=/usr/share/syscons/fonts/cp437-8x8.fnt</programlisting> |
| 207 |
</informalexample> |
206 |
</informalexample> |
| 208 |
</para> |
|
|
| 209 |
|
207 |
|
| 210 |
<para>The command to actually switch the mode is |
208 |
<para>The command to actually switch the mode is |
| 211 |
<citerefentry><refentrytitle>vidcontrol</><manvolnum>1</></>: |
209 |
&man.vidcontrol.1: |
|
|
210 |
</para> |
| 212 |
<informalexample> |
211 |
<informalexample> |
| 213 |
<screen>bash$ <userinput>vidcontrol VGA_80x60</userinput></screen> |
212 |
<screen>bash$ <userinput>vidcontrol VGA_80x60</userinput></screen> |
| 214 |
</informalexample> |
213 |
</informalexample> |
| 215 |
</para> |
|
|
| 216 |
|
214 |
|
| 217 |
<para>Various screen orientated programs, such as |
215 |
<para>Various screen orientated programs, such as |
| 218 |
<citerefentry><refentrytitle>vi</><manvolnum>1</></>, must be able to |
216 |
&man.vi.1, must be able to |
| 219 |
determine the current screen dimensions. These can be set with |
217 |
determine the current screen dimensions. These can be set with |
| 220 |
<citerefentry><refentrytitle>stty</><manvolnum>1</></>: |
218 |
&man.stty.1;: |
|
|
219 |
</para> |
| 221 |
<informalexample> |
220 |
<informalexample> |
| 222 |
<screen>bash$ <userinput>stty crt rows 60 columns 80</userinput></screen> |
221 |
<screen>bash$ <userinput>stty crt rows 60 columns 80</userinput></screen> |
| 223 |
</informalexample> |
222 |
</informalexample> |
| 224 |
</para> |
|
|
| 225 |
|
223 |
|
| 226 |
<para>To make this more seamless, one can embed these commands in the |
224 |
<para>To make this more seamless, one can embed these commands in the |
| 227 |
startup scripts so it takes place when the system boots. One way to |
225 |
startup scripts so it takes place when the system boots. One way to |
| 228 |
do this is: |
226 |
do this is: |
|
|
227 |
</para> |
| 229 |
<orderedlist> |
228 |
<orderedlist> |
| 230 |
|
229 |
|
| 231 |
<listitem> |
230 |
<listitem> |
|
Lines 234-249
Link Here
|
| 234 |
|
233 |
|
| 235 |
<listitem> |
234 |
<listitem> |
| 236 |
<para>Add to <filename>/etc/rc.local</filename>: |
235 |
<para>Add to <filename>/etc/rc.local</filename>: |
|
|
236 |
</para> |
| 237 |
<informalexample> |
237 |
<informalexample> |
| 238 |
<programlisting>for tty in /dev/ttyv? |
238 |
<programlisting>for tty in /dev/ttyv? |
| 239 |
do |
239 |
do |
| 240 |
vidcontrol VGA_80x60 <$tty >/dev/null 2>&1 |
240 |
vidcontrol VGA_80x60 <$tty >/dev/null 2>&1 |
| 241 |
done</programlisting> |
241 |
done</programlisting> |
| 242 |
</informalexample></para> |
242 |
</informalexample> |
| 243 |
</listitem> |
243 |
</listitem> |
| 244 |
|
244 |
|
| 245 |
<listitem> |
245 |
<listitem> |
| 246 |
<para>Add to <filename>/etc/profile</filename>: |
246 |
<para>Add to <filename>/etc/profile</filename>: |
|
|
247 |
</para> |
| 247 |
<informalexample> |
248 |
<informalexample> |
| 248 |
<programlisting>TTYNAME=`basename \`tty\`` |
249 |
<programlisting>TTYNAME=`basename \`tty\`` |
| 249 |
if expr "$TTYNAME" : 'ttyv' >/dev/null |
250 |
if expr "$TTYNAME" : 'ttyv' >/dev/null |
|
Lines 251-265
Link Here
|
| 251 |
stty crt rows 60 columns 80 |
252 |
stty crt rows 60 columns 80 |
| 252 |
fi</programlisting> |
253 |
fi</programlisting> |
| 253 |
</informalexample> |
254 |
</informalexample> |
| 254 |
</para> |
|
|
| 255 |
</listitem> |
255 |
</listitem> |
| 256 |
|
256 |
|
| 257 |
</orderedlist> |
257 |
</orderedlist> |
| 258 |
</para> |
|
|
| 259 |
|
258 |
|
| 260 |
<para>References: |
259 |
<para>References: |
| 261 |
<citerefentry><refentrytitle>stty</><manvolnum>1</></>, |
260 |
&man.stty.1;, |
| 262 |
<citerefentry><refentrytitle>vidcontrol</><manvolnum>1</></>.</para> |
261 |
&man.vidcontrol.1;.</para> |
| 263 |
|
262 |
|
| 264 |
</sect1> |
263 |
</sect1> |
| 265 |
|
264 |
|
|
Lines 280-285
Link Here
|
| 280 |
allows one to more easily keep track of ones fonts without confusing |
279 |
allows one to more easily keep track of ones fonts without confusing |
| 281 |
them with the fonts that were originally provided. For |
280 |
them with the fonts that were originally provided. For |
| 282 |
example: |
281 |
example: |
|
|
282 |
</para> |
| 283 |
<informalexample> |
283 |
<informalexample> |
| 284 |
<screen><lineannotation>Create a directory to contain the font files</> |
284 |
<screen><lineannotation>Create a directory to contain the font files</> |
| 285 |
bash$ <userinput>mkdir -p /usr/local/share/fonts/type1</> |
285 |
bash$ <userinput>mkdir -p /usr/local/share/fonts/type1</> |
|
Lines 294-304
Link Here
|
| 294 |
<lineannotation>Maintain an index to cross reference the fonts</> |
294 |
<lineannotation>Maintain an index to cross reference the fonts</> |
| 295 |
bash$ <userinput>echo showboat - InfoMagic CICA, Dec 1994, /fonts/atm/showboat >>INDEX</></screen> |
295 |
bash$ <userinput>echo showboat - InfoMagic CICA, Dec 1994, /fonts/atm/showboat >>INDEX</></screen> |
| 296 |
</informalexample> |
296 |
</informalexample> |
| 297 |
</para> |
|
|
| 298 |
|
297 |
|
| 299 |
<para>Now, to use a new font with X11, one must make the font file |
298 |
<para>Now, to use a new font with X11, one must make the font file |
| 300 |
available and update the font name files. The X11 font names look |
299 |
available and update the font name files. The X11 font names look |
| 301 |
like: |
300 |
like: |
|
|
301 |
</para> |
| 302 |
<informalexample> |
302 |
<informalexample> |
| 303 |
<screen>-bitstream-charter-medium-r-normal-xxx-0-0-0-0-p-0-iso8859-1 |
303 |
<screen>-bitstream-charter-medium-r-normal-xxx-0-0-0-0-p-0-iso8859-1 |
| 304 |
| | | | | | | | | | | | \ \ |
304 |
| | | | | | | | | | | | \ \ |
|
Lines 312-325
Link Here
|
| 312 |
| | | \ \ \ |
312 |
| | | \ \ \ |
| 313 |
foundry family weight slant width additional style</screen> |
313 |
foundry family weight slant width additional style</screen> |
| 314 |
</informalexample> |
314 |
</informalexample> |
| 315 |
</para> |
|
|
| 316 |
|
315 |
|
| 317 |
<para>A new name needs to be created for each new font. If you have |
316 |
<para>A new name needs to be created for each new font. If you have |
| 318 |
some information from the documentation that accompanied the font, |
317 |
some information from the documentation that accompanied the font, |
| 319 |
then it could serve as the basis for creating the name. If there is |
318 |
then it could serve as the basis for creating the name. If there is |
| 320 |
no information, then you can get some idea by using |
319 |
no information, then you can get some idea by using |
| 321 |
<citerefentry><refentrytitle>strings</><manvolnum>1</></> on the font |
320 |
&man.strings.1; on the font |
| 322 |
file. For example: |
321 |
file. For example: |
|
|
322 |
</para> |
| 323 |
<informalexample> |
323 |
<informalexample> |
| 324 |
<screen>bash$ <userinput>strings showboat.pfb | more</> |
324 |
<screen>bash$ <userinput>strings showboat.pfb | more</> |
| 325 |
%!FontType1-1.0: Showboat 001.001 |
325 |
%!FontType1-1.0: Showboat 001.001 |
|
Lines 346-360
Link Here
|
| 346 |
end readonly def |
346 |
end readonly def |
| 347 |
/FontName /Showboat def |
347 |
/FontName /Showboat def |
| 348 |
--stdin--</screen> |
348 |
--stdin--</screen> |
| 349 |
</informalexample></para> |
349 |
</informalexample> |
| 350 |
|
350 |
|
| 351 |
<para>Using this information, a possible name might be: |
351 |
<para>Using this information, a possible name might be: |
|
|
352 |
</para> |
| 352 |
<informalexample> |
353 |
<informalexample> |
| 353 |
<screen>-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1</screen> |
354 |
<screen>-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1</screen> |
| 354 |
</informalexample> |
355 |
</informalexample> |
| 355 |
</para> |
|
|
| 356 |
|
356 |
|
| 357 |
<para>The components of our name are: |
357 |
<para>The components of our name are: |
|
|
358 |
</para> |
| 358 |
<variablelist> |
359 |
<variablelist> |
| 359 |
|
360 |
|
| 360 |
<varlistentry><term>Foundry</term> |
361 |
<varlistentry><term>Foundry</term> |
|
Lines 409-415
Link Here
|
| 409 |
</varlistentry> |
410 |
</varlistentry> |
| 410 |
|
411 |
|
| 411 |
</variablelist> |
412 |
</variablelist> |
| 412 |
</para> |
|
|
| 413 |
|
413 |
|
| 414 |
<para>All of these names are arbitrary, but one should strive to be |
414 |
<para>All of these names are arbitrary, but one should strive to be |
| 415 |
compatible with the existing conventions. A font is referenced by |
415 |
compatible with the existing conventions. A font is referenced by |
|
Lines 423-428
Link Here
|
| 423 |
and adjust the name based on the appearance of the font.</para> |
423 |
and adjust the name based on the appearance of the font.</para> |
| 424 |
|
424 |
|
| 425 |
<para>So, to complete our example: |
425 |
<para>So, to complete our example: |
|
|
426 |
</para> |
| 426 |
<informalexample> |
427 |
<informalexample> |
| 427 |
<screen><lineannotation>Make the font accessible to X11</> |
428 |
<screen><lineannotation>Make the font accessible to X11</> |
| 428 |
bash$ <userinput>cd /usr/X11R6/lib/X11/fonts/Type1</> |
429 |
bash$ <userinput>cd /usr/X11R6/lib/X11/fonts/Type1</> |
|
Lines 450-460
Link Here
|
| 450 |
<lineannotation>Examine the new font</> |
451 |
<lineannotation>Examine the new font</> |
| 451 |
bash$ <userinput>xfontsel -pattern -type1-*</></screen> |
452 |
bash$ <userinput>xfontsel -pattern -type1-*</></screen> |
| 452 |
</informalexample> |
453 |
</informalexample> |
| 453 |
</para> |
|
|
| 454 |
|
454 |
|
| 455 |
<para>References: |
455 |
<para>References: |
| 456 |
<citerefentry><refentrytitle>xfontsel</><manvolnum>1</></>, |
456 |
&man.xfontsel.1;, |
| 457 |
<citerefentry><refentrytitle>xset</><manvolnum>1</></>, |
457 |
&man.xset.1;, |
| 458 |
<citetitle>The X Windows System in a Nutshell</>, <ulink |
458 |
<citetitle>The X Windows System in a Nutshell</>, <ulink |
| 459 |
URL="http://www.ora.com/">O'Reilly & Associates</ulink>.</para> |
459 |
URL="http://www.ora.com/">O'Reilly & Associates</ulink>.</para> |
| 460 |
|
460 |
|
|
Lines 469-474
Link Here
|
| 469 |
<filename>.pfa</filename> or the <filename>.pfb</filename> format |
469 |
<filename>.pfa</filename> or the <filename>.pfb</filename> format |
| 470 |
fonts. Using the font from the previous example, here is how to use |
470 |
fonts. Using the font from the previous example, here is how to use |
| 471 |
it with Ghostscript: |
471 |
it with Ghostscript: |
|
|
472 |
</para> |
| 472 |
<informalexample> |
473 |
<informalexample> |
| 473 |
<screen><lineannotation>Put the font in Ghostscript's font directory</> |
474 |
<screen><lineannotation>Put the font in Ghostscript's font directory</> |
| 474 |
bash$ <userinput>cd /usr/local/share/ghostscript/fonts</> |
475 |
bash$ <userinput>cd /usr/local/share/ghostscript/fonts</> |
|
Lines 498-504
Link Here
|
| 498 |
>>showpage, press <return> to continue<< |
499 |
>>showpage, press <return> to continue<< |
| 499 |
GS><userinput>quit</></screen> |
500 |
GS><userinput>quit</></screen> |
| 500 |
</informalexample> |
501 |
</informalexample> |
| 501 |
</para> |
|
|
| 502 |
|
502 |
|
| 503 |
<para>References: <filename>fonts.txt</filename> in the Ghostscript |
503 |
<para>References: <filename>fonts.txt</filename> in the Ghostscript |
| 504 |
4.01 distribution</para> |
504 |
4.01 distribution</para> |
|
Lines 521-526
Link Here
|
| 521 |
<para>The first tool is <command>afmtodit</>. This is not normally |
521 |
<para>The first tool is <command>afmtodit</>. This is not normally |
| 522 |
installed, so it must be retrieved from the source distribution. I |
522 |
installed, so it must be retrieved from the source distribution. I |
| 523 |
found I had to change the first line of the file, so I did: |
523 |
found I had to change the first line of the file, so I did: |
|
|
524 |
</para> |
| 524 |
<informalexample> |
525 |
<informalexample> |
| 525 |
<screen>bash$ <userinput>cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp</> |
526 |
<screen>bash$ <userinput>cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp</> |
| 526 |
bash$ <userinput>ex /tmp/afmtodit.pl |
527 |
bash$ <userinput>ex /tmp/afmtodit.pl |
|
Lines 529-539
Link Here
|
| 529 |
. |
530 |
. |
| 530 |
:wq</></screen> |
531 |
:wq</></screen> |
| 531 |
</informalexample> |
532 |
</informalexample> |
| 532 |
</para> |
|
|
| 533 |
|
533 |
|
| 534 |
<para>This tool will create the groff font file from the metrics file |
534 |
<para>This tool will create the groff font file from the metrics file |
| 535 |
(<filename>.afm</filename> suffix.) Continuing with our |
535 |
(<filename>.afm</filename> suffix.) Continuing with our |
| 536 |
example: |
536 |
example: |
|
|
537 |
</para> |
| 537 |
<informalexample> |
538 |
<informalexample> |
| 538 |
<screen><lineannotation>Many <filename>.afm</> files are in Mac format&hellip ^M delimited lines |
539 |
<screen><lineannotation>Many <filename>.afm</> files are in Mac format&hellip ^M delimited lines |
| 539 |
We need to convert them to unix style ^J delimited lines</> |
540 |
We need to convert them to unix style ^J delimited lines</> |
|
Lines 545-551
Link Here
|
| 545 |
bash$ <userinput>cd /usr/share/groff_font/devps</> |
546 |
bash$ <userinput>cd /usr/share/groff_font/devps</> |
| 546 |
bash$ <userinput>/tmp/afmtodit.pl -d DESC -e text.enc /tmp/showboat.afm generate/textmap SHOWBOAT</></screen> |
547 |
bash$ <userinput>/tmp/afmtodit.pl -d DESC -e text.enc /tmp/showboat.afm generate/textmap SHOWBOAT</></screen> |
| 547 |
</informalexample> |
548 |
</informalexample> |
| 548 |
</para> |
|
|
| 549 |
|
549 |
|
| 550 |
<para>The font can now be referenced with the name SHOWBOAT.</para> |
550 |
<para>The font can now be referenced with the name SHOWBOAT.</para> |
| 551 |
|
551 |
|
|
Lines 560-571
Link Here
|
| 560 |
font. The <filename>download</> file must reference the internal |
560 |
font. The <filename>download</> file must reference the internal |
| 561 |
name of the font. This can easily be determined from the groff font |
561 |
name of the font. This can easily be determined from the groff font |
| 562 |
file as illustrated: |
562 |
file as illustrated: |
|
|
563 |
</para> |
| 563 |
<informalexample> |
564 |
<informalexample> |
| 564 |
<screen><lineannotation>Create the <filename>.pfa</> font file</> |
565 |
<screen><lineannotation>Create the <filename>.pfa</> font file</> |
| 565 |
bash$ <userinput>pfbtops /usr/local/share/fonts/type1/showboat.pfb >showboat.pfa</></screen> |
566 |
bash$ <userinput>pfbtops /usr/local/share/fonts/type1/showboat.pfb >showboat.pfa</></screen> |
| 566 |
</informalexample> |
567 |
</informalexample> |
|
|
568 |
<para> |
| 567 |
Of course, if the <filename>.pfa</filename> file is already |
569 |
Of course, if the <filename>.pfa</filename> file is already |
| 568 |
available, just use a symbolic link to reference it. |
570 |
available, just use a symbolic link to reference it. |
|
|
571 |
</para> |
| 569 |
<informalexample> |
572 |
<informalexample> |
| 570 |
<screen><lineannotation>Get the internal font name</> |
573 |
<screen><lineannotation>Get the internal font name</> |
| 571 |
bash$ <userinput>fgrep internalname SHOWBOAT</> |
574 |
bash$ <userinput>fgrep internalname SHOWBOAT</> |
|
Lines 578-586
Link Here
|
| 578 |
. |
581 |
. |
| 579 |
:wq</></screen> |
582 |
:wq</></screen> |
| 580 |
</informalexample> |
583 |
</informalexample> |
| 581 |
</para> |
|
|
| 582 |
|
584 |
|
| 583 |
<para>To test the font: |
585 |
<para>To test the font: |
|
|
586 |
</para> |
| 584 |
<informalexample> |
587 |
<informalexample> |
| 585 |
<screen>bash$ <userinput>cd /tmp</> |
588 |
<screen>bash$ <userinput>cd /tmp</> |
| 586 |
bash$ <userinput>cat >example.t <<EOF |
589 |
bash$ <userinput>cat >example.t <<EOF |
|
Lines 617-629
Link Here
|
| 617 |
<lineannotation>To print it</> |
620 |
<lineannotation>To print it</> |
| 618 |
bash$ <userinput>lpr -Ppostscript example.ps</></screen> |
621 |
bash$ <userinput>lpr -Ppostscript example.ps</></screen> |
| 619 |
</informalexample> |
622 |
</informalexample> |
| 620 |
</para> |
|
|
| 621 |
|
623 |
|
| 622 |
<para>References: |
624 |
<para>References: |
| 623 |
<filename>/usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.man</filename>, |
625 |
<filename>/usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.man</filename>, |
| 624 |
<citerefentry><refentrytitle>groff_font</><manvolnum>5</></>, |
626 |
&man.groff.font.5;, |
| 625 |
<citerefentry><refentrytitle>groff_char</><manvolnum>5</></>, |
627 |
&man.groff.char.7;, |
| 626 |
<citerefentry><refentrytitle>pfbtops</><manvolnum>1</></>.</para> |
628 |
&man.pfbtops.1;.</para> |
| 627 |
|
629 |
|
| 628 |
</sect1> |
630 |
</sect1> |
| 629 |
|
631 |
|
|
Lines 788-794
Link Here
|
| 788 |
<command>ttf2pf.ps</command> above, and |
790 |
<command>ttf2pf.ps</command> above, and |
| 789 |
<replaceable>PS_font_name</replaceable> is the font name |
791 |
<replaceable>PS_font_name</replaceable> is the font name |
| 790 |
used from that command, as well as the name that |
792 |
used from that command, as well as the name that |
| 791 |
<citerefentry> <refentrytitle>groff</><manvolnum>1</></> |
793 |
&man.groff.1; |
| 792 |
will use for references to this font. For example, assuming |
794 |
will use for references to this font. For example, assuming |
| 793 |
you used the first <command>tiff2pf.ps</command> command |
795 |
you used the first <command>tiff2pf.ps</command> command |
| 794 |
above, then the 3of9 Barcode font can be created using the |
796 |
above, then the 3of9 Barcode font can be created using the |
|
Lines 812-819
Link Here
|
| 812 |
<filename>.afm</filename> file prior to running |
814 |
<filename>.afm</filename> file prior to running |
| 813 |
<command>afmtodit</command>. This name must also match the |
815 |
<command>afmtodit</command>. This name must also match the |
| 814 |
one used in the Fontmap file if you wish to pipe |
816 |
one used in the Fontmap file if you wish to pipe |
| 815 |
<citerefentry><refentrytitle>groff</><manvolnum>1</></> into |
817 |
&man.groff.1; into |
| 816 |
<citerefentry><refentrytitle>gs</><manvolnum>1</></>.</para> |
818 |
&man.gs.1;.</para> |
| 817 |
</listitem> |
819 |
</listitem> |
| 818 |
</orderedlist> |
820 |
</orderedlist> |
| 819 |
</sect1> |
821 |
</sect1> |
|
Lines 836-844
Link Here
|
| 836 |
<para>This rather dismal situation may soon change. |
838 |
<para>This rather dismal situation may soon change. |
| 837 |
The <ulink url="http://www.freetype.org/">FreeType Project</ulink> |
839 |
The <ulink url="http://www.freetype.org/">FreeType Project</ulink> |
| 838 |
is currently developing a useful set of FreeType tools: |
840 |
is currently developing a useful set of FreeType tools: |
|
|
841 |
</para> |
| 839 |
<itemizedlist> |
842 |
<itemizedlist> |
| 840 |
<listitem> |
843 |
<listitem> |
| 841 |
<simpara>The <command>xfsft</command> font server for X11 can serve |
844 |
<para>The <command>xfsft</command> font server for X11 can serve |
| 842 |
TrueType fonts in addition to regular fonts. Though currently in |
845 |
TrueType fonts in addition to regular fonts. Though currently in |
| 843 |
beta, it is said to be quite useable. See <ulink |
846 |
beta, it is said to be quite useable. See <ulink |
| 844 |
url="http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/">Juliusz |
847 |
url="http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/">Juliusz |
|
Lines 846-879
Link Here
|
| 846 |
for FreeBSD can be found at <ulink |
849 |
for FreeBSD can be found at <ulink |
| 847 |
url="http://math.missouri.edu/~stephen/software/">Stephen Montgomery's |
850 |
url="http://math.missouri.edu/~stephen/software/">Stephen Montgomery's |
| 848 |
software page</ulink>. |
851 |
software page</ulink>. |
| 849 |
</simpara> |
852 |
</para> |
| 850 |
</listitem> |
853 |
</listitem> |
| 851 |
<listitem> |
854 |
<listitem> |
| 852 |
<simpara><command>xfstt</command> is another font |
855 |
<para><command>xfstt</command> is another font |
| 853 |
server for X11, available under <ulink |
856 |
server for X11, available under <ulink |
| 854 |
url=" ftp://sunsite.unc.edu/pub/Linux/X11/fonts"> |
857 |
url=" ftp://sunsite.unc.edu/pub/Linux/X11/fonts"> |
| 855 |
ftp://sunsite.unc.edu/pub/Linux/X11/fonts</ulink>. |
858 |
ftp://sunsite.unc.edu/pub/Linux/X11/fonts</ulink>. |
| 856 |
</simpara> |
859 |
</para> |
| 857 |
</listitem> |
860 |
</listitem> |
| 858 |
<listitem><simpara>A program called <command>ttf2bdf</command> can produce |
861 |
<listitem><para>A program called <command>ttf2bdf</command> can produce |
| 859 |
BDF files suitable for use in an X environment from TrueType files. Linux |
862 |
BDF files suitable for use in an X environment from TrueType files. Linux |
| 860 |
binaries are said to be available from <ulink |
863 |
binaries are said to be available from <ulink |
| 861 |
url="ftp://crl.nmsu.edu/CLR/multiling/General">ftp://crl.nmsu.edu/CLR/multiling/General/</ulink>. |
864 |
url="ftp://crl.nmsu.edu/CLR/multiling/General">ftp://crl.nmsu.edu/CLR/multiling/General/</ulink>. |
| 862 |
</simpara> |
865 |
</para> |
| 863 |
</listitem> |
866 |
</listitem> |
| 864 |
<listitem> |
867 |
<listitem> |
| 865 |
<simpara> |
868 |
<para> |
| 866 |
For people requiring the use of Asian TrueType fonts, the |
869 |
For people requiring the use of Asian TrueType fonts, the |
| 867 |
<command>XTT</command> font server may be worth a look. Information about |
870 |
<command>XTT</command> font server may be worth a look. Information about |
| 868 |
<command>XTT</command> can be found at URL: <ulink |
871 |
<command>XTT</command> can be found at URL: <ulink |
| 869 |
url="http://hawk.ise.chuo-u.ac.jp/student/person/tshiozak/study/freebsd-at-random/x-tt/index-en.html">http://hawk.ise.chuo-u.ac.jp/student/person/tshiozak/study/freebsd-at-random/x-tt/index-en.html</ulink>. |
872 |
url="http://hawk.ise.chuo-u.ac.jp/student/person/tshiozak/study/freebsd-at-random/x-tt/index-en.html">http://hawk.ise.chuo-u.ac.jp/student/person/tshiozak/study/freebsd-at-random/x-tt/index-en.html</ulink>. |
| 870 |
</simpara> |
873 |
</para> |
| 871 |
</listitem> |
874 |
</listitem> |
| 872 |
<listitem> |
875 |
<listitem> |
| 873 |
<simpara>and others …</simpara> |
876 |
<para>and others …</para> |
| 874 |
</listitem> |
877 |
</listitem> |
| 875 |
</itemizedlist> |
878 |
</itemizedlist> |
| 876 |
</para> |
|
|
| 877 |
<para> |
879 |
<para> |
| 878 |
The |
880 |
The |
| 879 |
<ulink url="http://www.freetype.org/projects.htm">FreeType Projects page |
881 |
<ulink url="http://www.freetype.org/projects.htm">FreeType Projects page |
|
Lines 889-894
Link Here
|
| 889 |
entirely free, or are share-ware. In addition, there are many |
891 |
entirely free, or are share-ware. In addition, there are many |
| 890 |
inexpensive CDROMs available that contain many fonts. Some Internet |
892 |
inexpensive CDROMs available that contain many fonts. Some Internet |
| 891 |
locations (as of August 1996) are: |
893 |
locations (as of August 1996) are: |
|
|
894 |
</para> |
| 892 |
<itemizedlist> |
895 |
<itemizedlist> |
| 893 |
|
896 |
|
| 894 |
<listitem><para><ulink |
897 |
<listitem><para><ulink |
|
Lines 910-923
Link Here
|
| 910 |
<listitem><para><ulink |
913 |
<listitem><para><ulink |
| 911 |
url="http://www.inil.com/users/elfring/esf.htm">http://www.inil.com/users/elfring/esf.htm</ulink></para></listitem> |
914 |
url="http://www.inil.com/users/elfring/esf.htm">http://www.inil.com/users/elfring/esf.htm</ulink></para></listitem> |
| 912 |
|
915 |
|
| 913 |
</itemizedlist></para> |
916 |
</itemizedlist> |
| 914 |
|
917 |
|
| 915 |
</sect1> |
918 |
</sect1> |
| 916 |
|
919 |
|
| 917 |
<sect1> |
920 |
<sect1> |
| 918 |
<title>Additional questions</title> |
921 |
<title>Additional questions</title> |
| 919 |
|
922 |
|
| 920 |
<para> |
|
|
| 921 |
<itemizedlist> |
923 |
<itemizedlist> |
| 922 |
|
924 |
|
| 923 |
<listitem> |
925 |
<listitem> |
|
Lines 943-949
Link Here
|
| 943 |
</listitem> |
945 |
</listitem> |
| 944 |
|
946 |
|
| 945 |
</itemizedlist> |
947 |
</itemizedlist> |
| 946 |
</para> |
|
|
| 947 |
|
948 |
|
| 948 |
</sect1> |
949 |
</sect1> |
| 949 |
</article> |
950 |
</article> |