Sgss_Font_Manager_Interface 
Provides for managing fonts

Description

Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Manager/Interface.php (line 40)

Class overview

Methods

boolean addFont (Sgss_Font_Interface $font)

Adds a font to this manager

Sgss_Font_Interface|null getFont (string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])

Returns the font that matches the specified parameters

boolean hasFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])

Determines this manager has the font that matches the specified parameters

array listFont ([string|null $locale = null])

Returns the list of all fonts in this manager

boolean removeFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])

Removes the font that matches the specified parameters

Method detail

addFont

Adds a font to this manager

Parameters:
Signature:
public boolean addFont (Sgss_Font_Interface $font)


getFont

Returns the font that matches the specified parameters

Parameters:
  • string $family

    Family name

  • string|null $subfamily

    Subfamily name

  • int|string|null $style

    Style identifier or name

  • int|string|null $weight

    Weight value or name

  • int|string|null $stretch

    Stretch value or name

Signature:
public Sgss_Font_Interface|null getFont (string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])


hasFont

Determines this manager has the font that matches the specified parameters

Parameters:
  • Sgss_Font_Interface|string $family

    Font instance or family name

  • string|null $subfamily

    Subfamily name

  • int|string|null $style

    Style identifier or name

  • int|string|null $weight

    Weight value or name

  • int|string|null $stretch

    Stretch value or name

Signature:
public boolean hasFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])


listFont

Returns the list of all fonts in this manager

Parameters:
  • string|null $locale

    Locale of profile to be listed

Signature:
public array listFont ([string|null $locale = null])


removeFont

Removes the font that matches the specified parameters

Parameters:
  • Sgss_Font_Interface|string $family

    Font instance or family name

  • string|null $subfamily

    Subfamily name

  • int|string|null $style

    Style identifier or name

  • int|string|null $weight

    Weight value or name

  • int|string|null $stretch

    Stretch value or name

Signature:
public boolean removeFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])