A Lighter Way of Discovering Text Writing Direction

NSMutableParagraphStyle ignores NSWritingDirectionNatural, is defaulting to LTR for arabic text

I don't believe the writing direction will be automatically set for you using baseWritingDirection unless you switch languages on the device:

"If you specify NSWritingDirectionNaturalDirection, the receiver resolves the writing direction to either NSWritingDirectionLeftToRight or NSWritingDirectionRightToLeft, depending on the direction for the user’s language preference setting."

For some reason the text you have still doesn't seem to work even with arabic selected without adding the language to your supported localizations. This character seemed to work without doing that for me: كتب

Also, it looks like Xcode reverses the characters in hardcoded arabic strings so that may be screwing with some of this copy and paste.

You can use agiletortoises's suggestion or NSLinguisticTagger's Language tag scheme to manually set the language.

Writing Arabic text in longlistselector in xaml

At the Window/Page level, add the following property

FlowDirection="RightToLeft"

This is a Bindable property, so it can be set at Application Level, and the changes reflected with minimal amount of code.

Flex direction changes when I use persist gate(next js with redux)

SOLVED: If you encounter this issue it is because the display property on the parent div got overwritten, to solve this open the dev tools, inspect the elem CSS, you will notice the display property is crossed, meaning it has been overwritten. Return to the CSS and and add !important flag after the flex, like so : display: flex !important;



Related Topics



Leave a reply



Submit