YYText icon indicating copy to clipboard operation
YYText copied to clipboard

这是YYTextView的bug吗?

Open jdleung opened this issue 5 years ago • 3 comments

使用的是Swift,用以下代码实现文字竖排。但发现字号不能大于16,如果字号要大于16第一行必须是英文不能是中文,而且字体不能选择中文字体,如PingFangSC-Regular。

不知是bug还是我设置错误?

        let textView = YYTextView(frame: CGRect(x: 20, y: self.view.center.y-100, width: 60, height: 200))
        let myAttribute = [NSAttributedString.Key.font: UIFont(name: "PingFangSC-Regular", size: 18.0)]
        let myAttrString = NSAttributedString(string: "这是最好的时代\n回到未来", attributes: myAttribute as [NSAttributedString.Key : Any])
        textView.attributedText = myAttrString
        textView.isVerticalForm = true

jdleung avatar Mar 29 '19 00:03 jdleung

应该是BUG,他的源码demo,也是一样的问题

ashen-zhao avatar Jun 03 '19 03:06 ashen-zhao

我大于14就显示不出了

chenhuannchu avatar Sep 10 '20 08:09 chenhuannchu

各位怎么解决了

HMWDavid avatar Sep 24 '21 02:09 HMWDavid