Wrapper around font-config to get useful ttf font given a language code. More...
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 () |
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.
static FCFontFinder::callFontConfig | ( | $ | code | ) | [static, protected] |
Definition at line 48 of file Font.php.
Referenced by findFamily(), and findFile().
static FCFontFinder::findFamily | ( | $ | code | ) | [static] |
static FCFontFinder::findFile | ( | $ | code | ) | [static] |
Searches for suitable font in the system.
$code | String Language code. |
Definition at line 25 of file Font.php.
Referenced by SpecialTranslationStats::draw().
static FCFontFinder::getCache | ( | ) | [static, protected] |