PHP Doku:: Sucht und bereitet Schrift vor - function.pdf-load-font.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenPDFPDF FunktionenPDF_load_font

Ein Service von Reinhard Neidl - Webprogrammierung.

PDF Funktionen

<<PDF_load_3ddata

PDF_load_iccprofile>>

PDF_load_font

(PECL pdflib >= 2.0.0)

PDF_load_fontSucht und bereitet Schrift vor

Beschreibung

int PDF_load_font ( resource $pdfdoc , string $fontname , string $encoding , string $optlist )

Sucht nach einer Schrift und bereitet sie zur späteren Verwendung vor.


3 BenutzerBeiträge:
- Beiträge aktualisieren...
james dot ferguson at doesnt dot share dot email dot com
19.02.2008 23:47
Actually the full optlist is:

autosubsetting boolean (Default: global parameter)
autocidfont boolean (Default: global parameter)
embedding boolean (Default: false)
fontstyle keyword (Possible keywords are normal, bold, italic, bolditalic. Default: normal)
fontwarning boolean (true - exception,  false - error code Default: global parameter)
kerning boolean (Default: false)
monospace integer (Default: absent (metrics from the font will be used))
subsetlimit float (Default: global parameter)
subsetminsize float (Default: global parameter)
subsetting boolean (Default:false)
unicodemap boolean (Default: true)

See the manual at:
http://www.pdflib.com/developer/technical-documentation/manuals/
james dot ferguson at doesnt dot share dot email dot com
19.02.2008 23:23
In PDFLib 5 'optlist' allows the following possible settings:

embedding=true
subsetting=true
subsetlimit=50
kerning=false
seufert at gmail dot com
1.08.2006 3:43
This function is used to load a font into memory for later use with PDF_setfont()

This function is the replacement for the depracated PDF_find_font()

And also here is the 'core font' list, for PDF files, these do not need to be embeded:
- Courier
- Courier-Bold
- Courier-Oblique
- Courier-BoldOblique
- Helvetica
- Helvetica-Bold
- Helvetica-Oblique
- Helvetica-BoldOblique
- Times-Roman
- Times-Bold
- Times-Italic
- Times-BoldItalic
- Symbol
- ZapfDingbats

And with encodings i have found its best to use iso8859-1 for english with a $ for currency.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)