Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I answer my own question after a lot of googling...</p> <p>The trick consist in the use of <strong><code>setLinearText(true)</code></strong> for the Paint object used for drawing the text. Now, everything looks great.</p> <pre><code>paint = new Paint(); paint.setAntiAlias(true); paint.setColor(color); paint.setTextSize(size); paint.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD)); paint.setTextAlign(Align.CENTER); paint.setLinearText(true); </code></pre> <p>Here the link that saves my day:</p> <p><a href="http://gc.codehum.com/p/android/issues/detail?id=39755" rel="nofollow noreferrer">http://gc.codehum.com/p/android/issues/detail?id=39755</a></p> <p>I hope it can help someonelse.</p> <p>The text is not rendered at the best yet:</p> <p><img src="https://i.stack.imgur.com/6aqSr.png" alt="enter image description here"></p> <p><strong>Edited (14/01/2013)</strong></p> <p>I'm still facing a kering problem (only on 4.2.1). Please see my other question here: </p> <p><a href="https://stackoverflow.com/questions/13974129/android-4-2-1-worng-character-kerning-spacing">Android 4.2.1 wrong character kerning (spacing)</a></p> <p><strong>Edited (05/02/2013)</strong></p> <p>I see another projects has the same problem. Look at the link below:</p> <p><a href="http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/" rel="nofollow noreferrer">http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/</a></p> <p>If you run the sample on Nexus 4.2.1 (or in the simulator Android 4.2) you get the same "strange" text...</p> <p><strong>Edited (20/02/2013)</strong></p> <p>Found a workaround that not uses <code>setLinearText(true)</code>, look here:</p> <p><a href="https://stackoverflow.com/questions/13974129/android-4-2-1-worng-character-kerning-spacing">Android 4.2.1 wrong character kerning (spacing)</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload