TextSymbol method setText with some special  text e.g "???" display nothing in sdk 10.2

2098
3
11-02-2013 05:58 AM
lzhsx
by
New Contributor
Hi all !
I want to display some special  text e.g "???"  use Graphic with TextSymbol , it works well in sdk 10.1 , but I update sdk to 10.2, it display nothing on screen , new method setFontFamily in class TextSymbol how to use , what can I do.
Thank you all !
0 Kudos
3 Replies
DanO_Neill
Occasional Contributor III
what can I do.


You can start by offering the code that worked at 10.1.1 and now doesn't work at 10.2.
0 Kudos
lzhsx
by
New Contributor
You can start by offering the code that worked at 10.1.1 and now doesn't work at 10.2.


In sample DrawGraphicElements , I modify the source as

                             public boolean onSingleTap(MotionEvent e) {
   if (type.length() > 1 && type.equalsIgnoreCase("POINT")) {
    graphicsLayer.removeAll();
    Graphic graphic = new Graphic(mapView.toMapPoint(new Point(e.getX(), e
      .getY())),new TextSymbol(50, "abc�??def", Color.RED));
    //graphic.setGeometry();
    graphicsLayer.addGraphic(graphic);
   
    clearButton.setEnabled(true);
    return true;
   }
   return false;
   }

When select draw point on sreen , it display  "abc def" , symbol "�??" is missing.
Thanks a lot:)
0 Kudos
ErwinSoekianto
Esri Regular Contributor
I believe you need to use Unicode Character for that. Just like for copyright sign ©

Black star = \u2605 - http://www.fileformat.info/info/unicode/char/2605/index.htm
0 Kudos