|
MIOLO26
|
Membros públicos estáticos | |
| static | init () |
| static | get_text_width ($text, $font, $size, $spacing=0) |
| static | get_font_height ($font, $size) |
| static | get_font ($family, $subtype="normal") |
| static | save_font_families () |
| static | load_font_families () |
| static | get_font_families () |
| static | set_font_family ($fontname, $entry) |
Campos de Dados | |
| const | CACHE_FILE = __DOMPDF_FONT_CACHE_FILE |
Atributos Protegidos Estáticos | |
| static | $_pdf = null |
| static | $_font_lookup = array() |
|
static |
Resolves a font family & subtype into an actual font file
Subtype can be one of 'normal', 'bold', 'italic' or 'bold_italic'. If the particular font family has no suitable font file, the default font (DOMPDF_DEFAULT_FONT) is used. The font file returned is the absolute pathname to the font file on the system.
| string | $family | |
| string | $subtype |
|
static |
Returns the current font lookup table
|
static |
Calculates font height
| string | $font | |
| float | $size |
|
static |
Calculates text size, in points
| string | $text | the text to be sized |
| string | $font | the desired font |
| float | $size | the desired font size |
| float | $spacing | word spacing, if any |
|
static |
Class initialization
|
static |
Loads the stored font family cache
|
static |
Saves the stored font family cache
The name and location of the cache file are determined by Font_Metrics::CACHE_FILE. This file should be writable by the webserver process.
|
static |
|
staticprotected |
|
staticprotected |
| const CACHE_FILE = __DOMPDF_FONT_CACHE_FILE |