PHP Класс Pressbooks\GlobalTypography

Показать файл Открыть проект

Открытые методы

Метод Описание
_getRequiredLanguages ( ) Get required languages for this book, excluding those supported by the theme.
fixWebFonts ( $css ) : mixed Fix relative/ambiguous URLs to web fonts
getFonts ( $languages = null ) Check for absent font files and download if necessary.
getSupportedLanguages ( ) : array Get Pressbooks-supported languages.
getThemeFontStacks ( string $type ) : string Get the current theme's font stacks.
getThemeSupportedLanguages ( ) : array Get the current theme's supported languages.
updateGlobalTypographyMixin ( ) Update and save the SCSS mixin which assigns the $global-typography variable.
updateWebBookStyleSheet ( ) : void Update and save the supplementary webBook stylesheet which adds global typography support.

Защищенные методы

Метод Описание
_getBookLanguage ( ) : string
_sassify ( $type, array $languages ) : void

Описание методов

_getBookLanguage() защищенный Метод

protected _getBookLanguage ( ) : string
Результат string

_getRequiredLanguages() публичный Метод

Get required languages for this book, excluding those supported by the theme.

_sassify() защищенный Метод

protected _sassify ( $type, array $languages ) : void
$type
$languages array
Результат void

fixWebFonts() публичный Метод

Fix relative/ambiguous URLs to web fonts
public fixWebFonts ( $css ) : mixed
$css
Результат mixed

getFonts() публичный Метод

Check for absent font files and download if necessary.
public getFonts ( $languages = null )

getSupportedLanguages() публичный Метод

Get Pressbooks-supported languages.
public getSupportedLanguages ( ) : array
Результат array

getThemeFontStacks() публичный Метод

Get the current theme's font stacks.
public getThemeFontStacks ( string $type ) : string
$type string (prince, epub, web ...)
Результат string

getThemeSupportedLanguages() публичный Метод

Get the current theme's supported languages.
public getThemeSupportedLanguages ( ) : array
Результат array

updateGlobalTypographyMixin() публичный Метод

Update and save the SCSS mixin which assigns the $global-typography variable.

updateWebBookStyleSheet() публичный Метод

Update and save the supplementary webBook stylesheet which adds global typography support.
public updateWebBookStyleSheet ( ) : void
Результат void