I am required to use custom fonts in my application.
Problem: For ListViews that contain rows with Multi-Line TextViews having ellipsize property set to true, I can see some illegible characters after the ellipsis. Apparently Android pads the String(in TextView) with some characters(ZERO WIDTH NO BREAK-SPACE) unknown to my custom font.
Single line TextView seem to work just fine.
What is the best way to hide these characters or remove the padding?
Also, is there any variant of Helvetica font, freely available that would have ZERO WIDTH NO BREAK-SPACE character?
Thanks.
I do not know of a way to do that.
Considering that Helvetica is very similar to the built-in Droid Sans, I am not sure why you are bothering embedding Helvetica in an application. Also, by definition, there is no “freely available” Helvetica font, as that font is not free.
That being said, given a font that lacks the ZERO WIDTH NO BREAK-SPACE glyph, have somebody open your font file and add in the glyph. We did that on one consulting project of mine, and it worked out well. I am under the impression that a graphic artist may know how to do this.