Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="FontUtil") public interface FontUtil
An instance of the Sitevision class implementing this interface can be obtained via Utils.getFontUtil()
.
See Utils
for how to obtain an instance of the Utils
interface.
Modifier and Type | Method and Description |
---|---|
Node |
getFontByClassName(String aClassName)
Gets the font with a given class name
|
Node |
getFontByClassName(String aClassName,
Node aDefaultValue)
Gets the font with a given class name with a fallback value if no font matches
|
Node |
getFontByName(String aFontName)
Gets the font with a given font name
|
Node |
getFontByName(String aFontName,
Node aDefaultValue)
Gets the font with a given font name with a fallback value if no font matches
|
Node getFontByName(String aFontName)
aFontName
- the name of the fontnull
if no font matchesNode getFontByName(String aFontName, Node aDefaultValue)
aFontName
- the name of the fontaDefaultValue
- fallback valueNode getFontByClassName(String aClassName)
aClassName
- the class name of the fontnull
if no font matchesNode getFontByClassName(String aClassName, Node aDefaultValue)
aClassName
- the class name of the fontaDefaultValue
- fallback valueSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.