You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unicode左/右八分之三块字符尺寸不一致问题咨询

为何Unicode左八分之三块与右八分之三块字符的高度和宽度不一致?

我发现Unicode左八分之三块(U+258D)与右八分之三块(U+1FB88)字符的高度和宽度不一致,已经在多款字体中测试过:

🮈▍🮈▍🮈▍

我正在寻找能与Symbols for Legacy Computing Unicode区块中2x3字符对齐的完整垂直左右竖条字符。例如,以下字符应能构成完美矩形:

🮈🬰▍

对应的形状示意图:
示意图


补充内容

我编写了一段简单代码,在无回退字体的情况下生成这三个字符的图像:

#!/usr/bin/env python3

from PIL import Image, ImageDraw, ImageFont

width=500
height=100
back_ground_color=(255,255,255)
font_size=80
font_color=(0,0,0)
unicode_text = '🮈🬰▍'

fonts = {
    'lastresort': 'LastResort-Regular.ttf',
    'unifont': 'unifont-15.1.04.otf',
    'unifont_upper': 'unifont_upper-15.1.04.otf',
    'noto': 'NotoSans-Regular.ttf',
    '2001': 'CODE2001.TTF'
}

for name, font in fonts.items():
    im = Image.new("RGB", (width,height), back_ground_color)
    draw = ImageDraw.Draw(im)
    unicode_font = ImageFont.truetype(font, font_size)
    draw.text((10,10), unicode_text, font=unicode_font, fill=font_color)
    im.save(f"text_{name}.jpg")

各字体渲染效果

  • LastResort字体
    LastResort字体效果

  • Unifont字体
    Unifont字体效果

  • Unifont Upper字体
    Unifont Upper字体效果

  • Noto Sans字体
    Noto Sans字体效果

  • CODE2001字体
    CODE2001字体效果


内容的提问来源于stack exchange,提问作者Evidlo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.02 12:22:29