PHP 클래스 Pressbooks\GlobalTypography

파일 보기 프로젝트 열기: pressbooks/pressbooks

공개 메소드들

메소드 설명
_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