ExternalFontCache
Inheritance: java.lang.Object
public class ExternalFontCache
Use this class to obtain font encapsulation in a form that is accepted by Device.
Constructors
Constructor | Description |
---|---|
ExternalFontCache() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
familyName | java.lang.String | Font family name. |
sizePoints | float | Font size in points (one point is 1/72 of inch). |
style | int | Font 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:
Parameter | Type | Description |
---|---|---|
familyName | java.lang.String | Font family name. |
sizePoints | float | Font size in points (one point is 1/72 of inch). |
style | int | Font style. |
fontCapitals | int | Font 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:
Parameter | Type | Description |
---|---|---|
familyName | java.lang.String | Font family name. |
sizePoints | float | Font size in points (one point is 1/72 of inch). |
style | int | Font style. |
altFamilyName | java.lang.String | Alternative 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:
Parameter | Type | Description |
---|---|---|
familyName | java.lang.String | Font family name. |
sizePoints | float | Font size in points (one point is 1/72 of inch). |
style | int | Font style. |
altFamilyName | java.lang.String | Alternative font family name. |
fontCapitals | int | Font 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:
Parameter | Type | Description |
---|---|---|
familyName | java.lang.String | Font family name. |
style | int | Font style. |
altFamilyName | java.lang.String | Alternative 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:
Parameter | Type | Description |
---|---|---|
additionalFontFolders | java.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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |