| Sgss_Font_Composite_Interface | Provides for handling composite font |
| Sgss_Font_Format_Interface | Provides for handling format font |
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_Coverage_Interface |
getCoverage ()
Returns the unicode coverage of this font |
string |
getFamily ()
Returns the family name of this font in default locale |
Sgss_Font_Metrics_Glyph |
getGlyph (int|string|Sgss_String $char)
Returns the glyph metrics corresponding to the specified character |
int |
getGlyphCode (int|string|Sgss_String $char)
Converts the specified character to the corresponding glyph code |
array |
getGlyphCodes (array|string|Sgss_String $chars)
Converts the specified characters to the corresponding glyph codes array |
array |
getGlyphs (array|string|Sgss_String $chars)
Returns the glyph metrices array corresponding to the specified characters |
Sgss_Font_Mapper_Interface |
getMapper ()
Returns the character code to glyph code map of this font |
Sgss_Font_Metrics_Interface |
getMetrics ()
Returns the font and glyph metrics aggregate of this font |
string |
getName ()
Returns the name of this font in default locale |
Sgss_Font_Profiler_Interface |
getProfiler ()
Returns the font profile of this font |
int |
getStretch ()
Returns the stretch value of this font |
string |
getStretchName ()
Returns the stretch name of this font in default locale |
int |
getStyle ()
Returns the style identifier of this font |
string |
getStyleName ()
Returns the style name of this font in default locale |
string |
getSubfamily ()
Returns the subfamily name of this font in default locale |
int |
getWeight ()
Returns the weight value of this font |
string |
getWeightName ()
Returns the weight name of this font in default locale |
boolean |
hasGlyph (int|string|Sgss_String $char)
Determines whether this font has the glyph corresponding to the specified character |
boolean |
hasGlyphs (array|string|Sgss_String $chars)
Determines whether this font has all the glyphs corresponding to the specified characters |
Creates a composite font with another
Sgss_Font_Format_Interface $font
Child font
array|Sgss_Graphics_Transform|null $trans
Transformation matrix
string|array|null $range
Unicode range(s)
public Sgss_Font_Composite_Interface composite (Sgss_Font_Format_Interface $font, [array|Sgss_Graphics_Transform|null $trans = null], [string|array|null $range = null])
Returns the unicode coverage of this font
public Sgss_Font_Coverage_Interface getCoverage ()
Returns the family name of this font in default locale
public string getFamily ()
Returns the glyph metrics corresponding to the specified character
The $char parameter can be either an unicode codepoint or character. This determines the first character if string supplied.
int|string|Sgss_String $char
Unicode codepoint or character
public Sgss_Font_Metrics_Glyph getGlyph (int|string|Sgss_String $char)
Converts the specified character to the corresponding glyph code
The $char parameter can be either an unicode codepoint or character. This converts the first character if string specified.
int|string|Sgss_String $char
Unicode codepoint or character
public int getGlyphCode (int|string|Sgss_String $char)
Converts the specified characters to the corresponding glyph codes array
The $chars parameter can be either an array of unicode codepoints or a string.
array|string|Sgss_String $chars
Unicode codepoints or string
public array getGlyphCodes (array|string|Sgss_String $chars)
Returns the glyph metrices array corresponding to the specified characters
The $chars parameter is expected to be either an array of unicode codepoints or a string.
array|string|Sgss_String $chars
Unicode codepoints or string
public array getGlyphs (array|string|Sgss_String $chars)
Returns the character code to glyph code map of this font
public Sgss_Font_Mapper_Interface getMapper ()
Returns the font and glyph metrics aggregate of this font
public Sgss_Font_Metrics_Interface getMetrics ()
Returns the name of this font in default locale
public string getName ()
Returns the font profile of this font
public Sgss_Font_Profiler_Interface getProfiler ()
Returns the stretch value of this font
public int getStretch ()
Returns the stretch name of this font in default locale
public string getStretchName ()
Returns the style identifier of this font
public int getStyle ()
Returns the style name of this font in default locale
public string getStyleName ()
Returns the subfamily name of this font in default locale
public string getSubfamily ()
Returns the weight value of this font
public int getWeight ()
Returns the weight name of this font in default locale
public string getWeightName ()
Determines whether this font has the glyph corresponding to the specified character
The $char parameter can be either an unicode codepoint or character. This determines the first character if string specified.
int|string|Sgss_String $char
Unicode codepoint or character to determine
public boolean hasGlyph (int|string|Sgss_String $char)
Determines whether this font has all the glyphs corresponding to the specified characters
The $chars parameter can to be either an array of unicode codepoints or a string.
array|string|Sgss_String $chars
Unicode codepoints or string to determine
public boolean hasGlyphs (array|string|Sgss_String $chars)