Änderungen https Andy Müller rückgängig gemacht
This commit is contained in:
@ -26,11 +26,11 @@ Adding a new font requires three steps for TrueTypes:
|
||||
</UL>
|
||||
For Type1, the first one is theoretically not necessary because the AFM file is usually shipped
|
||||
with the font. In case you have only a metric file in PFM format, use the convertor available
|
||||
<A HREF="https://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<A HREF="http://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<H4 CLASS='st'>Generation of the metric file</H4>
|
||||
The first step for a TrueType consists in generating the AFM file. A utility exists to do this
|
||||
task: <A HREF="https://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="https://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
task: <A HREF="http://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="http://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
the following:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -76,7 +76,7 @@ Type of the font (<TT>TrueType</TT> or <TT>Type1</TT>). Default value: <TT>TrueT
|
||||
<BR>
|
||||
The first parameter is the name of the font file. The extension must be either .ttf or .pfb and
|
||||
determines the font type. If you own a Type1 font in ASCII format (.pfa), you can convert it to
|
||||
binary format with <A HREF="https://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
binary format with <A HREF="http://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
<BR>
|
||||
If you don't want to embed the font, pass an empty string. In this case, type is given by the
|
||||
<TT>type</TT> parameter.
|
||||
@ -179,7 +179,7 @@ $pdf<font class="kw">-></font>AddFont<font class="kw">(</font><font class="st
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<H4 CLASS='st'>Example</H4>
|
||||
Let's now see a small complete example. The font used is Calligrapher, available at
|
||||
<A HREF="https://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
<A HREF="http://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
offering numerous free TrueType fonts). The first step is the generation of the AFM file:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -218,7 +218,7 @@ We can now copy the two files to the font directory and write the script:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto7.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user