Package apple.uikit.enums
Class UILetterformAwareSizingRule
- java.lang.Object
-
- apple.uikit.enums.UILetterformAwareSizingRule
-
public final class UILetterformAwareSizingRule extends java.lang.ObjectBackground When fonts created with `+[UIFont preferredFontForTextStyle:]` are used, UILabel, UITextField, and nonscrollable UITextView will increase the height calculated in `-sizeThatFits:` and `-intrinsicContentSize` in the presence of tall scripts. Even with this increase, there will be some extreme ascenders and descenders that extend beyond this height. Furthermore, this increase only occurs for the text-style fonts, so for non-text-style fonts such cases will be markedly more common. API-Since: 17.0
-
-
Field Summary
Fields Modifier and Type Field Description static longOversize`UILetterformAwareSizingRuleOversize`: `-sizeThatFits:` and `-intrinsicContentSize` results will account for extreme ascenders or descenders in tall scripts, but in such cases might not work well for typographic alignment of top and bottom edges and vertical centers of the view frames API-Since: 17.0static longTypographic`UILetterformAwareSizingRuleTypographic`: `-sizeThatFits:` and `-intrinsicContentSize` results will work well for typographic alignment of edges and centers of the view frames, but extreme ascenders or descenders in tall scripts may not be accounted for API-Since: 17.0
-
-
-
Field Detail
-
Typographic
public static final long Typographic
`UILetterformAwareSizingRuleTypographic`: `-sizeThatFits:` and `-intrinsicContentSize` results will work well for typographic alignment of edges and centers of the view frames, but extreme ascenders or descenders in tall scripts may not be accounted for API-Since: 17.0- See Also:
- Constant Field Values
-
Oversize
public static final long Oversize
`UILetterformAwareSizingRuleOversize`: `-sizeThatFits:` and `-intrinsicContentSize` results will account for extreme ascenders or descenders in tall scripts, but in such cases might not work well for typographic alignment of top and bottom edges and vertical centers of the view frames API-Since: 17.0- See Also:
- Constant Field Values
-
-