Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 给定一个TTF字体文件,如何检测它是unicode还是非unicode?_C#_Unicode_Fonts_Non Unicode - Fatal编程技术网

C# 给定一个TTF字体文件,如何检测它是unicode还是非unicode?

C# 给定一个TTF字体文件,如何检测它是unicode还是非unicode?,c#,unicode,fonts,non-unicode,C#,Unicode,Fonts,Non Unicode,我正在尝试将非unicode的txt文件转换为unicodeTTF字体文件是输入以及txt文件,用于了解源和目标 如何从TTF字体文件中获取有关需要进行的转换的信息?您可以使用file命令,请参见下面的示例: $ file emoji.ttf emoji.ttf: TrueType Font data, 11 tables, 1st "OS/2", 14 names, Macintosh, type 1 string, emojiVersion 1.1emojimj 您可以使用

我正在尝试将非unicode的txt文件转换为unicodeTTF字体文件是输入以及txt文件,用于了解源和目标


如何从TTF字体文件中获取有关需要进行的转换的信息?

您可以使用file命令,请参见下面的示例:

$ file emoji.ttf 
emoji.ttf: TrueType Font data, 11 tables, 1st "OS/2", 14 names, Macintosh, type 1 
string, emojiVersion 1.1emojimj      

您可以使用file命令,请参见下面的示例:

$ file emoji.ttf 
emoji.ttf: TrueType Font data, 11 tables, 1st "OS/2", 14 names, Macintosh, type 1 
string, emojiVersion 1.1emojimj      

查看TrueType字体的
cmap
表。不管如何,为什么您认为这可以让您确定文件使用哪种编码?字体可以在同一个文件中支持多个字符编码,包括“非unicode”和“unicode”映射。@Mike'Pomax'Kamermans非常感谢!查看TrueType字体的
cmap
表。不管如何,为什么您认为这可以让您确定文件使用哪种编码?字体可以在同一个文件中支持多个字符编码,包括“非unicode”和“unicode”映射。@Mike'Pomax'Kamermans非常感谢!