FCFontFinder Class Reference
[Statistics]

Wrapper around font-config to get useful ttf font given a language code. More...

List of all members.

Static Public Member Functions

static findFile ($code)
 Searches for suitable font in the system.
static findFamily ($code)
 Searches for suitable font family in the system.

Static Protected Member Functions

static callFontConfig ($code)
static getCache ()

Detailed Description

Wrapper around font-config to get useful ttf font given a language code.

Uses wfShellExec, wfEscapeShellArg and wfDebugLog, wfGetCache and wfMemckey from MediaWiki.

Definition at line 19 of file Font.php.


Member Function Documentation

static FCFontFinder::callFontConfig ( code  )  [static, protected]

Definition at line 48 of file Font.php.

Referenced by findFamily(), and findFile().

Here is the call graph for this function:

static FCFontFinder::findFamily ( code  )  [static]

Searches for suitable font family in the system.

Parameters:
$code   String   Language code.
Returns:
bool|string Name of font family, false on failure

Definition at line 39 of file Font.php.

Here is the call graph for this function:

static FCFontFinder::findFile ( code  )  [static]

Searches for suitable font in the system.

Parameters:
$code   String   Language code.
Returns:
bool|string Full path to the font file, false on failure

Definition at line 25 of file Font.php.

Referenced by SpecialTranslationStats::draw().

Here is the call graph for this function:

static FCFontFinder::getCache (  )  [static, protected]
Returns:
BagOStuff

Definition at line 136 of file Font.php.

Referenced by callFontConfig().


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:46 2013 for MediaWiki Translate Extension by  doxygen 1.6.3