com.atlassian.confluence.util
Interface FontManager

All Known Implementing Classes:
DefaultFontManager

public interface FontManager


Method Summary
 java.lang.String getCurrentFont()
           
 void installFont(java.io.File font)
          Deprecated. Since 2.8
 void installFont(org.springframework.core.io.Resource fontResource)
          Installs the specified font resource
 boolean isCustomFontInstalled()
           
 void restoreDefaultFont()
          Removes custom font if one has been installed and reconfigures FOP to use the default font
 

Method Detail

installFont

void installFont(java.io.File font)
                 throws java.io.IOException,
                        org.apache.fop.apps.FOPException
Deprecated. Since 2.8

Installs the specified font file

Throws:
java.io.IOException - if there is an error copying the font file to the fonts folder in the Confluence home directory
org.apache.fop.apps.FOPException - if there is an error registering this new font with FOP

installFont

void installFont(org.springframework.core.io.Resource fontResource)
                 throws java.io.IOException,
                        org.apache.fop.apps.FOPException
Installs the specified font resource

Throws:
java.io.IOException - if there is an error copying the font file to the fonts folder in the Confluence home directory
org.apache.fop.apps.FOPException - if there is an error registering this new font with FOP

getCurrentFont

java.lang.String getCurrentFont()
Returns:
the font currently being used to generate PDF's

isCustomFontInstalled

boolean isCustomFontInstalled()
Returns:
true if a custom font has been installed

restoreDefaultFont

void restoreDefaultFont()
                        throws org.apache.fop.apps.FOPException
Removes custom font if one has been installed and reconfigures FOP to use the default font

Throws:
org.apache.fop.apps.FOPException - if there is an error registering the default font with FOP


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.