org.rococoa.cocoa.ats
Class ATSFontMetrics

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by 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.


Nested Class Summary
static class ATSFontMetrics.ByReference
           
static class ATSFontMetrics.ByValue
           
 
Field Summary
 float ascent
           
 float avgAdvanceWidth
           
 float capHeight
           
 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
 float italicAngle
           
 float leading
          or maximum distance to the left of the centerline reached by the glyphs in the font
Desired spacing between lines of text
 float maxAdvanceWidth
           
 float minLeftSideBearing
           
 float minRightSideBearing
           
 float stemHeight
           
 float stemWidth
           
 float underlinePosition
           
 float underlineThickness
           
 int version
           
 float xHeight
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
ATSFontMetrics()
           
 
Method Summary
 ATSFontMetrics.ByReference byReference()
           
 ATSFontMetrics.ByValue byValue()
           
 ATSFontMetrics clone()
           
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ATSFontMetrics

public ATSFontMetrics()
Method Detail

byReference

public ATSFontMetrics.ByReference byReference()

byValue

public ATSFontMetrics.ByValue byValue()

clone

public ATSFontMetrics clone()
Overrides:
clone in class Object