# -*- coding: utf-8 -*- """_test_glyph_ref.py — dbf 字形与 TTF 直接渲染逐字节比对(码点映射 + 数据无损验证)""" import struct from PIL import Image, ImageFont, ImageDraw def load(path): data = open(path, "rb").read() count = struct.unpack_from("