org.rococoa.cocoa.ats
Class ATSFontMetrics
java.lang.Object
com.sun.jna.Structure
com.ochafik.lang.jnaerator.runtime.Structure
org.rococoa.cocoa.ats.ATSFontMetrics
- Direct Known Subclasses:
- ATSFontMetrics.ByReference, ATSFontMetrics.ByValue
public class ATSFontMetrics
- extends com.ochafik.lang.jnaerator.runtime.Structure
ATSFontMetrics measurements are relative to a font's point size.
For example, when a font with an ATSFontMetrics ascent of 0.6 is drawn at 18 points, its actual ascent is (0.6 * 18) = 10.8 points.
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure |
setupClone |
Methods inherited from class com.sun.jna.Structure |
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField |
version
public int version
ascent
public float ascent
descent
public float descent
- or maximum distance to the right of the centerline reached by the glyphs in the font
Maximum depth below baseline reached by the glyphs in the font
leading
public float leading
- or maximum distance to the left of the centerline reached by the glyphs in the font
Desired spacing between lines of text
avgAdvanceWidth
public float avgAdvanceWidth
maxAdvanceWidth
public float maxAdvanceWidth
minLeftSideBearing
public float minLeftSideBearing
minRightSideBearing
public float minRightSideBearing
stemWidth
public float stemWidth
stemHeight
public float stemHeight
capHeight
public float capHeight
xHeight
public float xHeight
italicAngle
public float italicAngle
underlinePosition
public float underlinePosition
underlineThickness
public float underlineThickness
ATSFontMetrics
public ATSFontMetrics()
byReference
public ATSFontMetrics.ByReference byReference()
byValue
public ATSFontMetrics.ByValue byValue()
clone
public ATSFontMetrics clone()
- Overrides:
clone
in class Object