Package apple.coretext.enums
Class CTRubyAlignment
- java.lang.Object
-
- apple.coretext.enums.CTRubyAlignment
-
public final class CTRubyAlignment extends java.lang.Object[@enum] CTRubyAlignment These constants specify how to align the ruby annotation and the base text relative to each other when they don't have the same length. [@constant] kCTRubyAlignmentAuto CoreText will determine the alignment. [@constant] kCTRubyAlignmentStart The ruby text is aligned with the start edge of the base text. [@constant] kCTRubyAlignmentCenter The ruby text is centered within the width of the base text. If the ruby text is wider than the base text the base text is centered in the width of the ruby text. [@constant] kCTRubyAlignmentEnd The ruby text is aligned with the end edge of the base text. [@constant] kCTRubyAlignmentDistributeLetter If the width of the ruby text is less than the width of the base text, the ruby text is evenly distributed over the width of the base text, with the first letter of the ruby text aligning with the first letter of the base text and the last letter of the ruby text aligning with the last letter of the base text. If the width of the base text is less than the width of the ruby text, the base text is evenly distributed over the width of the ruby text. [@constant] kCTRubyAlignmentDistributeSpace If the width of the ruby text is less than the width of the base text, the ruby text is evenly distributed over the width of the base text, with a certain amount of space, usually half the inter-character width of the ruby text, before the first and after the last character. If the width of the base text is less than the width of the ruby text, the base text is similarly aligned to the width of the ruby text. [@constant] kCTRubyAlignmentLineEdge If the ruby text is not adjacent to a line edge it is aligned as with kCTRubyAlignmentAuto. If it is adjacent to a line edge the end of ruby text adjacent to the line edge is aligned to the line edge. This is only relevant if the width of the ruby text is greater than the width of the base text; otherwise alignment is as with kCTRubyAlignmentAuto.
-
-
Field Summary
Fields Modifier and Type Field Description static byteAutostatic byteCenterstatic byteDistributeLetterstatic byteDistributeSpacestatic byteEndstatic byteInvalidstatic byteLineEdgestatic byteStart
-
-
-
Field Detail
-
Invalid
public static final byte Invalid
- See Also:
- Constant Field Values
-
Auto
public static final byte Auto
- See Also:
- Constant Field Values
-
Start
public static final byte Start
- See Also:
- Constant Field Values
-
Center
public static final byte Center
- See Also:
- Constant Field Values
-
End
public static final byte End
- See Also:
- Constant Field Values
-
DistributeLetter
public static final byte DistributeLetter
- See Also:
- Constant Field Values
-
DistributeSpace
public static final byte DistributeSpace
- See Also:
- Constant Field Values
-
LineEdge
public static final byte LineEdge
- See Also:
- Constant Field Values
-
-