簡體   English   中英

如何根據CATextLayer的寬度更改字體?

[英]How to change the font according to the width of CATextLayer ?

對於UILabel,我們具有AdjustFontSizetoWidth屬性,就像對於CATextLayer一樣。

我想調整字符串以適合給定的textlayer寬度。

wrapped屬性設置為YES 默認情況下,它設置為NO

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM