ATSUI Reference
PDF
Overview
Functions by Task
Creating and Initializing Style Objects
Manipulating Style Attributes
Manipulating Font Features
Manipulating Font Variations
Creating and Initializing Text Layout Objects
Manipulating Text Layout Attributes
Manipulating Line Attributes
Manipulating Line Breaks
Substituting Fonts
Identifying Fonts
Drawing and Highlighting Text
Supporting User Interaction With Onscreen Text
Obtaining Text Metrics
Working With Tabs
Accessing Glyph Data
Flattening and Parsing Style Data
Creating, Calling, and Deleting Universal Procedure Pointers
Not Recommended
Functions
ATSUBatchBreakLines
ATSUBreakLine
ATSUCalculateBaselineDeltas
ATSUClearAttributes
ATSUClearFontFeatures
ATSUClearFontVariations
ATSUClearLayoutCache
ATSUClearLayoutControls
ATSUClearLineControls
ATSUClearSoftLineBreaks
ATSUClearStyle
ATSUCompareStyles
ATSUCopyAttributes
ATSUCopyLayoutControls
ATSUCopyLineControls
ATSUCountFontFeatureSelectors
ATSUCountFontFeatureTypes
ATSUCountFontInstances
ATSUCountFontNames
ATSUCountFontTracking
ATSUCountFontVariations
ATSUCreateAndCopyStyle
ATSUCreateAndCopyTextLayout
ATSUCreateFontFallbacks
ATSUCreateStyle
ATSUCreateTextLayout
ATSUCreateTextLayoutWithTextPtr
ATSUDirectAddStyleSettingRef
ATSUDirectGetLayoutDataArrayPtrFromLineRef
ATSUDirectGetLayoutDataArrayPtrFromTextLayout
ATSUDirectReleaseLayoutDataArrayPtr
ATSUDisposeFontFallbacks
ATSUDisposeStyle
ATSUDisposeTextLayout
ATSUDrawText
ATSUFindFontFromName
ATSUFindFontName
ATSUFlattenStyleRunsToStream
ATSUFONDtoFontID
ATSUFontCount
ATSUFontIDtoFOND
ATSUGetAllAttributes
ATSUGetAllFontFeatures
ATSUGetAllFontVariations
ATSUGetAllLayoutControls
ATSUGetAllLineControls
ATSUGetAttribute
ATSUGetContinuousAttributes
ATSUGetFontFeature
ATSUGetFontFeatureNameCode
ATSUGetFontFeatureSelectors
ATSUGetFontFeatureTypes
ATSUGetFontIDs
ATSUGetFontInstance
ATSUGetFontInstanceNameCode
ATSUGetFontVariationNameCode
ATSUGetFontVariationValue
ATSUGetGlyphBounds
ATSUGetIndFontName
ATSUGetIndFontTracking
ATSUGetIndFontVariation
ATSUGetLayoutControl
ATSUGetLineControl
ATSUGetNativeCurveType
ATSUGetObjFontFallbacks
ATSUGetRunStyle
ATSUGetSoftLineBreaks
ATSUGetStyleRefCon
ATSUGetTabArray
ATSUGetTextHighlight
ATSUGetTextLayoutRefCon
ATSUGetTextLocation
ATSUGetTransientFontMatching
ATSUGetUnjustifiedBounds
ATSUGlyphGetCubicPaths
ATSUGlyphGetCurvePaths
ATSUGlyphGetIdealMetrics
ATSUGlyphGetQuadraticPaths
ATSUGlyphGetScreenMetrics
ATSUHighlightInactiveText
ATSUHighlightText
ATSULeftwardCursorPosition
ATSUMatchFontsToText
ATSUMeasureTextImage
ATSUNextCursorPosition
ATSUOffsetToCursorPosition
ATSUOffsetToPosition
ATSUOverwriteAttributes
ATSUPositionToCursorOffset
ATSUPositionToOffset
ATSUPreviousCursorPosition
ATSURightwardCursorPosition
ATSUSetAttributes
ATSUSetFontFeatures
ATSUSetHighlightingMethod
ATSUSetLayoutControls
ATSUSetLineControls
ATSUSetObjFontFallbacks
ATSUSetRunStyle
ATSUSetSoftLineBreak
ATSUSetStyleRefCon
ATSUSetTabArray
ATSUSetTextLayoutRefCon
ATSUSetTextPointerLocation
ATSUSetTransientFontMatching
ATSUSetVariations
ATSUStyleIsEmpty
ATSUTextDeleted
ATSUTextInserted
ATSUTextMoved
ATSUUnderwriteAttributes
ATSUUnflattenStyleRunsFromStream
ATSUUnhighlightText
DisposeATSCubicClosePathUPP
DisposeATSCubicCurveToUPP
DisposeATSCubicLineToUPP
DisposeATSCubicMoveToUPP
DisposeATSQuadraticClosePathUPP
DisposeATSQuadraticCurveUPP
DisposeATSQuadraticLineUPP
DisposeATSQuadraticNewPathUPP
DisposeATSUDirectLayoutOperationOverrideUPP
DisposeRedrawBackgroundUPP
InvokeATSCubicClosePathUPP
InvokeATSCubicCurveToUPP
InvokeATSCubicLineToUPP
InvokeATSCubicMoveToUPP
InvokeATSQuadraticClosePathUPP
InvokeATSQuadraticCurveUPP
InvokeATSQuadraticLineUPP
InvokeATSQuadraticNewPathUPP
InvokeATSUDirectLayoutOperationOverrideUPP
InvokeRedrawBackgroundUPP
NewATSCubicClosePathUPP
NewATSCubicCurveToUPP
NewATSCubicLineToUPP
NewATSCubicMoveToUPP
NewATSQuadraticClosePathUPP
NewATSQuadraticCurveUPP
NewATSQuadraticLineUPP
NewATSQuadraticNewPathUPP
NewATSUDirectLayoutOperationOverrideUPP
NewRedrawBackgroundUPP
Callbacks
ATSCubicClosePathProcPtr
ATSCubicCurveToProcPtr
ATSCubicLineToProcPtr
ATSCubicMoveToProcPtr
ATSQuadraticClosePathProcPtr
ATSQuadraticCurveProcPtr
ATSQuadraticLineProcPtr
ATSQuadraticNewPathProcPtr
ATSUDirectLayoutOperationOverrideProcPtr
RedrawBackgroundProcPtr
Data Types
Core Data Types
ATSUAttributeInfo
ATSLayoutRecord
ATSUStyleSettingRef
ATSUAttributeValuePtr
ConstATSUAttributeValuePtr
ATSURGBAlphaColor
ATSUBackgroundColor
ATSUBackgroundData
ATSUCaret
ATSUFontFeatureType
ATSUFontFeatureSelector
ATSUFontVariationAxis
ATSUFontVariationValue
ATSUFontFallbacks
ATSUFontID
ATSUGlyphInfo
ATSUGlyphInfoArray
ATSUGlyphSelector
ATSJustPriorityWidthDeltaOverrides
ATSJustWidthDeltaEntryOverride
ATSULayoutOperationOverrideSpecifier
ATSULineRef
ATSUStyle
ATSUStyleRunInfo
ATSUTab
ATSUTextLayout
ATSUTextMeasurement
ATSTrapezoid
ATSUUnhighlightData
USTL Data Structure Data Types
ATSFlatDataMainHeaderBlock
ATSFlatDataTextLayoutDataHeader
ATSFlatDataLayoutControlsDataHeader
ATSFlatDataLineInfoHeader
ATSFlatDataLineInfoData
ATSFlatDataStyleRunDataHeader
ATSFlatDataStyleListHeader
ATSFlatDataStyleListStyleDataHeader
ATSFlatDataStyleListFeatureData
ATSFlatDataStyleListVariationData
ATSFlatDataFontNameDataHeader
ATSFlatDataFontSpecRawNameDataHeader
ATSFlatDataFontSpecRawNameData
Universal Procedure Pointers
ATSUDirectLayoutOperationOverrideUPP
ATSCubicClosePathUPP
ATSCubicCurveToUPP
ATSCubicLineToUPP
ATSCubicMoveToUPP
ATSQuadraticClosePathUPP
ATSQuadraticCurveUPP
ATSQuadraticLineUPP
ATSQuadraticNewPathUPP
RedrawBackgroundUPP
Constants
Attribute Tags
Background Data Types
Caret Movement Types
Convenience Constants
Direct Data Selectors
Flattened Data Font Type Selectors
Flattened Data Format Selectors
Flattened Style Run Data Options
Flattened Data Version Numbers
Font Fallback Methods
Glyph Origin Selectors
Glyph Collection Types
Glyph Direction Selectors
Glyph Property Flags
Highlight Methods
Invalid Font ID Constant
Line Truncation Selectors
Layout Callback Status Values
Layout Operation Selectors
Line Alignment Selectors
Line Height and Font Tracking Selectors
Line Justification Selectors
Line Layout Attribute Tags
Line Layout Width Selector
No Selectors Option
Style Comparison Options
Style Line Count Types
Style Rendering Options
Tab Positioning Options
Text Buffer Convenience Constants
Unflattened Style Run Data Options
Vertical Character Types
Result Codes
Gestalt Constants
Appendix A: Deprecated ATSUI Functions
Deprecated in Mac OS X v10.0
ATSUCreateTextLayoutWithTextHandle
ATSUIdle
ATSUSetTextHandleLocation
Deprecated in Mac OS X v10.1
ATSUCopyToHandle
Deprecated in Mac OS X v10.3
ATSUDrawGlyphInfo
ATSUGetFontFallbacks
ATSUGetGlyphInfo
ATSUMeasureText
ATSUSetFontFallbacks
Revision History
Index