org.rococoa.cocoa.ats
Class ATSFontMetrics
java.lang.Object
com.sun.jna.Structure
com.ochafik.lang.jnaerator.runtime.Structure<ATSFontMetrics,ATSFontMetrics.ByValue,ATSFontMetrics.ByReference>
org.rococoa.cocoa.ats.ATSFontMetrics
- All Implemented Interfaces:
- StructureType, StructureTypeDependent, Comparable<Structure<ATSFontMetrics,ATSFontMetrics.ByValue,ATSFontMetrics.ByReference>>
- Direct Known Subclasses:
- ATSFontMetrics.ByReference, ATSFontMetrics.ByValue
public class ATSFontMetrics
- extends Structure<ATSFontMetrics,ATSFontMetrics.ByValue,ATSFontMetrics.ByReference>
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.
native declaration : /System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks/ATS.framework/Headers/ATSTypes.h:287
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 |
byReference, byValue, castToArray, castToArray, castToArray, castToReferenceArray, castToReferenceArray, castToValueArray, castToValueArray, clone, compareTo, newArray, read, setDependency, toArray, toArray, toArray, toReferenceArray, toReferenceArray, toValueArray, toValueArray, use, use, use, use, write |
Methods inherited from class com.sun.jna.Structure |
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toString, writeField, writeField |
version
public int version
ascent
public org.rococoa.cocoa.CGFloat ascent
descent
public org.rococoa.cocoa.CGFloat 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 org.rococoa.cocoa.CGFloat 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 org.rococoa.cocoa.CGFloat avgAdvanceWidth
maxAdvanceWidth
public org.rococoa.cocoa.CGFloat maxAdvanceWidth
minLeftSideBearing
public org.rococoa.cocoa.CGFloat minLeftSideBearing
minRightSideBearing
public org.rococoa.cocoa.CGFloat minRightSideBearing
stemWidth
public org.rococoa.cocoa.CGFloat stemWidth
stemHeight
public org.rococoa.cocoa.CGFloat stemHeight
capHeight
public org.rococoa.cocoa.CGFloat capHeight
xHeight
public org.rococoa.cocoa.CGFloat xHeight
italicAngle
public org.rococoa.cocoa.CGFloat italicAngle
underlinePosition
public org.rococoa.cocoa.CGFloat underlinePosition
underlineThickness
public org.rococoa.cocoa.CGFloat underlineThickness
ATSFontMetrics
public ATSFontMetrics()
newArray
public static ATSFontMetrics[] newArray(int arrayLength)
Copyright © 2009. All Rights Reserved.