这是什么字体啊?

Created on: May 8, 2025

Answered using O3 by Chat01

Question

image.pngimage.png

这是什么字体啊?

Python

python
from PIL import Image import matplotlib.pyplot as plt img = Image.open('/mnt/data/image.png') plt.imshow(img) plt.axis('off') (-0.5, 543.5, 405.5, -0.5)

Python

python
plt.figure(figsize=(4,4)) plt.imshow(img.crop((20,40,350,110))) plt.axis('off') (-0.5, 329.5, 69.5, -0.5)

Python

python
plt.figure(figsize=(4,4)) plt.imshow(img.crop((40,40,110,110))) plt.axis('off') (-0.5, 69.5, 69.5, -0.5)

Python

python
plt.imshow(img.crop((130,40,200,110))) plt.axis('off') (-0.5, 69.5, 69.5, -0.5)

Python

python
plt.imshow(img.crop((40,215,200,280))) plt.axis('off') (-0.5, 159.5, 64.5, -0.5)

Thought

If the goal is to identify the font used in Warcraft 3, it's likely the game is using a system font with an outline applied by the engine to make the text stand out. For Chinese, this is probably "SimSun," while Latin characters use something like "Times New Roman." The characters in the screenshot appear narrow, so it might be "新细明体." Looking at the "HP值" characters, the vertical strokes seem slightly thicker with small diagonal serifs at the ends, which matches the Song-style serif font.

It looks like the font is a standard Song/Ming-style typeface, possibly either "宋体 (SimSun)" or "新宋体 (NSimSun)." While NSimSun is a vector-based version of the font, used for smaller sizes, SimSun typically appears in 11-point sizes. In Blizzard’s Warcraft III, these fonts are commonly used with bitmap outlines added by the game engine for visual emphasis. On Windows, the default Chinese font would likely be SimSun or its vector counterpart, NSimSun. Additionally, PMingLiU could be an option for Taiwan.

Thought for 1m 3s

Answer

结论:这是 Windows 系统自带的宋/明体系列字体——通常显示为 “宋体 (SimSun)” 或其 TrueType 变体 “新宋体 (NSimSun)”。


判断依据

  • 字形风格
    • 细横粗竖、末端带微小的楔形“脚”,这是典型宋/明体的笔画特征;黑体则不会出现这种衬脚。
  • 英文字母
    • “L v.” 等拉丁字符也带有衬线,与 SimSun 中的 Times‑like 衬线风格一致。
  • 位图描边并非字体自带
    • 截图里每个字外围都有 1 px 的彩色描边(白边、紫边等)。这属于游戏引擎的实时描边效果,字体本身只有黑字形,不包含这种外框。
  • 环境推断
    • 画面 UI 与 Warcraft III 等 RTS 地图编辑/自定义地图的文本框一致。这些游戏在简体中文系统里默认调用 SimSun/NSimSun 来渲染汉字。

如何复刻这种视觉效果

  1. 字体:在设计软件或引擎里选 “宋体 (SimSun)” / “新宋体 (NSimSun)”。
  2. 描边:给文本加 1 px 外发光或描边(黑色背景可选不同颜色描边)以获得游戏中的“像素外框”效果。
  3. 分辨率:保持整数像素渲染(禁用抗锯齿)才能得到截图里那种清晰的 8‑bit 像素感。

常见疑惑补充

  • 宋体 vs. 新宋体
    • 两者字形基本一致;NSimSun 是 TrueType 轮廓字体,适合小字号、可缩放。
  • 为何有些电脑显示“方正宋体”
    • 若用户安装了商业字体并在注册表里替换了 SimSun,同类宋体也可能被调用,看上去差异极小。

如果你想用完全相同的文件,可直接从 Windows\Fonts 里复制 simsun.ttc(包含 SimSun 与 NSimSun)到项目中。

Share this Q&A