/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { String } from "../../types/java/lang/String"; import type { Node } from "../../types/javax/jcr/Node"; /** * Utility interface for Fonts. * *

* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getFontUtil()}. * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface. *

* @author Magnus Lövgren */ export interface FontUtil { /** * Gets the font with a given font name * @param aFontName the name of the font * @return the first font with name aFontName, or null if no font matches */ getFontByName(aFontName: String | string): Node; /** * Gets the font with a given font name with a fallback value if no font matches * @param aFontName the name of the font * @param aDefaultValue fallback value * @return the first font with name aFontName, or aDefaultValue if no font matches */ getFontByName(aFontName: String | string, aDefaultValue: Node): Node; /** * Gets the font with a given class name * @param aClassName the class name of the font * @return the first font with class name aClassName, or null if no font matches */ getFontByClassName(aClassName: String | string): Node; /** * Gets the font with a given class name with a fallback value if no font matches * @param aClassName the class name of the font * @param aDefaultValue fallback value * @return the first font with class name aClassName, or aDefaultValue if no font matches */ getFontByClassName(aClassName: String | string, aDefaultValue: Node): Node; } declare namespace FontUtil {} declare var fontUtil: FontUtil; export default fontUtil;