public class DefaultFontProvider extends Object implements FontProvider
| Constructor and Description | 
|---|
| DefaultFontProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| Font | getConfluenceFont(String name)Get the specified Confluence bundled Font. | 
| Font | getFirstAvailableFont(String... desiredFontNames)Returns the first available font among the specified fonts (respects order). | 
public Font getFirstAvailableFont(String... desiredFontNames)
FontProvidergetFirstAvailableFont in interface FontProviderdesiredFontNames - desired font namespublic Font getConfluenceFont(String name)
FontProviderFont.deriveFont(int) can be used
 on the returned Font if you need a different size. This method does not look to system installed Fonts but only considers those bundled
 with Confluence.
 
 On Windows and Linux platforms explicitly retrieving a Font will constrain you to only the glyphs available within that font. On Mac OS X
 the JVM will try to find a suitable glyph from all available fonts. If you want this behaviour on the other platforms then you should use
 logical font names and the FontProvider.getFirstAvailableFont(String...) method.
getConfluenceFont in interface FontProvidername - the name of the Font required.Copyright © 2003–2019 Atlassian. All rights reserved.