• Post Reply Bookmark Topic Watch Topic
  • New Topic

Missing Characters in Display

 
MarutiG Kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai
I have an Editor like application for Indian Languages.
I am Using TTF fonts (not UNICODE fonts). When i display the text some characters are missing. I mean blank space is being displayed instead of characters.
Now this is exactly my problem
if i have a paint method like this ( i am using JPanel)
void paint(Grapics g)
{
g.setFont(...);
//CASE 1
Str += (char)88;
g.drawString(str, x, y);
// increment x an y
//CASE 2
Str = "";
Str += (char)8812;
g.drawString(str, x, y);
// increment x an y
//CASE 3
Str = "";
Str += (char)148;
g.drawString(str, x, y);
}
}
Now in case 1 i am getting the glyph corresponiding to 88.
In secound case I am getting a space instead of shape at glyph position 8812 (the font does have a glyph at position 8812)
The third case I am getting a box as it is a C1 control character.
my problem is with case 2.
please some body help me...
with Thanks
Maruti
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!