[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Misaki Mincho metrics issues
From: |
Nikolay Sivov |
Subject: |
[ft] Misaki Mincho metrics issues |
Date: |
Fri, 23 Oct 2015 00:35:07 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Hello,
I have some troubles with Misaki Mincho font (misakimn.ttf) [1],
regarding embedded bitmaps metrics.
Looking at EBLC data, there's only one strike available, metrics are:
---
Horizontal Line Metrics
Ascender: 8
Descender: 8
---
ppem X: 8
ppem Y: 8
---
What freetype does in tt_face_load_strike_metrics():
---
metrics->ascender = (FT_Char)strike[16] * 64; /* hori.ascender */
metrics->descender = (FT_Char)strike[17] * 64; /* hori.descender */
metrics->height = metrics->ascender - metrics->descender;
---
So resulting 'height' is set to zero, and this eventually leads to
division by zero in our code.
The question is mostly if it's reasonable to have some kind of
workaround for that in freetype itself, like ignoring descender entirely
in such cases or something else?
[1] https://packages.debian.org/jessie/all/fonts-misaki/download
- [ft] Misaki Mincho metrics issues,
Nikolay Sivov <=
- Re: [ft] Misaki Mincho metrics issues, Lawrence D'Oliveiro, 2015/10/22
- Re: [ft] Misaki Mincho metrics issues, Nikolay Sivov, 2015/10/22
- Re: [ft] Misaki Mincho metrics issues, Lawrence D'Oliveiro, 2015/10/22
- Re: [ft] Misaki Mincho metrics issues, Nikolay Sivov, 2015/10/23
- Re: [ft] Misaki Mincho metrics issues, Lawrence D'Oliveiro, 2015/10/23
- Re: [ft] Misaki Mincho metrics issues, Nikolay Sivov, 2015/10/23
- Re: [ft] Misaki Mincho metrics issues, Lawrence D'Oliveiro, 2015/10/23
- Re: [ft] Misaki Mincho metrics issues, Nikolay Sivov, 2015/10/23
- Re: [ft] Misaki Mincho metrics issues, Khaled Hosny, 2015/10/23
- Re: [ft] Misaki Mincho metrics issues, Lawrence D'Oliveiro, 2015/10/23