MIOLO26
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe Font_Metrics

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()
 

Documentação das funções

◆ get_font()

static get_font ( $family,
$subtype = "normal" )
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.

Parâmetros
string$family
string$subtype
Retorna
string

◆ get_font_families()

static get_font_families ( )
static

Returns the current font lookup table

Retorna
array

◆ get_font_height()

static get_font_height ( $font,
$size )
static

Calculates font height

Parâmetros
string$font
float$size
Retorna
float

◆ get_text_width()

static get_text_width ( $text,
$font,
$size,
$spacing = 0 )
static

Calculates text size, in points

Parâmetros
string$textthe text to be sized
string$fontthe desired font
float$sizethe desired font size
float$spacingword spacing, if any
Retorna
float

◆ init()

static init ( )
static

Class initialization

◆ load_font_families()

static load_font_families ( )
static

Loads the stored font family cache

Veja também
save_font_families()

◆ save_font_families()

static save_font_families ( )
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.

Veja também
Font_Metrics::load_font_families()

◆ set_font_family()

static set_font_family ( $fontname,
$entry )
static

Documentação dos campos e atributos

◆ $_font_lookup

$_font_lookup = array()
staticprotected

◆ $_pdf

$_pdf = null
staticprotected

◆ CACHE_FILE

const CACHE_FILE = __DOMPDF_FONT_CACHE_FILE
Veja também
__DOMPDF_FONT_CACHE_FILE

A documentação para esta classe foi gerada a partir do seguinte ficheiro: