Sgss_Font_Format_Abstract 
Abstract class representing a format font

Description

Class diagram:
Sgss_Font_Abstract
 + Sgss_Font_Format_Abstract
Implements:
Sgss_Font_Format_Interface
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Format/Abstract.php (line 51)

Direct descendant

Sgss_Font_Truetype Represents a TrueType format font

Class overview

Variables

protected Sgss_Font_Cache $_cache

Font cache aggregate of this font

protected string $_file

Path to the font file

Inherited from Sgss_Font_Abstract:
Sgss_Font_Abstract::$_coverage, Sgss_Font_Abstract::$_mapper, Sgss_Font_Abstract::$_metrics, Sgss_Font_Abstract::$_profiler

Methods

__construct (string|Sgss_File $file, string|Sgss_File|Sgss_Font_Cache $cache)

The constructor

Sgss_Font_Composite_Interface composite (Sgss_Font_Format_Interface $font, [array|Sgss_Graphics_Transform|null $trans = null], [string|array|null $range = null])

Creates a composite font with another

Sgss_Font_Cache getCache ()

Returns the font cache aggregate of this font

string getFile ()

Returns the path to the font file

Inherited from Sgss_Font_Abstract:
getCoverage(), getFamily(), getGlyph(), getGlyphCode(), getGlyphCodes(), getGlyphs(), getMapper(), getMetrics(), getName(), getProfiler(), getStretch(), getStretchName(), getStyle(), getStyleName(), getSubfamily(), getWeight(), getWeightName(), hasGlyph(), hasGlyphs(), __toString()

Variable detail

$_cache 

Font cache aggregate of this font

Signature:
protected Sgss_Font_Cache $_cache


$_file 

Path to the font file

Signature:
protected string $_file


Method detail

__construct

The constructor

Parameters:
Overridden by:
Used by:
Sgss_Font_Truetype::__construct()
Signature:
public __construct (string|Sgss_File $file, string|Sgss_File|Sgss_Font_Cache $cache)


composite

Creates a composite font with another

Resulting composite font contains this font as the parent. See also Sgss_Font_Composite_Rangemap_Abstract::add() for further instructions of the optional parameters.

Parameters:
Returns:
Sgss_Font_Composite_Interface -- Composited font
Specified by:
Uses:
Sgss_Font_Composite_Rangemap_Abstract::add()
Related subject:
Sgss_Font_Interface::composite()
Signature:
public Sgss_Font_Composite_Interface composite (Sgss_Font_Format_Interface $font, [array|Sgss_Graphics_Transform|null $trans = null], [string|array|null $range = null])


getCache

Returns the font cache aggregate of this font

Returns:
Sgss_Font_Cache -- Font cache aggregate of this font
Specified by:
Related subject:
Sgss_Font_Format_Interface::getCache()
Signature:
public Sgss_Font_Cache getCache ()


getFile

Returns the path to the font file

Returns:
string -- Path to the font file
Specified by:
Related subject:
Sgss_Font_Format_Interface::getFile()
Signature:
public string getFile ()