FontConfigs

Inheritance: java.lang.Object

public class FontConfigs

Specifies font settings

Constructors

ConstructorDescription
FontConfigs()

Methods

MethodDescription
equals(Object arg0)
getClass()
getDefaultFontName()the default font name.
getFontSources()Gets a copy of the array that contains the list of sources
getFontSubstitutes(String originalFontName)Returns array containing font substitute names to be used if original font is not presented.
getPreferSystemFontSubstitutes()Indicate whether to use system font substitutes first or not when a font is not presented and the substitute of this font is not set.
hashCode()
notify()
notifyAll()
setDefaultFontName(String value)For the description of this property, please see getDefaultFontName()
setFontFolder(String fontFolder, boolean recursive)Sets the fonts folder
setFontFolders(String[] fontFolders, boolean recursive)Sets the fonts folders
setFontSources(FontSourceBase[] sources)Sets the fonts sources.
setFontSubstitutes(String originalFontName, String[] substituteFontNames)Font substitute names for given original font name.
setPreferSystemFontSubstitutes(boolean value)For the description of this property, please see getPreferSystemFontSubstitutes()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FontConfigs()

public FontConfigs()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDefaultFontName()

public static String getDefaultFontName()

the default font name.

Returns: java.lang.String

getFontSources()

public static FontSourceBase[] getFontSources()

Gets a copy of the array that contains the list of sources

Returns: com.aspose.diagram.FontSourceBase[] -

getFontSubstitutes(String originalFontName)

public static String[] getFontSubstitutes(String originalFontName)

Returns array containing font substitute names to be used if original font is not presented.

Parameters:

ParameterTypeDescription
originalFontNamejava.lang.StringoriginalFontName

Returns: java.lang.String[] - An array containing font substitute names to be used if original font is not presented.

getPreferSystemFontSubstitutes()

public static boolean getPreferSystemFontSubstitutes()

Indicate whether to use system font substitutes first or not when a font is not presented and the substitute of this font is not set. e.g. On Ubuntu, “Arial” font is generally substituted by “Liberation Sans”. Default value is false.

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDefaultFontName(String value)

public static void setDefaultFontName(String value)

For the description of this property, please see getDefaultFontName()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setFontFolder(String fontFolder, boolean recursive)

public static void setFontFolder(String fontFolder, boolean recursive)

Sets the fonts folder

Parameters:

ParameterTypeDescription
fontFolderjava.lang.StringThe folder that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontFolders(String[] fontFolders, boolean recursive)

public static void setFontFolders(String[] fontFolders, boolean recursive)

Sets the fonts folders

Parameters:

ParameterTypeDescription
fontFoldersjava.lang.String[]The folders that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontSources(FontSourceBase[] sources)

public static void setFontSources(FontSourceBase[] sources)

Sets the fonts sources.

Parameters:

ParameterTypeDescription
sourcesFontSourceBase[]An array of sources that contain TrueType fonts.

setFontSubstitutes(String originalFontName, String[] substituteFontNames)

public static void setFontSubstitutes(String originalFontName, String[] substituteFontNames)

Font substitute names for given original font name.

Parameters:

ParameterTypeDescription
originalFontNamejava.lang.StringOriginal font name.
substituteFontNamesjava.lang.String[]List of font substitute names to be used if original font is not presented.

setPreferSystemFontSubstitutes(boolean value)

public static void setPreferSystemFontSubstitutes(boolean value)

For the description of this property, please see getPreferSystemFontSubstitutes()

Parameters:

ParameterTypeDescription
valueboolean

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int