ExternalFontCache

Inheritance: java.lang.Object

public class ExternalFontCache

Use this class to obtain font encapsulation in a form that is accepted by Device.

Constructors

ConstructorDescription
ExternalFontCache()

Methods

MethodDescription
equals(Object arg0)
fetchDrFont(String familyName, float sizePoints, int style)Fetches DrFont by font family name, size and style.
fetchDrFont(String familyName, float sizePoints, int style, int fontCapitals)Fetches DrFont by font family name, size, style and font capitals.
fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName)Fetches DrFont by font family name, size, style and alternative font family name.
fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName, int fontCapitals)Fetches DrFont by font family name, size, style, font capitals and alternative font family name.
fetchTTFont(String familyName, int style, String altFamilyName)Fetches TTFont by font family name, style and alternative font family name.
getClass()
hashCode()
notify()
notifyAll()
setAdditionalFontsFolders(String[] additionalFontFolders)Specifies additional fonts folders.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ExternalFontCache()

public ExternalFontCache()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

fetchDrFont(String familyName, float sizePoints, int style)

public static DrFont fetchDrFont(String familyName, float sizePoints, int style)

Fetches DrFont by font family name, size and style.

Parameters:

ParameterTypeDescription
familyNamejava.lang.StringFont family name.
sizePointsfloatFont size in points (one point is 1/72 of inch).
styleintFont style.

Returns: com.aspose.foundation.drawing.DrFont - DrFont.

fetchDrFont(String familyName, float sizePoints, int style, int fontCapitals)

public DrFont fetchDrFont(String familyName, float sizePoints, int style, int fontCapitals)

Fetches DrFont by font family name, size, style and font capitals.

Parameters:

ParameterTypeDescription
familyNamejava.lang.StringFont family name.
sizePointsfloatFont size in points (one point is 1/72 of inch).
styleintFont style.
fontCapitalsintFont capitals.

Returns: com.aspose.foundation.drawing.DrFont - DrFont.

fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName)

public DrFont fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName)

Fetches DrFont by font family name, size, style and alternative font family name.

Parameters:

ParameterTypeDescription
familyNamejava.lang.StringFont family name.
sizePointsfloatFont size in points (one point is 1/72 of inch).
styleintFont style.
altFamilyNamejava.lang.StringAlternative font family name.

Returns: com.aspose.foundation.drawing.DrFont - DrFont.

fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName, int fontCapitals)

public DrFont fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName, int fontCapitals)

Fetches DrFont by font family name, size, style, font capitals and alternative font family name.

Parameters:

ParameterTypeDescription
familyNamejava.lang.StringFont family name.
sizePointsfloatFont size in points (one point is 1/72 of inch).
styleintFont style.
altFamilyNamejava.lang.StringAlternative font family name.
fontCapitalsintFont capitals.

Returns: com.aspose.foundation.drawing.DrFont - DrFont.

fetchTTFont(String familyName, int style, String altFamilyName)

public TTFont fetchTTFont(String familyName, int style, String altFamilyName)

Fetches TTFont by font family name, style and alternative font family name.

Parameters:

ParameterTypeDescription
familyNamejava.lang.StringFont family name.
styleintFont style.
altFamilyNamejava.lang.StringAlternative font family name.

Returns: com.aspose.foundation.truetype.TTFont - TTFont.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAdditionalFontsFolders(String[] additionalFontFolders)

public static void setAdditionalFontsFolders(String[] additionalFontFolders)

Specifies additional fonts folders. Fonts folders that are used by OS are used by ExternalFont Cache by default. There are no needs to define them,

Parameters:

ParameterTypeDescription
additionalFontFoldersjava.lang.String[]An array of additional fonts folders.

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