Type1FontMetrics
Inheritance: java.lang.Object, com.aspose.font.FontMetrics
public class Type1FontMetrics extends FontMetrics
Representa las métricas de la fuente Type1.
Métodos
| Método | Descripción |
|---|---|
| equals(Object arg0) | |
| getAscender() | Obtiene el valor del ascendente. |
| getAscender(double fontSize) | Devuelve el ascender para un tamaño de fuente específico. |
| getCapHeight() | Obtiene el valor de la altura de la mayúscula. |
| 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 la matriz de transformación de fuente. |
| getGlyphBBox(GlyphId glyphId) | Devuelve el Bbox del glifo. |
| getGlyphWidth(GlyphId glyphId) | Devuelve el ancho del glifo. |
| getItalicAngle() | Obtiene el valor del ángulo itálico. |
| getKerningValue(GlyphId prevGlyphId, GlyphId nextGlyphId) | Devuelve el valor de kerning para el par de glifos. |
| getLineGap() | Obtiene el valor de LineGap. |
| getStdHW() | Obtiene el valor de StdHW. |
| getStdVW() | Obtiene el valor de StdVW. |
| 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. |
| getUnderlinePosition() | Obtiene el valor de la posición del subrayado. |
| getUnderlineThickness() | Obtiene el valor del grosor del subrayado. |
| getUnitsPerEM() | Obtiene el valor de UnitsPerEM del subrayado. |
| getWeight() | Obtiene el peso. |
| getXHeight() | Obtiene el valor de XHeight. |
| 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) | 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ámetro | Tipo | Descripción |
|---|---|---|
| arg0 | java.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ámetro | Tipo | Descripción |
|---|---|---|
| fontSize | double | Tamaño de fuente. |
Returns: double - valor de Ascender.
getCapHeight()
public double getCapHeight()
Obtiene el valor de la altura de la mayúscula.
Returns: double - valor de altura de mayúsculas.
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á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 la matriz de transformación de fuente.
Returns: TransformationMatrix - Font 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.
getItalicAngle()
public double getItalicAngle()
Obtiene el valor del ángulo itálico.
Returns: double - valor del ángulo itálico.
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.
getStdHW()
public double getStdHW()
Obtiene el valor de StdHW.
Returns: double - valor de StdHW.
getStdVW()
public double getStdVW()
Obtiene el valor de StdVW.
Returns: double - valor de StdVW.
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.
getUnderlinePosition()
public double getUnderlinePosition()
Obtiene el valor de la posición del subrayado.
Returns: double - valor de la posición del subrayado.
getUnderlineThickness()
public double getUnderlineThickness()
Obtiene el valor del grosor del subrayado.
Returns: double - valor del grosor del subrayado.
getUnitsPerEM()
public long getUnitsPerEM()
Obtiene el valor de UnitsPerEM del subrayado.
Returns: long - valor de UnitsPerEM del subrayado.
getWeight()
public String getWeight()
Obtiene el peso.
Returns: java.lang.String - Peso.
getXHeight()
public double getXHeight()
Obtiene el valor de XHeight.
Returns: double - valor de XHeight.
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 | Identificador de glifo. |
| valor | double | Nuevo ancho. |
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 |
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 |