EmfPlusFont

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusGraphicsObjectType

public final class EmfPlusFont extends EmfPlusGraphicsObjectType

The EmfPlusFont object specifies properties that determine the appearance of text, including typeface, size, and style.

Constructors

ConstructorDescription
EmfPlusFont()

Methods

MethodDescription
getFamilyName()Gets or sets a string of Length Unicode characters that contains the name of the font family
setFamilyName(String value)Gets or sets a string of Length Unicode characters that contains the name of the font family
getFontStyleFlags()Gets or sets a 32-bit signed integer that specifies attributes of the character glyphs that affect the appearance of the font, such as bold and italic.
setFontStyleFlags(int value)Gets or sets a 32-bit signed integer that specifies attributes of the character glyphs that affect the appearance of the font, such as bold and italic.
getSizeUnit()Gets or sets a 32-bit unsigned integer that specifies the units used for the EmSize field.
setSizeUnit(int value)Gets or sets a 32-bit unsigned integer that specifies the units used for the EmSize field.
getEmSize()Gets or sets a 32-bit floating-point value that specifies the em size of the font in units specified by the SizeUnit field.
setEmSize(float value)Gets or sets a 32-bit floating-point value that specifies the em size of the font in units specified by the SizeUnit field.

EmfPlusFont()

public EmfPlusFont()

getFamilyName()

public String getFamilyName()

Gets or sets a string of Length Unicode characters that contains the name of the font family

Returns: java.lang.String

setFamilyName(String value)

public void setFamilyName(String value)

Gets or sets a string of Length Unicode characters that contains the name of the font family

Parameters:

ParameterTypeDescription
valuejava.lang.String

getFontStyleFlags()

public int getFontStyleFlags()

Gets or sets a 32-bit signed integer that specifies attributes of the character glyphs that affect the appearance of the font, such as bold and italic. This value MUST be composed of FontStyle flags (section 2.1.2.4).

Returns: int

setFontStyleFlags(int value)

public void setFontStyleFlags(int value)

Gets or sets a 32-bit signed integer that specifies attributes of the character glyphs that affect the appearance of the font, such as bold and italic. This value MUST be composed of FontStyle flags (section 2.1.2.4).

Parameters:

ParameterTypeDescription
valueint

getSizeUnit()

public int getSizeUnit()

Gets or sets a 32-bit unsigned integer that specifies the units used for the EmSize field. These are typically the units that were employed when designing the font. The value MUST be in the UnitType enumeration (section 2.1.1.33).

Returns: int

setSizeUnit(int value)

public void setSizeUnit(int value)

Gets or sets a 32-bit unsigned integer that specifies the units used for the EmSize field. These are typically the units that were employed when designing the font. The value MUST be in the UnitType enumeration (section 2.1.1.33).

Parameters:

ParameterTypeDescription
valueint

getEmSize()

public float getEmSize()

Gets or sets a 32-bit floating-point value that specifies the em size of the font in units specified by the SizeUnit field.

Returns: float

setEmSize(float value)

public void setEmSize(float value)

Gets or sets a 32-bit floating-point value that specifies the em size of the font in units specified by the SizeUnit field.

Parameters:

ParameterTypeDescription
valuefloat