|
$_cacheDirectory
Default font cache directory |
|
$_cacheExtension
File extension of cache file |
|
$_fontDirectory
Default font file directory |
|
$_parsers
|
void |
addParser (int|string $sfnt, Sgss_Font_Parser_Interface $parser)
Adds the specified parser into the specified sfnt of this parser |
string|null |
getCacheDirectory ()
|
string |
getCacheExtension ()
|
string|null |
getFontDirectory ()
|
|
__construct ([Sgss_File|string|null $fontDirectory = null], [Sgss_File|string|null $cacheDirectory = null], [string $cacheExtension = '.cache'])
The constructor |
Sgss_Font_Format_Interface |
parse (string|Sgss_File $font, [string|Sgss_File|null $cache = null])
Parses the specified file of font |
void |
removeAllParsers ()
Removes all the parsers from this parser |
void |
removeParser (int|string $sfnt)
Removes the parser of the specified sfnt from this parser |
void |
setCacheDirectory (Sgss_File|string $directory)
|
void |
setCacheExtension (string $extension)
|
void |
setFontDirectory (Sgss_File|string $directory)
|
void |
setOutputLevel (int $level)
|
|
_init ()
Initializes this parser |
|
_setupCacheName (string $fontFile)
|
OUTPUT_ALL = 15 |
|
OUTPUT_DEBUG = 8 |
|
OUTPUT_ERROR = 1 |
|
OUTPUT_NONE = 0 |
|
OUTPUT_NOTICE = 4 |
|
OUTPUT_WARNING = 2 |
Default font cache directory
protected string $_cacheDirectory = null
File extension of cache file
protected string $_cacheExtension = null
Default font file directory
protected string $_fontDirectory = null
protected array $_parsers = array()
Adds the specified parser into the specified sfnt of this parser
int|string $sfnt
Sgss_Font_Parser_Interface $parser
public void addParser (int|string $sfnt, Sgss_Font_Parser_Interface $parser)
public string|null getCacheDirectory ()
public string getCacheExtension ()
public string|null getFontDirectory ()
The constructor
public __construct ([Sgss_File|string|null $fontDirectory = null], [Sgss_File|string|null $cacheDirectory = null], [string $cacheExtension = '.cache'])
Parses the specified file of font
public Sgss_Font_Format_Interface parse (string|Sgss_File $font, [string|Sgss_File|null $cache = null])
Removes all the parsers from this parser
public void removeAllParsers ()
Removes the parser of the specified sfnt from this parser
int|string $sfnt
public void removeParser (int|string $sfnt)
Sgss_File|string $directory
public void setCacheDirectory (Sgss_File|string $directory)
string $extension
public void setCacheExtension (string $extension)
Sgss_File|string $directory
public void setFontDirectory (Sgss_File|string $directory)
int $level
public void setOutputLevel (int $level)
Initializes this parser
protected void _init ()
string $fontFile
protected string _setupCacheName (string $fontFile)
const OUTPUT_ALL = 15
const OUTPUT_DEBUG = 8
const OUTPUT_ERROR = 1
const OUTPUT_NONE = 0
const OUTPUT_NOTICE = 4
const OUTPUT_WARNING = 2