javascript 最高的 Unicode 字符?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9208489/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 05:56:11  来源:igfitidea点击:

Tallest Unicode character?

javascriptunicodecanvasutf-8fonts

提问by axkibe

Whats the unicode Character code of that f symbol? (Image by WHATWG). I suppose it's the tallest Unicode character there is. Is it?

那个 f 符号的 unicode 字符代码是什么?(图片来自 WHATWG)。我想它是最高的 Unicode 字符。是吗?

bounding box illustration

边界框插图

回答by Mechanical snail

The tallest Unicode character in the current standard (Unicode 6.1) is , U+1F5FB MOUNT FUJI, which is 3776 meters tall.

当前标准 ( Unicode 6.1) 中最高的 Unicode 字符是, U+1F5FB MOUNT FUJI高 3776 米

回答by T.J. Crowder

The height of a character has nothing to do with Unicode (or any of its transformations, such as UTF-8). The height of a character is defined by the font used to render it. Although obviously various fonts will adhere to convention (mostly), that doesn't mean that the tallest character in one font will necessarily be the tallest in another.

字符的高度与 Unicode(或其任何转换,例如 UTF-8)无关。字符的高度由用于呈现它的字体定义。尽管显然各种字体都会遵守约定(大多数情况下),但这并不意味着一种字体中最高的字符必然是另一种字体中最高的。

回答by rezoner

Maybe it's an oversized ?

也许它是一个超大号?

javascript: "?".charCodeAt(0)gives 402

javascript: "?".charCodeAt(0)402

function symbolbut its apperance really depends on used font

功能符号但它的外观实际上取决于使用的字体