PHP Class Pressbooks\GlobalTypography

Afficher le fichier Open project: pressbooks/pressbooks

Méthodes publiques

Méthode Description
_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.

Méthodes protégées

Méthode Description
_getBookLanguage ( ) : string
_sassify ( $type, array $languages ) : void

Method Details

_getBookLanguage() protected méthode

protected _getBookLanguage ( ) : string
Résultat string

_getRequiredLanguages() public méthode

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

_sassify() protected méthode

protected _sassify ( $type, array $languages ) : void
$type
$languages array
Résultat void

fixWebFonts() public méthode

Fix relative/ambiguous URLs to web fonts
public fixWebFonts ( $css ) : mixed
$css
Résultat mixed

getFonts() public méthode

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

getSupportedLanguages() public méthode

Get Pressbooks-supported languages.
public getSupportedLanguages ( ) : array
Résultat array

getThemeFontStacks() public méthode

Get the current theme's font stacks.
public getThemeFontStacks ( string $type ) : string
$type string (prince, epub, web ...)
Résultat string

getThemeSupportedLanguages() public méthode

Get the current theme's supported languages.
public getThemeSupportedLanguages ( ) : array
Résultat array

updateGlobalTypographyMixin() public méthode

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

updateWebBookStyleSheet() public méthode

Update and save the supplementary webBook stylesheet which adds global typography support.
public updateWebBookStyleSheet ( ) : void
Résultat void