AliSoftware / AliSoftware/OHAttributedLabel
Single line label will not full justify
- Dominant language
- Objective-C
- Stars
- 1.5k
- Forks
- 341
- PR merge metrics
- No merged PRs in 30d
Description
When creating a simple single line label, the text within it will not fully justify. The text of the label is justified just like any single-line paragraph or the last line of a paragraph: it is left justified rather than having a line run that is significantly shorter than the frame extend out with a lot of spaces between the words and letters. Doing full justify on a single line of text or the last line of a paragraph is called force-justify.
I am trying to set up a single-line label using OHAttributedLabel, but even with the alignment property set to UITextAlignmentJustify, it remains left-justified because it is a single line of text. Is there a way to force-justify a single line label? Even if the text in the label is significantly shorter than the width of the label, in this case I actually want the text to expand with spaces between the words and so on so that the first letter in the label is on the left margin and the last character is on the right margin.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.