ExternalFontCache

Inheritance: java.lang.Object

public class ExternalFontCache

Utilisez cette classe pour obtenir l’encapsulation de police sous une forme acceptée par Device.

Constructeurs

ConstructeurDescription
ExternalFontCache()

Champs

ChampDescription
DEFAULT_SIZETaille de police par défaut.
DEFAULT_STYLEStyle de police par défaut.

Méthodes

MéthodeDescription
FetchTrFont(String familyName)Récupère DrFont par nom de famille de police, taille par défaut (1) et style par défaut (PLAIN).
FetchTrFont(String familyName, int style)Récupère DrFont par nom de famille de police, taille par défaut (1) et style.
equals(Object arg0)
fetchDrFont(String familyName, float sizePoints, int style)Récupère DrFont par nom de famille de police, taille et style.
fetchDrFont(String familyName, float sizePoints, int style, int fontCapitals)Récupère DrFont par nom de famille de police, taille, style et majuscules de police.
fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName)Récupère DrFont par nom de famille de police, taille, style et nom de famille de police alternatif.
fetchDrFont(String familyName, float sizePoints, int style, String altFamilyName, int fontCapitals)Récupère DrFont par nom de famille de police, taille, style, majuscules de police et nom de famille de police alternatif.
fetchTTFont(String familyName, int style, String altFamilyName)Récupère TTFont par nom de famille de police, style et nom de famille de police alternatif.
getClass()
hashCode()
notify()
notifyAll()
setAdditionalFontsFolders(String[] additionalFontFolders)Spécifie des dossiers de polices supplémentaires.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ExternalFontCache()

public ExternalFontCache()

DEFAULT_SIZE

public static final float DEFAULT_SIZE

Taille de police par défaut.

DEFAULT_STYLE

public static final int DEFAULT_STYLE

Style de police par défaut.

FetchTrFont(String familyName)

public DrFont FetchTrFont(String familyName)

Récupère DrFont par nom de famille de police, taille par défaut (1) et style par défaut (PLAIN).

Parameters:

ParamètreTypeDescription
familyNamejava.lang.StringNom de famille de police.

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

FetchTrFont(String familyName, int style)

public DrFont FetchTrFont(String familyName, int style)

Récupère DrFont par nom de famille de police, taille par défaut (1) et style.

Parameters:

ParamètreTypeDescription
familyNamejava.lang.StringNom de famille de police.
styleintStyle de police.

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

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParamètreTypeDescription
arg0java.lang.Object

Returns: boolean

fetchDrFont(String familyName, float sizePoints, int style)

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

Récupère DrFont par nom de famille de police, taille et style.

Parameters:

ParamètreTypeDescription
familyNamejava.lang.StringNom de famille de police.
sizePointsfloatTaille de police en points (un point vaut 1/72 de pouce).
styleintStyle de police.

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)

Récupère DrFont par nom de famille de police, taille, style et majuscules de police.

Parameters:

ParamètreTypeDescription
familyNamejava.lang.StringNom de famille de police.
sizePointsfloatTaille de police en points (un point vaut 1/72 de pouce).
styleintStyle de police.
fontCapitalsintMajuscules de police.

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)

Récupère DrFont par nom de famille de police, taille, style et nom de famille de police alternatif.

Parameters:

ParamètreTypeDescription
familyNamejava.lang.StringNom de famille de police.
sizePointsfloatTaille de police en points (un point vaut 1/72 de pouce).
styleintStyle de police.
altFamilyNamejava.lang.StringNom de famille de police alternatif.

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)

Récupère DrFont par nom de famille de police, taille, style, majuscules de police et nom de famille de police alternatif.

Parameters:

ParamètreTypeDescription
familyNamejava.lang.StringNom de famille de police.
sizePointsfloatTaille de police en points (un point vaut 1/72 de pouce).
styleintStyle de police.
altFamilyNamejava.lang.StringNom de famille de police alternatif.
fontCapitalsintMajuscules de police.

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

fetchTTFont(String familyName, int style, String altFamilyName)

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

Récupère TTFont par nom de famille de police, style et nom de famille de police alternatif.

Parameters:

ParamètreTypeDescription
familyNamejava.lang.StringNom de famille de police.
styleintStyle de police.
altFamilyNamejava.lang.StringNom de famille de police alternatif.

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)

Spécifie les dossiers de polices supplémentaires. Les dossiers de polices utilisés par le système d’exploitation sont utilisés par le cache de polices externes par défaut. Il n’est pas nécessaire de les définir,

Parameters:

ParamètreTypeDescription
additionalFontFoldersjava.lang.String[]Un tableau de dossiers de polices supplémentaires.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParamètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int