Sgss_Font_Composite
Represents a composite font

Description

Class diagram:
Sgss_Font_Abstract
 + Sgss_Font_Composite
Implements:
Sgss_Font_Composite_Interface
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Composite.php (line 66)

Class overview

Variable

protected Sgss_Font_Composite_Rangemap_Abstract $_rangemap

Character code range map of this font

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

Methods

__construct (Sgss_Font_Composite_Rangemap_Abstract $rangemap)

The constructor

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

Composites this font with another

Sgss_Font_Composite_Rangemap_Abstract getRangemap ()

Returns character code range map of this font

Sgss_Font_Composite_Interface range (string|array|null $range)

Sets or adds the character ranges of previous composition to the specified value

Sgss_Font_Composite_Interface transform (array|Sgss_Graphics_Transform|null $trans)

Sets the transformation of previous composition to the specified value

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

$_rangemap 

Character code range map of this font

Signature:
protected Sgss_Font_Composite_Rangemap_Abstract $_rangemap


Method detail

__construct

The constructor

Parameters:
Uses:
Sgss_Font_Profiler_Composite, Sgss_Font_Metrics_Composite, Sgss_Font_Mapper_Composite
Signature:
public __construct (Sgss_Font_Composite_Rangemap_Abstract $rangemap)


composite

Composites this font with another

In contrast to Sgss_Font_Format_Abstract::composite(), this simply adds the specified font as a child. See also Sgss_Font_Composite_Rangemap_Abstract::add() for further instructions of the optional parameters.

Parameters:
Returns:
Sgss_Font_Composite_Interface -- This composite 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])


getRangemap

Returns character code range map of this font

Returns:
Sgss_Font_Composite_Rangemap_Abstract -- Character code range map
Specified by:
Related subject:
Sgss_Font_Composite_Interface::getRangemap()
Signature:
public Sgss_Font_Composite_Rangemap_Abstract getRangemap ()


range

Sets or adds the character ranges of previous composition to the specified value

See also Sgss_Font_Composite_Rangemap_Abstract::addRange() for further instructions.

Parameters:
  • string|array|null $range

    Unicode range(s)

Returns:
Sgss_Font_Composite_Interface -- This font for convenience
Specified by:
Uses:
Sgss_Font_Composite_Rangemap_Abstract::addRange()
Signature:
public Sgss_Font_Composite_Interface range (string|array|null $range)


transform

Sets the transformation of previous composition to the specified value

See also Sgss_Font_Composite_Rangemap_Abstract::addTransform() for further instructions.

Parameters:
Returns:
Sgss_Font_Composite_Interface -- This font for convenience
Specified by:
Uses:
Sgss_Font_Composite_Rangemap_Abstract::addTransform()
Signature:
public Sgss_Font_Composite_Interface transform (array|Sgss_Graphics_Transform|null $trans)