AliSoftware / AliSoftware/OHAttributedLabel

Single line label will not full justify

未關閉
#44 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Feature Request Question
主要語言
Objective-C
星號
1.5k
分支
341
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。