Sgss_Font_Truetype_Coverage
Represents TrueType font glyph coverage

Description

Class diagram:
Sgss_Font_Coverage_Abstract
 + Sgss_Font_Truetype_Coverage
Used by:
Sgss_Font_Truetype::__construct(),Sgss_Font_Truetype::__construct()
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
Usedby:
Sgss_Font_Truetype::__construct()
License:
http://creativecommons.org/licenses/GPL/2.0/
Usedby:
Sgss_Font_Truetype::__construct()
Located in:
/Font/Truetype/Coverage.php (line 51)

Class overview

Methods

__construct (Sgss_Font_Cache $cache)

The constructor

boolean hasAllRanges (array $ranges)

Determines whether this font contains one of the glyph corresponding to the characters inside the specified ranges

boolean hasClass (string $class)

Determines whether this font contains one of the glyph corresponding to the characters inside the specified class

boolean hasRange (string $range)

Determines whether this font contains one of the glyph corresponding to the characters inside the specified range

Inherited from Sgss_Font_Coverage_Abstract:
hasRanges()

Method detail

__construct

The constructor

Parameters:
Signature:
public __construct (Sgss_Font_Cache $cache)


hasAllRanges

Determines whether this font contains one of the glyph corresponding to the characters inside the specified ranges

Parameters:
  • array $ranges

    Unicode range names

Returns:
boolean -- True when this font contains one of the glyph corresponding to the characters inside all the ranges
Related subject:
Sgss_Font_Coverage_Interface::hasAllRanges()
Signature:
public boolean hasAllRanges (array $ranges)


hasClass

Determines whether this font contains one of the glyph corresponding to the characters inside the specified class

Parameters:
  • string $class

    Unicode class name

Returns:
boolean -- True when this font contains one of the glyph corresponding to the characters inside the class
Uses:
Sgss_Font_Coverage_Unicode::getRangesInClass()
Related subject:
Sgss_Font_Coverage_Interface::hasClass()
Signature:
public boolean hasClass (string $class)


hasRange

Determines whether this font contains one of the glyph corresponding to the characters inside the specified range

Parameters:
  • string $range

    Unicode range name

Returns:
boolean -- True when this font contains one of the glyph corresponding to the characters inside the range
Related subject:
Sgss_Font_Coverage_Interface::hasRange()
Signature:
public boolean hasRange (string $range)