unicode如何在Java中使用Tolkeins Elvish
我想知道,我看到Tengwar, an Elvish language created by Tolkien有一些Unicode值。如何将它们放入JavaFX窗口或控制台输出?我只是在控制台中得到一个问号,在JavaFX窗口中得到一个框
我只是想用精灵语打个招呼。我尝试使用的角色是海尔曼。网站上说我应该使用
"\u1xy28"
但那不起作用,所以我试了一下
"\E020"
这至少没有给我一个错误。有人能帮忙吗
你可以在下面搜索框中键入要查询的问题!
我想知道,我看到Tengwar, an Elvish language created by Tolkien有一些Unicode值。如何将它们放入JavaFX窗口或控制台输出?我只是在控制台中得到一个问号,在JavaFX窗口中得到一个框
我只是想用精灵语打个招呼。我尝试使用的角色是海尔曼。网站上说我应该使用
"\u1xy28"
但那不起作用,所以我试了一下
"\E020"
这至少没有给我一个错误。有人能帮忙吗
# 1 楼答案
首先,
"\u1xy28"
是不正确的,因为它在\u
前缀后包含2个非六进制字符xy
根据官方Unicode联盟关于Special Areas and Format Characters的文件,对于其余部分
这意味着您可以决定将这些代码点用于Tengwar字符,但您不能希望标准字体知道如何显示它们(因为它们是为专用而保留的),并且您必须找到专用字体
在您链接的维基百科页面末尾附近,您可以找到指向a comprehensive list of tengwar fonts的链接
我必须说我没有测试过他们中的任何一个