Source string Read only

(itstool) path: varlistentry/term
Context English State
There is already a directory named <filename>Type1</filename>. The most straight forward way to add a new font is to put it into this directory. A better way is to keep all new fonts in a separate directory and use a symbolic link to the additional font. This allows one to more easily keep track of ones fonts without confusing them with the fonts that were originally provided. For example:
<lineannotation>Create a directory to contain the font files</lineannotation>
<prompt>%</prompt> <userinput>mkdir -p /usr/local/share/fonts/type1</userinput>
<prompt>%</prompt> <userinput>cd /usr/local/share/fonts/type1</userinput>

<lineannotation>Place the .pfa, .pfb and .afm files here</lineannotation>
<lineannotation>One might want to keep readme files, and other documentation</lineannotation>
<lineannotation>for the fonts here also</lineannotation>
<prompt>%</prompt> <userinput>cp /cdrom/fonts/atm/showboat/showboat.pfb .</userinput>
<prompt>%</prompt> <userinput>cp /cdrom/fonts/atm/showboat/showboat.afm .</userinput>

<lineannotation>Maintain an index to cross reference the fonts</lineannotation>
<prompt>%</prompt> <userinput>echo showboat - InfoMagic CICA, Dec 1994, /fonts/atm/showboat &gt;&gt;INDEX</userinput>
Now, to use a new font with <application>X11</application>, one must make the font file available and update the font name files. The <application>X11</application> font names look like:
| | | | | | | | | | | | \ \
| | | | | \ \ \ \ \ \ \ +----+- character set
| | | | \ \ \ \ \ \ \ +- average width
| | | | \ \ \ \ \ \ +- spacing
| | | \ \ \ \ \ \ +- vertical res.
| | | \ \ \ \ \ +- horizontal res.
| | | \ \ \ \ +- points
| | | \ \ \ +- pixels
| | | \ \ \
foundry family weight slant width additional style
A new name needs to be created for each new font. If you have some information from the documentation that accompanied the font, then it could serve as the basis for creating the name. If there is no information, then you can get some idea by using <citerefentry><refentrytitle>strings</refentrytitle><manvolnum>1</manvolnum></citerefentry> on the font file. For example:
<prompt>%</prompt> <userinput>strings showboat.pfb | more</userinput>
%!FontType1-1.0: Showboat 001.001
%%CreationDate: 1/15/91 5:16:03 PM
%%VMusage: 1024 45747
% Generated by Fontographer 3.1
% Showboat
1991 by David Rakowski. Alle Rechte Vorbehalten.
FontDirectory/Showboat known{/Showboat findfont dup/UniqueID known{dup
/UniqueID get 4962377 eq exch/FontType get 1 eq and}{pop false}ifelse
{save true}{false}ifelse}{false}ifelse
12 dict begin
/FontInfo 9 dict dup begin
/version (001.001) readonly def
/FullName (Showboat) readonly def
/FamilyName (Showboat) readonly def
/Weight (Medium) readonly def
/ItalicAngle 0 def
/isFixedPitch false def
/UnderlinePosition -106 def
/UnderlineThickness 16 def
/Notice (Showboat
1991 by David Rakowski. Alle Rechte Vorbehalten.) readonly def
end readonly def
/FontName /Showboat def
Using this information, a possible name might be:
The components of our name are:
Lets just name all the new fonts <literal>type1</literal>.
The name of the font.
Normal, bold, medium, semibold, etc. From the <citerefentry><refentrytitle>strings</refentrytitle><manvolnum>1</manvolnum></citerefentry> output above, it appears that this font has a weight of <emphasis>medium</emphasis>.
<emphasis remap="bf">r</emphasis>oman, <emphasis remap="bf">i</emphasis>talic, <emphasis remap="bf">o</emphasis>blique, etc. Since the <emphasis>ItalicAngle</emphasis> is zero, <emphasis>roman</emphasis> will be used.
Normal, wide, condensed, extended, etc. Until it can be examined, the assumption will be <emphasis>normal</emphasis>.
Additional style
Usually omitted, but this will indicate that the font contains decorative capital letters.
proportional or monospaced. <emphasis>Proportional</emphasis> is used since <emphasis>isFixedPitch</emphasis> is false.
All of these names are arbitrary, but one should strive to be compatible with the existing conventions. A font is referenced by name with possible wild cards by an <application>X11</application> program, so the name chosen should make some sense. One might begin by simply using <_:informalexample-1/> as the name, and then use <citerefentry vendor="xfree86"><refentrytitle>xfontsel</refentrytitle><manvolnum>1</manvolnum></citerefentry> to examine it and adjust the name based on the appearance of the font.
So, to complete our example:
<lineannotation>Make the font accessible to X11</lineannotation>
<prompt>%</prompt> <userinput>cd /usr/X11R6/lib/X11/fonts/Type1</userinput>
<prompt>%</prompt> <userinput>ln -s /usr/local/share/fonts/type1/showboat.pfb .</userinput>

