Package apple.coretext.enums
Class CTLineBoundsOptions
- java.lang.Object
-
- apple.coretext.enums.CTLineBoundsOptions
-
public final class CTLineBoundsOptions extends java.lang.Object[@enum] CTLineBoundsOptions Options for CTLineGetBoundsWithOptions. Passing 0 (no options) returns the typographic bounds, including typographic leading and shifts. [@constant] kCTLineBoundsExcludeTypographicLeading Pass this option to exclude typographic leading. [@constant] kCTLineBoundsExcludeTypographicShifts Pass this option to ignore cross-stream shifts due to positioning (such as kerning or baseline alignment). [@constant] kCTLineBoundsUseHangingPunctuation Normally line bounds include all glyphs; pass this option to treat standard punctuation hanging off either end of the line as fully hanging. [@constant] kCTLineBoundsUseGlyphPathBounds Pass this option to use glyph path bounds rather than the default typographic bounds. [@constant] kCTLineBoundsUseOpticalBounds Pass this option to use optical bounds. This option overrides kCTLineBoundsUseGlyphPathBounds. [@constant] kCTLineBoundsIncludeLanguageExtents Pass this option to include additional space based on common glyph sequences for various languages. The result is intended to be used when drawing to avoid clipping that may be caused by the typographic bounds. This option does not have any effect when used with kCTLineBoundsUseGlyphPathBounds.
-
-
Field Summary
Fields Modifier and Type Field Description static longExcludeTypographicLeadingstatic longExcludeTypographicShiftsstatic longIncludeLanguageExtentsstatic longUseGlyphPathBoundsstatic longUseHangingPunctuationstatic longUseOpticalBounds
-
-
-
Field Detail
-
ExcludeTypographicLeading
public static final long ExcludeTypographicLeading
- See Also:
- Constant Field Values
-
ExcludeTypographicShifts
public static final long ExcludeTypographicShifts
- See Also:
- Constant Field Values
-
UseHangingPunctuation
public static final long UseHangingPunctuation
- See Also:
- Constant Field Values
-
UseGlyphPathBounds
public static final long UseGlyphPathBounds
- See Also:
- Constant Field Values
-
UseOpticalBounds
public static final long UseOpticalBounds
- See Also:
- Constant Field Values
-
IncludeLanguageExtents
public static final long IncludeLanguageExtents
- See Also:
- Constant Field Values
-
-