Package org.apache.fontbox.afm
Class CharMetric
java.lang.Object
org.apache.fontbox.afm.CharMetric
This class represents a single character metric.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLigature(Ligature ligature) This will add an entry to the list of ligatures.Getter for property boundingBox.intGetter for property characterCode.Getter for property ligatures.getName()Getter for property name.float[]getVv()Getter for property vv.float[]getW()Getter for property w.float[]getW0()Getter for property w0.floatgetW0x()Getter for property w0x.floatgetW0y()Getter for property w0y.float[]getW1()Getter for property w1.floatgetW1x()Getter for property w1x.floatgetW1y()Getter for property w1y.floatgetWx()Getter for property wx.floatgetWy()Getter for property wy.voidsetBoundingBox(BoundingBox bBox) Setter for property boundingBox.voidsetCharacterCode(int cCode) Setter for property characterCode.voidsetLigatures(List<Ligature> lig) Setter for property ligatures.voidSetter for property name.voidsetVv(float[] vvValue) Setter for property vv.voidsetW(float[] wValue) Setter for property w.voidsetW0(float[] w0Value) Setter for property w0.voidsetW0x(float w0xValue) Setter for property w0x.voidsetW0y(float w0yValue) Setter for property w0y.voidsetW1(float[] w1Value) Setter for property w1.voidsetW1x(float w1xValue) Setter for property w1x.voidsetW1y(float w1yValue) Setter for property w1y.voidsetWx(float wxValue) Setter for property wx.voidsetWy(float wyValue) Setter for property wy.
-
Constructor Details
-
CharMetric
public CharMetric()
-
-
Method Details
-
getBoundingBox
Getter for property boundingBox.- Returns:
- Value of property boundingBox.
-
setBoundingBox
Setter for property boundingBox.- Parameters:
bBox- New value of property boundingBox.
-
getCharacterCode
public int getCharacterCode()Getter for property characterCode.- Returns:
- Value of property characterCode.
-
setCharacterCode
public void setCharacterCode(int cCode) Setter for property characterCode.- Parameters:
cCode- New value of property characterCode.
-
addLigature
This will add an entry to the list of ligatures.- Parameters:
ligature- The ligature to add.
-
getLigatures
Getter for property ligatures.- Returns:
- Value of property ligatures.
-
setLigatures
Setter for property ligatures.- Parameters:
lig- New value of property ligatures.
-
getName
Getter for property name.- Returns:
- Value of property name.
-
setName
Setter for property name.- Parameters:
n- New value of property name.
-
getVv
public float[] getVv()Getter for property vv.- Returns:
- Value of property vv.
-
setVv
public void setVv(float[] vvValue) Setter for property vv.- Parameters:
vvValue- New value of property vv.
-
getW
public float[] getW()Getter for property w.- Returns:
- Value of property w.
-
setW
public void setW(float[] wValue) Setter for property w.- Parameters:
wValue- New value of property w.
-
getW0
public float[] getW0()Getter for property w0.- Returns:
- Value of property w0.
-
setW0
public void setW0(float[] w0Value) Setter for property w0.- Parameters:
w0Value- New value of property w0.
-
getW0x
public float getW0x()Getter for property w0x.- Returns:
- Value of property w0x.
-
setW0x
public void setW0x(float w0xValue) Setter for property w0x.- Parameters:
w0xValue- New value of property w0x.
-
getW0y
public float getW0y()Getter for property w0y.- Returns:
- Value of property w0y.
-
setW0y
public void setW0y(float w0yValue) Setter for property w0y.- Parameters:
w0yValue- New value of property w0y.
-
getW1
public float[] getW1()Getter for property w1.- Returns:
- Value of property w1.
-
setW1
public void setW1(float[] w1Value) Setter for property w1.- Parameters:
w1Value- New value of property w1.
-
getW1x
public float getW1x()Getter for property w1x.- Returns:
- Value of property w1x.
-
setW1x
public void setW1x(float w1xValue) Setter for property w1x.- Parameters:
w1xValue- New value of property w1x.
-
getW1y
public float getW1y()Getter for property w1y.- Returns:
- Value of property w1y.
-
setW1y
public void setW1y(float w1yValue) Setter for property w1y.- Parameters:
w1yValue- New value of property w1y.
-
getWx
public float getWx()Getter for property wx.- Returns:
- Value of property wx.
-
setWx
public void setWx(float wxValue) Setter for property wx.- Parameters:
wxValue- New value of property wx.
-
getWy
public float getWy()Getter for property wy.- Returns:
- Value of property wy.
-
setWy
public void setWy(float wyValue) Setter for property wy.- Parameters:
wyValue- New value of property wy.
-