kCTBaselineOffsetAttributeName
Vertical offset for text position.
Declaration
let kCTBaselineOffsetAttributeName: CFStringDiscussion
The value of this attribute must be a CFNumber float. The default is standard positioning, following the baselines of the fonts used.
The baseline offset attribute indicates how many points the characters should be shifted perpendicular to their baseline. For horizontal text, a positive baseline value indicates a shift above the text baseline, and a negative baseline value indicates a shift below the text baseline. For vertical text, a positive baseline value indicates a shift to the right of the text baseline, and a negative baseline value indicates a shift to the left of the text baseline. If this value is set to 0.0, no baseline shift will be performed.
See Also
Constants
kCTCharacterShapeAttributeNamekCTFontAttributeNamekCTKernAttributeNamekCTLigatureAttributeNamekCTForegroundColorAttributeNamekCTForegroundColorFromContextAttributeNamekCTParagraphStyleAttributeNamekCTStrokeWidthAttributeNamekCTStrokeColorAttributeNamekCTSuperscriptAttributeNamekCTUnderlineColorAttributeNamekCTUnderlineStyleAttributeNamekCTVerticalFormsAttributeNamekCTGlyphInfoAttributeNamekCTRunDelegateAttributeName