title: How do I draw bold text on a Bitmap?
body: <p>I want a Bitmap icon with bold text to draw it on map. I have a snippet to write text on image:</p>
  
  <pre><code>Bitmap icon = BitmapFactory.decodeResource(PropertyMapList.this.getResources(),
          R.drawable.location_mark);
  TextPaint paint = new TextPaint();
  paint.setColor(Color.BLACK);
  paint.setTextSize(14);
  paint.setFakeBoldText(true);
  //paint.setTextAlign(Align.CENTER);
  Bitmap copy = icon.copy(Bitmap.Config.ARGB_8888, true); 
  Canvas canvas = new Canvas(copy);
  //canvas.drawText(jsonObj.getString("district_name"), 5, canvas.getHeight()/2, paint);
  String districtName = jsonObj.getString("district_name");
  StaticLayout layout = new StaticLayout((districtName.length()&gt;25 ? districtName.substring(0, 24)+"..":districtName)+"\n"+jsonObj.getString("total_properties"), paint, canvas.getWidth()-10,Layout.Alignment.ALIGN_CENTER, 1.3f, 0, false);
  canvas.translate(5, canvas.getHeight()/2); //position the text
  layout.draw(canvas);
  </code></pre>
  
  <p><code>setFakeBoldText(true)</code> doesn't work for me. I would like the text drawn on the Bitmap to be bolded.</p>