IBM Plex Sans JP: the .ttf and .otf have different line metrics (hhea and OS/2 lineGap)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- CSS
- Star
- 11.7k
- Fork
- 625
- Merge trung bình
- 20 giờ 31 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IBM/plex
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 40/100
-
🔒 [IBM OSPO Security Notification] — IBM/plexCó thể đã có người làm @leonardo-costa-IBM đã nhận 23 ngày trước. Đang mởsecurity
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
iBM Plex Sans ArabicĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
-
Request for mathematical Greek variant glyphs in IBM Plex Serif Italic and MathType compatibilityĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Issue tương tự
-
[美术] 三张背景图与场景对不上,需要替换Đang mở美术
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Request: BizumĐang mởnew icon permissions in review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
simple-icons/simple-icons#15080 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
IBM/carbon-components-ember#1049 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Status: Needs Review Toolkit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày