CffFontMetrics
Inheritance: java.lang.Object, com.aspose.font.FontMetrics
public class CffFontMetrics extends FontMetrics
Implementación de métricas de fuentes CFF
Métodos
| Método | Descripción |
|---|---|
| equals(Object arg0) | |
| getAscender() | Obtiene el valor de Ascender. |
| getAscender(double fontSize) | Devuelve el ascender para un tamaño de fuente específico. |
| getClass() | |
| getDescender() | Obtiene el valor de Descender. |
| getDescender(double fontSize) | Devuelve el descender para un tamaño de fuente específico. |
| getFontBBox() | Obtiene el valor de FontBBox. |
| getFontMatrix() | Obtiene el valor de FontMatrix. |
| getFontMatrixForGlyph(GlyphId glyphId) | Calcula la matriz de transformación para el glifo especificado por id. |
| getGlyphBBox(GlyphId glyphId) | Devuelve el Bbox del glifo. |
| getGlyphWidth(GlyphId glyphId) | Devuelve el ancho del glifo. |
| getKerningValue(GlyphId prevGlyphId, GlyphId nextGlyphId) | Devuelve el valor de kerning para el par de glifos. |
| getLineGap() | Obtiene el valor de LineGap. |
| getTypoAscender() | Obtiene el valor de TypoAscender. |
| getTypoAscender(double fontSize) | Devuelve el ascendente tipográfico para un tamaño de fuente específico. |
| getTypoDescender() | Obtiene el valor de TypoDescender. |
| getTypoDescender(double fontSize) | Devuelve el descendente tipográfico para un tamaño de fuente específico |
| getTypoLineGap() | Obtiene el valor de TypoLineGap. |
| getTypoLineGap(double fontSize) | Devuelve el espacio entre líneas para un tamaño de fuente específico. |
| getUnitsPerEM() | Obtiene el valor de UnitsPerEM. |
| hashCode() | |
| isFixedPitch() | Obtiene el valor de IsFixedPitch. |
| measureString(String unicode, double fontSize) | Mide la cadena y devuelve el ancho de la cadena. |
| notify() | |
| notifyAll() | |
| setAscender(double value) | Establece el valor de Ascender. |
| setDescender(double value) | Establece el valor de Descender. |
| setGlyphWidth(GlyphId glyphId, double value) | |
| setTypoAscender(double value) | Establece el valor de TypoAscender. |
| setTypoDescender(double value) | Establece el valor de TypoDescender. |
| setUnitsPerEM(long value) | Establece el valor de UnitsPerEM. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getAscender()
public double getAscender()
Obtiene el valor de Ascender.
Returns: double - valor de Ascender.
getAscender(double fontSize)
public double getAscender(double fontSize)
Devuelve el ascender para un tamaño de fuente específico.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| fontSize | double | Tamaño de fuente. |
Returns: double - valor de Ascender.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDescender()
public double getDescender()
Obtiene el valor de Descender.
Returns: double - valor de Descender.
getDescender(double fontSize)
public double getDescender(double fontSize)
Devuelve el descender para un tamaño de fuente específico.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| fontSize | double | Tamaño de fuente. |
Returns: double - valor de Descender.
getFontBBox()
public FontBBox getFontBBox()
Obtiene el valor de FontBBox.
Returns: FontBBox - FontBBox value.
getFontMatrix()
public TransformationMatrix getFontMatrix()
Obtiene el valor de FontMatrix.
Returns: TransformationMatrix - FontMatrix value.
getFontMatrixForGlyph(GlyphId glyphId)
public TransformationMatrix getFontMatrixForGlyph(GlyphId glyphId)
Calcula la matriz de transformación para el glifo especificado por id.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| glyphId | GlyphId | Identificador de glifo. |
Returns: TransformationMatrix - Glyph transformation matrix.
getGlyphBBox(GlyphId glyphId)
public FontBBox getGlyphBBox(GlyphId glyphId)
Devuelve el Bbox del glifo. Devuelve FontBBox si el Bbox no estaba definido para el glifo. Puede ser sobrescrito por herederos de codificación de fuente específicos.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| glyphId | GlyphId | Identificador de glifo. |
Returns: FontBBox - Glyph BBox.
getGlyphWidth(GlyphId glyphId)
public double getGlyphWidth(GlyphId glyphId)
Devuelve el ancho del glifo. Puede ser sobrescrito por herederos de codificación de fuente específicos.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| glyphId | GlyphId | Identificador de glifo. |
Returns: double - Ancho del glifo.
getKerningValue(GlyphId prevGlyphId, GlyphId nextGlyphId)
public double getKerningValue(GlyphId prevGlyphId, GlyphId nextGlyphId)
Devuelve el valor de kerning para el par de glifos.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| prevGlyphId | GlyphId | Primer glifo en el par. |
| nextGlyphId | GlyphId | Tamaño de fuente. |
Returns: double - Valor de interletraje.
getLineGap()
public double getLineGap()
Obtiene el valor de LineGap.
Returns: double - Valor de LineGap.
getTypoAscender()
public double getTypoAscender()
Obtiene el valor de TypoAscender.
Returns: double - Valor de TypoAscender.
getTypoAscender(double fontSize)
public double getTypoAscender(double fontSize)
Devuelve el ascendente tipográfico para un tamaño de fuente específico.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| fontSize | double | Tamaño de fuente. |
Returns: double - Valor del ascendente tipográfico.
getTypoDescender()
public double getTypoDescender()
Obtiene el valor de TypoDescender.
Returns: double - Valor de TypoDescender.
getTypoDescender(double fontSize)
public double getTypoDescender(double fontSize)
Devuelve el descendente tipográfico para un tamaño de fuente específico
param fontSize Tamaño de fuente.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| fontSize | double |
Returns: double - Valor del descendente tipográfico.
getTypoLineGap()
public double getTypoLineGap()
Obtiene el valor de TypoLineGap.
Returns: double - Valor de TypoLineGap.
getTypoLineGap(double fontSize)
public double getTypoLineGap(double fontSize)
Devuelve el espacio entre líneas para un tamaño de fuente específico.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| fontSize | double | Tamaño de fuente. |
Returns: double - Valor del espacio de línea.
getUnitsPerEM()
public long getUnitsPerEM()
Obtiene el valor de UnitsPerEM.
Returns: long - Valor de UnitsPerEM.
hashCode()
public native int hashCode()
Returns: int
isFixedPitch()
public boolean isFixedPitch()
Obtiene el valor de IsFixedPitch.
Returns: boolean - Valor de IsFixedPitch.
measureString(String unicode, double fontSize)
public double measureString(String unicode, double fontSize)
Mide la cadena y devuelve el ancho de la cadena.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| unicode | java.lang.String | Cadena Unicode. |
| fontSize | double | Tamaño de fuente. |
Returns: double - Ancho de la cadena.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setAscender(double value)
public void setAscender(double value)
Establece el valor de Ascender.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| valor | double | Valor del ascendente. |
setDescender(double value)
public void setDescender(double value)
Establece el valor de Descender.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| valor | double | Valor del descendente. |
setGlyphWidth(GlyphId glyphId, double value)
public void setGlyphWidth(GlyphId glyphId, double value)
Establece el ancho del glifo.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| glyphId | GlyphId | |
| valor | double |
setTypoAscender(double value)
public void setTypoAscender(double value)
Establece el valor de TypoAscender.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| valor | double | Valor de TypoAscender. |
setTypoDescender(double value)
public void setTypoDescender(double value)
Establece el valor de TypoDescender.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| valor | double | Valor de TypoDescender. |
setUnitsPerEM(long value)
public void setUnitsPerEM(long value)
Establece el valor de UnitsPerEM.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| valor | long | Valor de UnitsPerEM. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long | |
| arg1 | int |