Sgss_Font_Truetype_Profiler
Represents TrueType font namings and profiles

Description

Class diagram:
Sgss_Font_Profiler_Abstract
 + Sgss_Font_Truetype_Profiler
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Truetype/Profiler.php (line 61)

Class overview

Variables

protected int $_familyClass

TrueType family class of this font

protected int $_fsSelection

TrueType fsSelection of this font

protected int $_fsType

TrueType fsType of this font

protected Sgss_Font_Panose_Abstract $_panose

Panose values of this font

protected int $_weightClass

TrueType weight class of this font

protected int $_widthClass

TrueType width class of this font

Methods

__construct (Sgss_Font_Cache $cache)

The constructor

array getLocales ()

Returns all the locale identifiers in this font

string|null getName (string $name, [string|Zend_Locale|null $locale = null])

Returns the naming of this font in the specified name and locale

Sgss_Font_Panose_Abstract|null getPanose ()

Returns an array of panose classification values of this font

int getStretch ()

Returns the stretch value of this font

int getStyle ()

Returns the style identifier of this font

int getWeight ()

Returns the weight value of this font

Inherited from Sgss_Font_Profiler_Abstract:
getStretchName(), getStyleName(), getWeightName(), toStretchName(), toStyleName(), toWeightName()

Variable detail

$_familyClass 

TrueType family class of this font

Signature:
protected int $_familyClass


$_fsSelection 

TrueType fsSelection of this font

Signature:
protected int $_fsSelection


$_fsType 

TrueType fsType of this font

Signature:
protected int $_fsType


$_panose 

Panose values of this font

Signature:
protected Sgss_Font_Panose_Abstract $_panose


$_weightClass 

TrueType weight class of this font

Signature:
protected int $_weightClass


$_widthClass 

TrueType width class of this font

Signature:
protected int $_widthClass


Method detail

__construct

The constructor

Parameters:
Signature:
public __construct (Sgss_Font_Cache $cache)


getLocales

Returns all the locale identifiers in this font

Returns:
array -- Array containing all the locale identifiers in this font
Related subject:
Sgss_Font_Profiler_Interface::getLocales()
Signature:
public array getLocales ()


getName

Returns the naming of this font in the specified name and locale

Parameters:
  • string $name

    Name of the naming to be retrieved

  • string|Zend_Locale|null $locale

    Locale of the naming to be retrieved

Returns:
string|null -- Naming of this font
Related subject:
Sgss_Font_Profiler_Interface::getName()
Signature:
public string|null getName (string $name, [string|Zend_Locale|null $locale = null])


getPanose

Returns an array of panose classification values of this font

Returns:
Sgss_Font_Panose_Abstract|null -- Panose classification of this font
Related subject:
Sgss_Font_Profiler_Interface::getPanose()
Signature:
public Sgss_Font_Panose_Abstract|null getPanose ()


getStretch

Returns the stretch value of this font

Returns:
int -- Stretch value of this font
Related subject:
Sgss_Font_Profiler_Interface::getStretch()
Signature:
public int getStretch ()


getStyle

Returns the style identifier of this font

Returns:
int -- Style identifier of this font
Related subject:
Sgss_Font_Profiler_Interface::getStyle()
Signature:
public int getStyle ()


getWeight

Returns the weight value of this font

Returns:
int -- Weight value of this font
Related subject:
Sgss_Font_Profiler_Interface::getWeight()
Signature:
public int getWeight ()