ios - 在 UITextView 中,当我使用阿拉伯语应用笔画时,它无法正确应用
问题描述
![文字剪切][1]
请检查我正在使用的以下代码行,
文字是 - “المس هنا لتبدأ بالكتابة” 字体是 - “Georgia-Bold”
在图像中,您可以看到字符用线条分隔 -
let attributes = [convertFromNSAttributedStringKey(NSAttributedString.Key.strokeWidth): (0-sender.value),
convertFromNSAttributedStringKey(NSAttributedString.Key.strokeColor): pp.strokeColor,
convertFromNSAttributedStringKey(NSAttributedString.Key.foregroundColor): pp.textColor] as [String : Any]
textView.attributedText = NSAttributedString(string: currentText!, attributes: convertToOptionalNSAttributedStringKeyDictionary(attributes))
[1]: https://i.stack.imgur.com/mFCV3.png
解决方案
推荐阅读
- r - 如何处理 R 版本更新导致的命令问题?
- node.js - 检测角色提及 discord.js
- jsf-2.2 - 如何编写允许使用基于 MVC 模式的 Java Server Faces JSF 2.2 框架更新文章的方法?
- reactjs - 为 url 中的参数获取 400 错误请求错误
- gradle - 在根项目中定义子项目闭包时如何获取当前子项目
- html - 如何在div的两侧定位图像网格?
- javascript - MagnificPopup:在点击时在相应元素处关联一个内联项目
- node.js - Node.js如何从终端保存数据
- javascript - 根据属性将对象数组过滤为多个对象数组
- python - 如何使用从特定列开始的 for 循环重命名列?