|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.tinymceplugin.DefaultFontProvider
public class DefaultFontProvider
| Constructor Summary | |
|---|---|
DefaultFontProvider()
|
|
| Method Summary | |
|---|---|
java.awt.Font |
getConfluenceFont(java.lang.String name)
Get the specified Confluence bundled Font. |
java.awt.Font |
getFirstAvailableFont(java.lang.String... desiredFontNames)
Returns the first available font among the specified fonts (respects order). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFontProvider()
| Method Detail |
|---|
public java.awt.Font getFirstAvailableFont(java.lang.String... desiredFontNames)
FontProvider
getFirstAvailableFont in interface FontProviderdesiredFontNames - desired font names
public java.awt.Font getConfluenceFont(java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||