-
public final class MutableFontFaceDeclarationA mutable font face declaration.
-
-
Method Summary
Modifier and Type Method Description final UnitaddSource(String path, Boolean preload)Add a source for the font face. final UnitaddSource(Url href, Boolean preload)Add a source for the font face. final UnitsetFontStyle(FontStyle fontStyle)Set the font style of the font face. final UnitsetFontWeight(FontWeight fontWeight)Set the font weight of the font face. final UnitsetFontWeight(ClosedRange<Integer> range)Set the font weight range of a variable font face. -
-
Method Detail
-
addSource
final Unit addSource(String path, Boolean preload)
Add a source for the font face.
- Parameters:
path- Path to the font file.preload- Indicates whether this source will be declared for preloading in the HTML using<link rel="preload">.
-
addSource
final Unit addSource(Url href, Boolean preload)
Add a source for the font face.
- Parameters:
preload- Indicates whether this source will be declared for preloading in the HTML using<link rel="preload">.
-
setFontStyle
final Unit setFontStyle(FontStyle fontStyle)
Set the font style of the font face.
-
setFontWeight
final Unit setFontWeight(FontWeight fontWeight)
Set the font weight of the font face.
-
setFontWeight
final Unit setFontWeight(ClosedRange<Integer> range)
Set the font weight range of a variable font face.
-
-
-
-