This example shows how to use the arabic fonts.
-
First of all, you must have a font containing the characters of the unicode block called
Arabic Presentation Forms-B
i.e. the range0xFE70-0xFEFF
. -
Then your strings must be formed with the characters of this range too (as you can see with the strings of HowToUseArabicFontDisplayable.TITLE and HowToUseArabicFontDisplayable.AVAILABLE_TEXTS, /u0020 corresponds to the space character).
-
Finally the order of the strings must be reversed.
- Right Click on the project
- Select Run as -> MicroEJ Application
- Select your platform
- Press Ok
- Right Click on HowToUseArabicFont.java
- Select Run as -> Run Configuration
- Select MicroEJ Application configuration kind
- Click on New launch configuration icon
- Select Execute on Device
- Select Build & Deploy
- Go to Execution tab
- Select your platform
- Press Apply
- Press Run
- Copy the generated
.out
file path
- Use the appropriate flashing tool.
- MicroEJ Studio or SDK 4.0 or later
- A platform with at least:
- EDC-1.2 or higher
- MICROUI-2.0 or higher
All dependencies are retrieved transitively by Ivy resolver.
N/A
None.