@jakguru/vueprint / @jakguru/vueprint/plugins/webfontloader / WebfontloaderPluginOptions
Interface: WebfontloaderPluginOptions
@jakguru/vueprint/plugins/webfontloader.WebfontloaderPluginOptions
Hierarchy
Config
↳
WebfontloaderPluginOptions
Properties
classes
• Optional
classes: boolean
Setting this to false will disable html classes (defaults to true)
Overrides
WebFont.Config.classes
Defined in
src/plugins/webfontloader.ts:41
context
• Optional
context: Window
Child window or iframe to manage fonts for
Overrides
WebFont.Config.context
Defined in
src/plugins/webfontloader.ts:60
custom
• Optional
custom: WebfontloaderPluginCustom
Overrides
WebFont.Config.custom
Defined in
src/plugins/webfontloader.ts:62
events
• Optional
events: boolean
Settings this to false will disable callbacks/events (defaults to true)
Overrides
WebFont.Config.events
Defined in
src/plugins/webfontloader.ts:43
fontdeck
• Optional
fontdeck: WebfontloaderPluginFontdeck
Overrides
WebFont.Config.fontdeck
Defined in
src/plugins/webfontloader.ts:65
google
• Optional
google: WebfontloaderPluginGoogle
Overrides
WebFont.Config.google
Defined in
src/plugins/webfontloader.ts:63
monotype
• Optional
monotype: WebfontloaderPluginMonotype
Overrides
WebFont.Config.monotype
Defined in
src/plugins/webfontloader.ts:66
timeout
• Optional
timeout: number
Time (in ms) until the fontinactive callback will be triggered (defaults to 5000)
Overrides
WebFont.Config.timeout
Defined in
src/plugins/webfontloader.ts:45
typekit
• Optional
typekit: WebfontloaderPluginTypekit
Overrides
WebFont.Config.typekit
Defined in
src/plugins/webfontloader.ts:64
Methods
active
▸ active(): void
This event is triggered when the fonts have rendered.
Returns
void
Overrides
WebFont.Config.active
Defined in
src/plugins/webfontloader.ts:49
fontactive
▸ fontactive(familyName
, fvd
): void
This event is triggered once for each font that renders.
Parameters
Name | Type |
---|---|
familyName | string |
fvd | string |
Returns
void
Overrides
WebFont.Config.fontactive
Defined in
src/plugins/webfontloader.ts:55
fontinactive
▸ fontinactive(familyName
, fvd
): void
This event is triggered if the font can't be loaded.
Parameters
Name | Type |
---|---|
familyName | string |
fvd | string |
Returns
void
Overrides
WebFont.Config.fontinactive
Defined in
src/plugins/webfontloader.ts:57
fontloading
▸ fontloading(familyName
, fvd
): void
This event is triggered once for each font that's loaded.
Parameters
Name | Type |
---|---|
familyName | string |
fvd | string |
Returns
void
Overrides
WebFont.Config.fontloading
Defined in
src/plugins/webfontloader.ts:53
inactive
▸ inactive(): void
This event is triggered when the browser does not support linked fonts or if none of the fonts could be loaded.
Returns
void
Overrides
WebFont.Config.inactive
Defined in
src/plugins/webfontloader.ts:51
loading
▸ loading(): void
This event is triggered when all fonts have been requested.
Returns
void
Overrides
WebFont.Config.loading