public class FontMetrics extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected float |
normalizationCoef |
Constructor and Description |
---|
FontMetrics() |
Modifier and Type | Method and Description |
---|---|
int |
getAdvanceWidthMax() |
int |
getAscender() |
int[] |
getBbox() |
int |
getCapHeight()
Gets the capital letters height.
|
int |
getDescender() |
int[] |
getGlyphWidths() |
float |
getItalicAngle() |
int |
getLineGap() |
int |
getNumberOfGlyphs() |
int |
getStemH() |
int |
getStemV() |
int |
getStrikeoutPosition() |
int |
getStrikeoutSize() |
int |
getSubscriptOffset() |
int |
getSubscriptSize() |
int |
getSuperscriptOffset() |
int |
getSuperscriptSize() |
int |
getTypoAscender()
Gets typo (a.k.a.
|
int |
getTypoDescender()
Gets typo (a.k.a.
|
int |
getUnderlinePosition() |
int |
getUnderlineThickness() |
int |
getUnitsPerEm() |
int |
getWinAscender() |
int |
getWinDescender() |
int |
getXHeight() |
boolean |
isFixedPitch() |
protected void |
setAdvanceWidthMax(int advanceWidthMax) |
protected void |
setAscender(int ascender) |
void |
setBbox(int llx, int lly, int urx, int ury) |
protected void |
setCapHeight(int capHeight)
Sets the capital letters height.
|
protected void |
setDescender(int descender) |
protected void |
setGlyphWidths(int[] glyphWidths) |
protected void |
setIsFixedPitch(boolean isFixedPitch) |
protected void |
setItalicAngle(float italicAngle) |
protected void |
setLineGap(int lineGap) |
protected void |
setNumberOfGlyphs(int numOfGlyphs) |
protected void |
setStemH(int stemH) |
void |
setStemV(int stemV) |
protected void |
setStrikeoutPosition(int strikeoutPosition) |
protected void |
setStrikeoutSize(int strikeoutSize) |
protected void |
setSubscriptOffset(int subscriptOffset) |
protected void |
setSubscriptSize(int subscriptSize) |
protected void |
setSuperscriptOffset(int superscriptOffset) |
protected void |
setSuperscriptSize(int superscriptSize) |
protected void |
setTypoAscender(int typoAscender)
Sets typo (a.k.a.
|
protected void |
setTypoDescender(int typoDescender)
Sets typo (a.k.a.
|
protected void |
setUnderlinePosition(int underlinePosition) |
protected void |
setUnderlineThickness(int underineThickness) |
protected void |
setUnitsPerEm(int unitsPerEm) |
protected void |
setWinAscender(int winAscender) |
protected void |
setWinDescender(int winDescender) |
protected void |
setXHeight(int xHeight) |
protected void |
updateBbox(float llx, float lly, float urx, float ury) |
public int getUnitsPerEm()
public int getNumberOfGlyphs()
public int[] getGlyphWidths()
public int getTypoAscender()
Typo vertical metrics are the primary source for iText ascender/descender calculations.
public int getTypoDescender()
Typo vertical metrics are the primary source for iText ascender/descender calculations.
public int getCapHeight()
This property defines the vertical coordinate of the top of flat capital letters, measured from the baseline.
public int getXHeight()
public float getItalicAngle()
public int[] getBbox()
public void setBbox(int llx, int lly, int urx, int ury)
public int getAscender()
public int getDescender()
public int getLineGap()
public int getWinAscender()
public int getWinDescender()
public int getAdvanceWidthMax()
public int getUnderlinePosition()
public int getUnderlineThickness()
public int getStrikeoutPosition()
public int getStrikeoutSize()
public int getSubscriptSize()
public int getSubscriptOffset()
public int getSuperscriptSize()
public int getSuperscriptOffset()
public int getStemV()
public int getStemH()
public boolean isFixedPitch()
protected void setUnitsPerEm(int unitsPerEm)
protected void updateBbox(float llx, float lly, float urx, float ury)
protected void setNumberOfGlyphs(int numOfGlyphs)
protected void setGlyphWidths(int[] glyphWidths)
protected void setTypoAscender(int typoAscender)
Typo vertical metrics are the primary source for iText ascender/descender calculations.
typoAscender
- typo ascender value in normalized 1000-units
protected void setTypoDescender(int typoDescender)
Typo vertical metrics are the primary source for iText ascender/descender calculations.
typoDescender
- typo descender value in normalized 1000-units
protected void setCapHeight(int capHeight)
This property defines the vertical coordinate of the top of flat capital letters, measured from the baseline.
capHeight
- cap height in 1000-units
protected void setXHeight(int xHeight)
protected void setItalicAngle(float italicAngle)
protected void setAscender(int ascender)
protected void setDescender(int descender)
protected void setLineGap(int lineGap)
protected void setWinAscender(int winAscender)
protected void setWinDescender(int winDescender)
protected void setAdvanceWidthMax(int advanceWidthMax)
protected void setUnderlinePosition(int underlinePosition)
protected void setUnderlineThickness(int underineThickness)
protected void setStrikeoutPosition(int strikeoutPosition)
protected void setStrikeoutSize(int strikeoutSize)
protected void setSubscriptSize(int subscriptSize)
protected void setSubscriptOffset(int subscriptOffset)
protected void setSuperscriptSize(int superscriptSize)
protected void setSuperscriptOffset(int superscriptOffset)
public void setStemV(int stemV)
protected void setStemH(int stemH)
protected void setIsFixedPitch(boolean isFixedPitch)
Copyright © 1998–2023 iText Group NV. All rights reserved.