mongolian-vertical-script

Custom rotated EditText view with working selection, cursor location, etc

狂风中的少年 提交于 2019-11-27 02:36:57
问题 What I want to do I want to make a rotated and flipped EditText view that has all of the properties of a normal EditText view. My problem I have successfully made (with much help from SO users) a custom EditText view that is both rotated and flipped. This was done by overriding the onDraw method. However, the cursor and highlighting are gone and a longtouch event still indicates the original text position. Basically, the view was redrawn but the touch events were not. How do I get the touch

Supporting complex text layout with OpenType fonts in Android

柔情痞子 提交于 2019-11-26 23:26:14
问题 What I would like I would like to put an OpenType font in my assets folder and use Typeface.createFromAsset to render Unicode text in my Android application for a language that uses complex text layout (CTL). Background I want to do this for traditional Mongolian script, but it is the same issue (so I hear) for other languages like Thai, Arabic, Indic languages, and many minority languages. An OpenType font already includes the information necessary to properly display the text. The problem

How do you make a vertical text UILabel and UITextView for iOS in Swift?

你离开我真会死。 提交于 2019-11-26 22:22:29
If you came to this question based on the title but are not interested in Mongolian, you might be looking for this Q&A instead: Swift: How can you rotate text for UIButton and UILabel? I've been learning Swift in order to develop iOS apps for traditional Mongolian . The problem is that traditional Mongolian is written vertically from top to bottom and from left to right. My question is how do I display text vertically and still have line wrapping work? If you stay with me for a minute, I'll try to explain the problem more clearly. Below is an image of the kind of text view I would like to

Working with Unicode code points in Swift

帅比萌擦擦* 提交于 2019-11-26 14:31:34
If you are not interested in the details of Mongolian but just want a quick answer about using and converting Unicode values in Swift, then skip down to the first part of the accepted answer . Background I want to render Unicode text for traditional Mongolian to be used in iOS apps . The better and long term solution is to use an AAT smart font that would render this complex script. ( Such fonts do exist but their license does not allow modification and non-personal use.) However, since I have never made a font, let alone all of the rendering logic for an AAT font, I just plan to do the

How do you make a vertical text UILabel and UITextView for iOS in Swift?

試著忘記壹切 提交于 2019-11-26 08:17:36
问题 If you came to this question based on the title but are not interested in Mongolian, you might be looking for this Q&A instead: Swift: How can you rotate text for UIButton and UILabel? I\'ve been learning Swift in order to develop iOS apps for traditional Mongolian. The problem is that traditional Mongolian is written vertically from top to bottom and from left to right. My question is how do I display text vertically and still have line wrapping work? If you stay with me for a minute, I\'ll

Working with Unicode code points in Swift

五迷三道 提交于 2019-11-26 05:56:33
问题 If you are not interested in the details of Mongolian but just want a quick answer about using and converting Unicode values in Swift, then skip down to the first part of the accepted answer. Background I want to render Unicode text for traditional Mongolian to be used in iOS apps. The better and long term solution is to use an AAT smart font that would render this complex script. (Such fonts do exist but their license does not allow modification and non-personal use.) However, since I have