[英]How to print Unicode character bigger
I've a problem with the Unicode. 我的Unicode有问题。 I want to print the Unicode Character into a textfield, but at some characters i got the undefined symbol "". 我想将Unicode字符打印到文本字段中,但是在某些字符上我得到了未定义的符号“”。
int z = 2273;
char ch = (char) z;
txtText.setText(ch);
So I tried to do it with a JTable and it worked, but if I change the size of the text i get the undefined Symbol again. 因此,我尝试使用JTable进行操作,并且它可以正常工作,但是如果我更改文本的大小,则会再次得到未定义的Symbol。
That Worked: 可行:
int z = 2273;
char ch = (char) z;
table.setValueAt(ch, 0, 0);
But I wanted to see the character bigger and that worked not: 但是我想看到更大的角色,但效果不佳:
table.setFont(new Font("Tahoma", Font.PLAIN, 80));
int z = 2273;
char ch = (char) z;
table.setValueAt(ch, 0, 0);
then I get again "" 然后我再次得到“”
My question is if the is any way to print the Unicode characters bigger 我的问题是,是否可以将Unicode字符打印得更大一些
Thank you in advance for your answers. 预先感谢您的回答。 :D :D
PS: Sorry for bad English. PS:对不起,英语不好。
Try this: 尝试这个:
table.setValueAt(Character.toString(ch), 0, 0);
Anyway, it will only display a square, because Tahoma font doesn't have the necessary glyphs for Unicode. 无论如何,它只会显示一个正方形,因为Tahoma字体没有Unicode所需的字形。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.