Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Font.createGlyphVector(frc, String)  RSS feed

 
Orna Vel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have the following problem:

I create a GlyphVector, and drawing this GlyphVector later.
It works fine with regular string, but if string starts from blanks,
they are disappear. It means, that if I have

String s = new String(" tex t");

the drawing appears to be "tex t". Blanks inside the string or at the end
of the string do not cause any problem.

Any thoughts?
Thank you.
 
Orna Vel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that nobody had this problem before?
It appears just sometime. As I found, if you call



everything works fine, but
if you want to draw SHAPE here is the problem:



the leading blanks are disappear. Too bad.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!