Closed abdallahnh closed 4 years ago
@abdallahnh such issues sometimes caused by the font not supporting certain characters. maybe you can try another font. does the text looks fine without forcing right to left. or when changing the language from settings app.
@MoathOthman it thought that at the beginning and I tried diff kurdish fonts, but as I said using ku it worked and using ckb didn't and the only diff is having ckb in isRTLLanguage() and when I added ku to the isRTLLanguage then both contained the issue
@abdallahnh i just tried ckb-IQ on the demo project , seems fine.
@MoathOthman where is the kurdish text :)
another sample taken from
https://www.omniglot.com/writing/kurdish.htm
@MoathOthman
using ckb
using ku
see the diff please
@MoathOthman please test this on your demo ئۆە، دیارە پەیوەندیت بە ئینتەرنێت نەکردووە، تکایە دڵنیابە لە پەیوەندی ئینتەرنێت بکە و دووبارە بکەوە
@MoathOthman I used the same font for both and still the same
@MoathOthman please test this on your demo ئۆە، دیارە پەیوەندیت بە ئینتەرنێت نەکردووە، تکایە دڵنیابە لە پەیوەندی ئینتەرنێت بکە و دووبارە بکەوە
seems fine as well.
@MoathOthman are you setting the values from UI or by code, if you set it by code it will not work please confirm
@abdallahnh by code(Localizable.string). I will push it on another branch. Can you share the fonts you are using.
@MoathOthman AdobeArabicBold & droid-arabic-naskh
@MoathOthman when i deal with ku like ckb, "make it an RTL" the text disconnected
@MoathOthman thanks for your help, this was related to the Arabic font in our library
I tried to use the Kurdish language ckb-IQ in my app and when I switch to this language some characters are not connected to each other, and when I used ku it is connected, so after doing some debugs and when I added ku to the iSRTLLanguage() it behave same as ckb-IQ so I guess when we forceRightToLeft for Kurdish language it is corrupting the text.
First, I thought it was an Xcode issue so I created this StackOverflow question
https://stackoverflow.com/questions/59967897/xcode-kurdish-localization-issue