Arabic fonts in maps...
Posted: Tue Apr 06, 2021 8:37 am
Hi there,
I recently was asked whether it is possible to use arabic signs and characters in our maps. This works out-of-the-box in geocoding through xLocate, but the map rendering / xMap did not "react" on the user language "ar". I managed to handle this locally: As you can see in the attached image we can render these labels in the proper fonts.
What you should know:
PS: Google offers some free fonts which support arabic coding, e.g. Tajawal.
The bad news: arabic has to be written from right to left and unfortunately we don't handle this properly at the moment. I forwarded this to Product Management... If you ned this: let me know!
Best regards,
Bernd
I recently was asked whether it is possible to use arabic signs and characters in our maps. This works out-of-the-box in geocoding through xLocate, but the map rendering / xMap did not "react" on the user language "ar". I managed to handle this locally: As you can see in the attached image we can render these labels in the proper fonts.
What you should know:
- I had to replace the shipped fonts (NotoSans, doesn't support the characters) with another font (Arial). So you can apply this change OnPremise but for our cloud we need to activate this for you.
- The availability of the translations depends on the maps coverage, too. So probably not all city names exist in a translated version.
- I manually added "ar" as a new option within thew showcase (v2.22/webapps/dashboard/Content/Resources/js/ptv/xmap-utilities.js) to extend the showcase
PS: Google offers some free fonts which support arabic coding, e.g. Tajawal.
The bad news: arabic has to be written from right to left and unfortunately we don't handle this properly at the moment. I forwarded this to Product Management... If you ned this: let me know!
Best regards,
Bernd