Arcgis for Android solves problems with Chinese fonts garbled

Source: Internet
Author: User

First of all, thank you for a member of the ArcGIS for Android group, you can add in QQ group number: 337469080.


No matter which version of ArcGIS for Android is not able to solve the problem of Chinese garbled, this is related to the font library in Android, can refer to http://mobile.51cto.com/android-265238.htm this article.


So, to display Chinese in ArcGIS for Android, you need to set the font as follows:

Textsymbol ts = new Textsymbol (addr, color.red); ts.setfontfamily ("Droidsansfallback.ttf");  Ts.setoffsetx (0); Ts.setoffsety (-30); Graphic gtext = new Graphic (mappoint,ts); glayergps.addgraphic (Gtext);

In this way, you can solve the Chinese garbled problem, the completion of the display as:


If you have any questions, please contact:

qq:1004740957

Email:[email protected]

Arcgis for Android solves problems with Chinese fonts garbled

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.