TtfFontMetrics

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

public class TtfFontMetrics extends FontMetrics

Representa las métricas de la fuente TTF.

Métodos

MétodoDescripción
equals(Object arg0)
getAscender()Obtiene el valor del ascendente.
getAscender(double fontSize)Devuelve el ascender para un tamaño de fuente específico.
getClass()
getDescender()Obtiene el valor del descendente.
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 FontBBox.
getGlyphBBox(GlyphId glyphId)Devuelve el Bbox del glifo.
getGlyphWidth(GlyphId glyphId)Devuelve el ancho de los glifos por id de 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.
measureString(long[] charCodes, double fontSize)Mide el texto representado como una matriz de códigos de caracteres y devuelve el ancho de la cadena.
notify()
notifyAll()
setAscender(double value)Establece el valor del ascendente.
setDescender(double value)Establece el valor del descendente.
setGlyphWidth(GlyphId glyphId, double value)Establece el ancho del glifo.
setTypoAscender(double value)Establece el valor de TypoAscender.
setTypoDescender(double value)Establece el valor de TypoDescender.
setUnitsPerEM(long value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParámetroTipoDescripción
arg0java.lang.Object

Returns: boolean

getAscender()

public double getAscender()

Obtiene el valor del ascendente.

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ámetroTipoDescripción
fontSizedoubleTamañ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 del descendente.

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ámetroTipoDescripción
fontSizedoubleTamaño de fuente.

Returns: double - valor de Descender.

getFontBBox()

public FontBBox getFontBBox()

Obtiene el valor de FontBBox.

Returns: FontBBox

getFontMatrix()

public TransformationMatrix getFontMatrix()

Obtiene el valor de FontBBox.

Returns: TransformationMatrix

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ámetroTipoDescripción
glyphIdGlyphIdIdentificador de glifo.

Returns: FontBBox - Glyph BBox.

getGlyphWidth(GlyphId glyphId)

public double getGlyphWidth(GlyphId glyphId)

Devuelve el ancho de los glifos por id de glifo.

Parameters:

ParámetroTipoDescripción
glyphIdGlyphIdIdentificador 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ámetroTipoDescripción
prevGlyphIdGlyphIdPrimer glifo en el par.
nextGlyphIdGlyphIdTamañ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ámetroTipoDescripción
fontSizedoubleTamañ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ámetroTipoDescripción
fontSizedouble

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ámetroTipoDescripción
fontSizedoubleTamaño de fuente.

Returns: double - Valor del espacio de línea.

getUnitsPerEM()

public long getUnitsPerEM()

Obtiene el valor de UnitsPerEM.

Returns: long

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ámetroTipoDescripción
unicodejava.lang.StringCadena Unicode.
fontSizedoubleTamaño de fuente.

Returns: double - Ancho de la cadena.

measureString(long[] charCodes, double fontSize)

public double measureString(long[] charCodes, double fontSize)

Mide el texto representado como una matriz de códigos de caracteres y devuelve el ancho de la cadena.

Parameters:

ParámetroTipoDescripción
charCodeslong[]Cadena de texto representada como una matriz de códigos de caracteres.
fontSizedoubleTamañ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 del ascendente.

Parameters:

ParámetroTipoDescripción
valordoubleValor del ascendente.

setDescender(double value)

public void setDescender(double value)

Establece el valor del descendente.

Parameters:

ParámetroTipoDescripción
valordoubleValor del descendente.

setGlyphWidth(GlyphId glyphId, double value)

public void setGlyphWidth(GlyphId glyphId, double value)

Establece el ancho del glifo.

Parameters:

ParámetroTipoDescripción
glyphIdGlyphIdIdentificador de glifo.
valordoubleNuevo ancho.

setTypoAscender(double value)

public void setTypoAscender(double value)

Establece el valor de TypoAscender.

Parameters:

ParámetroTipoDescripción
valordoubleValor de TypoAscender.

setTypoDescender(double value)

public void setTypoDescender(double value)

Establece el valor de TypoDescender.

Parameters:

ParámetroTipoDescripción
valordoubleValor de TypoDescender.

setUnitsPerEM(long value)

public void setUnitsPerEM(long value)

Establece el valor de UnitsPerEM.

Parameters:

ParámetroTipoDescripción
valorlong

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ámetroTipoDescripción
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParámetroTipoDescripción
arg0long
arg1int