<lineannotation>Edit fonts.dir and fonts.scale, adding the line describing the font
and incrementing the number of fonts which is found on the first line.</lineannotation>
<prompt>%</prompt> <userinput>ex fonts.dir
showboat.pfb -type1-showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1

<lineannotation>fonts.scale seems to be identical to fonts.dir…</lineannotation>
<prompt>%</prompt> <userinput>cp fonts.dir fonts.scale</userinput>

<lineannotation>Tell X11 that things have changed</lineannotation>
<prompt>%</prompt> <userinput>xset fp rehash</userinput>

<lineannotation>Examine the new font</lineannotation>
<prompt>%</prompt> <userinput>xfontsel -pattern -type1-*</userinput>
References: <citerefentry vendor="xfree86"><refentrytitle>xfontsel</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry vendor="xfree86"><refentrytitle>xset</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citetitle>The X Windows System in a Nutshell</citetitle>, <link xlink:href="">O'Reilly &amp; Associates</link>.
Using Type 1 Fonts with Ghostscript
<application>Ghostscript</application> references a font via its <filename>Fontmap</filename>. This must be modified in a similar way to the <application>X11</application> <filename>fonts.dir</filename>. <application>Ghostscript</application> can use either the <filename>.pfa</filename> or the <filename>.pfb</filename> format fonts. Using the font from the previous example, here is how to use it with <application>Ghostscript</application>:
<lineannotation>Put the font in Ghostscript's font directory</lineannotation>
<prompt>%</prompt> <userinput>cd /usr/local/share/ghostscript/fonts</userinput>
<prompt>%</prompt> <userinput>ln -s /usr/local/share/fonts/type1/showboat.pfb .</userinput>

<lineannotation>Edit Fontmap so Ghostscript knows about the font</lineannotation>
<prompt>%</prompt> <userinput>cd /usr/local/share/ghostscript/4.01</userinput>
<prompt>%</prompt> <userinput>ex Fontmap
/Showboat (showboat.pfb) ; % From CICA /fonts/atm/showboat

<lineannotation>Use Ghostscript to examine the font</lineannotation>
<prompt>%</prompt> <userinput>gs</userinput>
Aladdin Ghostscript 4.01 (1996-7-10)
Copyright (C) 1996 Aladdin Enterprises, Menlo Park, CA. All rights
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading Times-Roman font from /usr/local/share/ghostscript/fonts/tir_____.pfb...
/1899520 581354 1300084 13826 0 done.
GS&gt;<userinput>Showboat DoFont</userinput>
Loading Showboat font from /usr/local/share/ghostscript/fonts/showboat.pfb...
1939688 565415 1300084 16901 0 done.
&gt;&gt;showpage, press &lt;return&gt; to continue&lt;&lt;
&gt;&gt;showpage, press &lt;return&gt; to continue&lt;&lt;
&gt;&gt;showpage, press &lt;return&gt; to continue&lt;&lt;


No matching activity found.

Browse all component changes


English English
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: varlistentry/term
Source string location
String age
a year ago
Source string age
a year ago
Translation file
articles/fonts.pot, string 74