Improve smaller text rendering

This commit is contained in:
Ilya Laktyushin
2023-07-23 04:36:11 +02:00
parent a196a1684b
commit 8eaee14c41
10 changed files with 171 additions and 339 deletions

View File

@@ -693,7 +693,7 @@ public final class DrawingTextEntityView: DrawingEntityView, UITextViewDelegate
func getRenderImage() -> UIImage? {
let rect = self.bounds
UIGraphicsBeginImageContextWithOptions(rect.size, false, 2.0)
UIGraphicsBeginImageContextWithOptions(rect.size, false, 3.0)
self.textView.drawHierarchy(in: rect, afterScreenUpdates: true)
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()