Type1FontMetrics

Inheritance: java.lang.Object, com.aspose.font.FontMetrics

public class Type1FontMetrics extends FontMetrics

Represents Type1 Font metrics.

Methods

MethodDescription
getWeight()Gets weight.
getItalicAngle()Gets italic angle value.
getUnderlinePosition()Gets underline position value.
getUnderlineThickness()Gets underline thickness value.
getCapHeight()Gets cap height value.
getXHeight()Gets XHeight value.
getAscender()Gets ascender value.
getDescender()Gets descender value.
getStdHW()Gets StdHW value.
getStdVW()Gets StdVW value.
getFontBBox()Gets FontBBox value.
getFontMatrix()Gets Font transformation matrix.
getUnitsPerEM()Gets underline UnitsPerEM value.
setUnitsPerEM(long value)
getGlyphWidth(GlyphId glyphId)Returns glyph width.
measureString(String unicode, double fontSize)Measures string and returns string width.

getWeight()

public String getWeight()

Gets weight.

Returns: java.lang.String - Weight.

getItalicAngle()

public double getItalicAngle()

Gets italic angle value.

Returns: double - Italic angle value.

getUnderlinePosition()

public double getUnderlinePosition()

Gets underline position value.

Returns: double - Underline position value.

getUnderlineThickness()

public double getUnderlineThickness()

Gets underline thickness value.

Returns: double - Underline thickness value.

getCapHeight()

public double getCapHeight()

Gets cap height value.

Returns: double - Cap height value.

getXHeight()

public double getXHeight()

Gets XHeight value.

Returns: double - XHeight value.

getAscender()

public double getAscender()

Gets ascender value.

Returns: double - Ascender value.

getDescender()

public double getDescender()

Gets descender value.

Returns: double - Descender value.

getStdHW()

public double getStdHW()

Gets StdHW value.

Returns: double - StdHW value.

getStdVW()

public double getStdVW()

Gets StdVW value.

Returns: double - StdVW value.

getFontBBox()

public FontBBox getFontBBox()

Gets FontBBox value.

Returns: FontBBox - FontBBox value.

getFontMatrix()

public TransformationMatrix getFontMatrix()

Gets Font transformation matrix.

Returns: TransformationMatrix - Font transformation matrix.

getUnitsPerEM()

public long getUnitsPerEM()

Gets underline UnitsPerEM value.

Returns: long - Underline UnitsPerEM value.

setUnitsPerEM(long value)

public void setUnitsPerEM(long value)

Sets UnitsPerEM value.

Parameters:

ParameterTypeDescription
valuelong

getGlyphWidth(GlyphId glyphId)

public double getGlyphWidth(GlyphId glyphId)

Returns glyph width. May be ovridden by specific font encoding inheritors.

Parameters:

ParameterTypeDescription
glyphIdGlyphIdGlyph identifier.

Returns: double - Glyph width.

measureString(String unicode, double fontSize)

public double measureString(String unicode, double fontSize)

Measures string and returns string width.

Parameters:

ParameterTypeDescription
unicodejava.lang.StringUnicode string.
fontSizedoubleFont size.

Returns: double - String width.