RTLabel icon indicating copy to clipboard operation
RTLabel copied to clipboard

Problem with unicode characters

Open alon7 opened this issue 13 years ago • 5 comments

When one of the characters in the string is a unicode character (in my case Hebrew character) so when I do:

[rtLabel setText:string];

The label doesn't get any text.

here is an example for the text input: 14א

alon7 avatar Nov 26 '12 23:11 alon7

any right to left anguages and emoji really looks like the injection of plainText containing that into atteributedstring in draw has no effect as at the end p self.visibleRange (CFRange) $8 = location=0 length=0

atropashko avatar Dec 13 '12 06:12 atropashko

When I'm trying to add a Hebrew character and custom Hebrew font, it just vanish from the screen..

alon7 avatar Jan 23 '13 20:01 alon7

the underlying store is small. make the label taller and it will show: fixed the issue for emoji this way went from 18pt to 25pt

for some reason instead of clipping it shows all or nothing

atropashko avatar Jan 24 '13 07:01 atropashko

Well I lowered the font size and it worked, but when I'm trying to slowly enlarge it again, it stays small.

alon7 avatar Jan 24 '13 07:01 alon7

Ok, now I see it's because I'm using a custom Hebrew font. When I'm using Helvetica it work just fine

Any ideas why custom Hebrew fonts can be added?

alon7 avatar Jan 24 '13 07:01 alon7