Type1FontMetrics

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

public class Type1FontMetrics extends FontMetrics

Represents Type1 Font metrics.

Methods

MethodDescription
equals(Object arg0)
getAscender()Gets ascender value.
getAscender(double fontSize)Returns ascender for specific Font size.
getCapHeight()Gets cap height value.
getClass()
getDescender()Gets descender value.
getDescender(double fontSize)Returns descender for specific Font size.
getFontBBox()Gets FontBBox value.
getFontMatrix()Gets Font transformation matrix.
getGlyphBBox(GlyphId glyphId)Returns glyph Bbox.
getGlyphWidth(GlyphId glyphId)Returns glyph width.
getItalicAngle()Gets italic angle value.
getKerningValue(GlyphId prevGlyphId, GlyphId nextGlyphId)Returns kerning value for the glyph pair.
getLineGap()Gets LineGap value.
getStdHW()Gets StdHW value.
getStdVW()Gets StdVW value.
getTypoAscender()Gets TypoAscender value.
getTypoAscender(double fontSize)Returns typographic ascender for specific Font size.
getTypoDescender()Gets TypoDescender value.
getTypoDescender(double fontSize)Returns typographic descender for specific font size
getTypoLineGap()Gets TypoLineGap value.
getTypoLineGap(double fontSize)Returns line gap for specific Font size.
getUnderlinePosition()Gets underline position value.
getUnderlineThickness()Gets underline thickness value.
getUnitsPerEM()Gets underline UnitsPerEM value.
getWeight()Gets weight.
getXHeight()Gets XHeight value.
hashCode()
isFixedPitch()Gets IsFixedPitch value.
measureString(String unicode, double fontSize)Measures string and returns string width.
notify()
notifyAll()
setAscender(double value)Sets Ascender value.
setDescender(double value)Sets Descender value.
setTypoAscender(double value)Sets TypoAscender value.
setTypoDescender(double value)Sets TypoDescender value.
setUnitsPerEM(long value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAscender()

public double getAscender()

Gets ascender value.

Returns: double - Ascender value.

getAscender(double fontSize)

public double getAscender(double fontSize)

Returns ascender for specific Font size.

Parameters:

ParameterTypeDescription
fontSizedoubleFont size.

Returns: double - Ascender value.

getCapHeight()

public double getCapHeight()

Gets cap height value.

Returns: double - Cap height value.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDescender()

public double getDescender()

Gets descender value.

Returns: double - Descender value.

getDescender(double fontSize)

public double getDescender(double fontSize)

Returns descender for specific Font size.

Parameters:

ParameterTypeDescription
fontSizedoubleFont size.

Returns: double - Descender 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.

getGlyphBBox(GlyphId glyphId)

public FontBBox getGlyphBBox(GlyphId glyphId)

Returns glyph Bbox. Returns FontBBox if BBox was not defined for the glyph. May be overridden by specific font encoding inheritors.

Parameters:

ParameterTypeDescription
glyphIdGlyphIdGlyph identifier.

Returns: FontBBox - Glyph BBox.

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.

getItalicAngle()

public double getItalicAngle()

Gets italic angle value.

Returns: double - Italic angle value.

getKerningValue(GlyphId prevGlyphId, GlyphId nextGlyphId)

public double getKerningValue(GlyphId prevGlyphId, GlyphId nextGlyphId)

Returns kerning value for the glyph pair.

Parameters:

ParameterTypeDescription
prevGlyphIdGlyphIdFirst glyph in pair.
nextGlyphIdGlyphIdFont size.

Returns: double - Kerning value.

getLineGap()

public double getLineGap()

Gets LineGap value.

Returns: double - LineGap value.

getStdHW()

public double getStdHW()

Gets StdHW value.

Returns: double - StdHW value.

getStdVW()

public double getStdVW()

Gets StdVW value.

Returns: double - StdVW value.

getTypoAscender()

public double getTypoAscender()

Gets TypoAscender value.

Returns: double - TypoAscender value.

getTypoAscender(double fontSize)

public double getTypoAscender(double fontSize)

Returns typographic ascender for specific Font size.

Parameters:

ParameterTypeDescription
fontSizedoubleFont size.

Returns: double - Typographic ascender value.

getTypoDescender()

public double getTypoDescender()

Gets TypoDescender value.

Returns: double - TypoDescender value.

getTypoDescender(double fontSize)

public double getTypoDescender(double fontSize)

Returns typographic descender for specific font size

param fontSize Font size.

Parameters:

ParameterTypeDescription
fontSizedouble

Returns: double - Typographic descender value.

getTypoLineGap()

public double getTypoLineGap()

Gets TypoLineGap value.

Returns: double - TypoLineGap value.

getTypoLineGap(double fontSize)

public double getTypoLineGap(double fontSize)

Returns line gap for specific Font size.

Parameters:

ParameterTypeDescription
fontSizedoubleFont size.

Returns: double - Line gap 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.

getUnitsPerEM()

public long getUnitsPerEM()

Gets underline UnitsPerEM value.

Returns: long - Underline UnitsPerEM value.

getWeight()

public String getWeight()

Gets weight.

Returns: java.lang.String - Weight.

getXHeight()

public double getXHeight()

Gets XHeight value.

Returns: double - XHeight value.

hashCode()

public native int hashCode()

Returns: int

isFixedPitch()

public boolean isFixedPitch()

Gets IsFixedPitch value.

Returns: boolean - IsFixedPitch value.

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.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAscender(double value)

public void setAscender(double value)

Sets Ascender value.

Parameters:

ParameterTypeDescription
valuedoubleAscender value.

setDescender(double value)

public void setDescender(double value)

Sets Descender value.

Parameters:

ParameterTypeDescription
valuedoubleDescender value.

setTypoAscender(double value)

public void setTypoAscender(double value)

Sets TypoAscender value.

Parameters:

ParameterTypeDescription
valuedoubleTypoAscender value.

setTypoDescender(double value)

public void setTypoDescender(double value)

Sets TypoDescender value.

Parameters:

ParameterTypeDescription
valuedoubleTypoDescender value.

setUnitsPerEM(long value)

public void setUnitsPerEM(long value)

Sets UnitsPerEM value.

Parameters:

ParameterTypeDescription
valuelong

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