IBM Plex Sans JP: the .ttf and .otf have different line metrics (hhea and OS/2 lineGap)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 22/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- design
调研方向
The measurements are in packages/plex-sans-jp/fonts/complete, comparing ttf/hinted and otf/hinted Regular files. Dump the hhea, OS/2 and typo metrics of each edition with a font inspection tool such as fontTools, to confirm the reported 1060/-440/0 and 880/-120/1000 values. Done means the maintainers have chosen the intended metrics and both editions of Plex Sans JP report the same hhea and typo values, but the target values need a maintainer decision first.
由索引模型根据 Issue 内容生成。
描述
Hello,
In IBM Plex Sans JP, the TrueType and the OpenType (CFF) editions of the
same release have different vertical metrics, so the same text is set with
different line spacing depending on which file is used. The other CJK
families agree between their two editions, so this looks unintended, but
I may be missing a reason.
Measured in packages/plex-sans-jp/fonts/complete (all files Version
1.004, unitsPerEm 1000):
| File | hhea ascender | hhea descender | hhea lineGap | OS/2 typoLineGap | Line height |
|---|---|---|---|---|---|
ttf/hinted/IBMPlexSansJP-Regular.ttf |
1060 | -440 | 0 | 500 | 1.5 em |
ttf/unhinted/IBMPlexSansJP-Regular.ttf |
1060 | -440 | 0 | 500 | 1.5 em |
otf/hinted/IBMPlexSansJP-Regular.otf |
880 | -120 | 1000 | 1000 | 2.0 em |
otf/unhinted/IBMPlexSansJP-Regular.otf |
880 | -120 | 1000 | 1000 | 2.0 em |
The OS/2 typoAscender and typoDescender (880, -120) and the usWinAscent
and usWinDescent (1060, 440) are the same in both editions; the hhea
values and the typoLineGap differ. Every weight of the .ttf has the
1060 / -440 / 0 values.
For comparison, both editions agree in the other families:
| Family | hhea (both editions) | OS/2 typo (both editions) |
|---|---|---|
| Plex Sans SC | 880 / -120 / 1000 | 880 / -120 / 1000 |
| Plex Sans TC | 880 / -120 / 1000 | 880 / -120 / 1000 |
| Plex Sans KR | 1085 / -415 / 0 | 780 / -220 / 500 |
Applications that take the line height from hhea (most do on macOS and
Linux, and PDF libraries generally do) set Japanese text 1.5 em apart with
the .ttf and 2.0 em apart with the .otf. We noticed it in PDFjet
(https://github.com/edragoev1/pdfjet), a PDF library that embeds IBM Plex:
the same page of Japanese changed its line spacing when we switched files.
Could you confirm which metrics are intended for Plex Sans JP, and align the
other edition in a future release? Either is fine for us; we only want the
two files to agree.
Thank you for IBM Plex.
Evgeni Dragoev
PDFjet Software
https://pdfjet.com
- 主要语言
- CSS
- 星标
- 11.7k
- 派生
- 627
- 平均合并
- 6 天 4 小时
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IBM/plex 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 10/100
-
kwy未关闭
难度 3/5 1-2 天 新手友好度 5/100
-
难度 4/5 1-3 小时 新手友好度 8/100
-
难度 4/5 3-5 天 新手友好度 40/100
-
🔒 [IBM OSPO Security Notification] — IBM/plex可能重新可做 @leonardo-costa-IBM 于 34 天前认领,目前没有进行中的 PR。 未关闭security
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
[Request] 李跳跳未关闭request-adaption
难度 2/5 1 小时以内 新手友好度 78/100
BetterAndroid/android-notification-icon-project#799 ·
维护者通常 1 天内回复
-
frontend
难度 2/5 1-3 小时 新手友好度 68/100
uoftblueprint/canada-basketball#105 ·
维护者通常 1 天内回复
-
运行诊断页偏移未关闭
难度 2/5 1-3 小时 新手友好度 65/100
Pal-AI-Lab/Coopanion#387 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
mobile-overhaul
难度 2/5 1-3 小时 新手友好度 65/100
UBC-Rapid/UBC-Rapid.github.io#234 ·
维护者通常 1 天内回复