freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Misaki Mincho metrics issues


From: Nikolay Sivov
Subject: Re: [ft] Misaki Mincho metrics issues
Date: Fri, 23 Oct 2015 11:19:32 +0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 23.10.2015 2:01, Lawrence D'Oliveiro wrote:
On Fri, 23 Oct 2015 01:39:35 +0300, Nikolay Sivov wrote:

On 23.10.2015 1:07, Lawrence D'Oliveiro wrote:

Or just ignore the bitmaps metrics. Bitmaps are there as a rendering
optimization, they’re not supposed to disagree with the scalable
metrics.

Thing is that this font is not reported as scalable by freetype...

It is for me. I just installed the “fonts-misaki” package in Debian
Unstable. Then, using Python FreeType
<https://github.com/ldo/python_freetype>:

     >>> ft = freetype2.Library()
     >>> f = ft.find_face("misakimincho")
     >>> f.family_name
     'MisakiMincho'
     >>> "%#08x" % f.face_flags
     '0x000819'
     >>> f.face_flags & freetype2.FT.FACE_FLAG_SCALABLE != 0
     True


That's because it's a different font. Unstable provided font file is named misaki_mincho.ttf, and I don't see embedded bitmaps in it at all:

---
 0. 'FFTM' - chksm = 0x6ED642A7, off = 0x0010FF60, len =       28
 1. 'OS/2' - chksm = 0x00C118BD, off = 0x00000158, len =       96
 2. 'cmap' - chksm = 0xA6B13DF4, off = 0x00007120, len =    33766
 3. 'cvt ' - chksm = 0x00440511, off = 0x0000F508, len =        4
 4. 'gasp' - chksm = 0xFFFF0003, off = 0x0010FF58, len =        8
 5. 'glyf' - chksm = 0x503DE049, off = 0x00016480, len =  1021888
 6. 'head' - chksm = 0x1195F47A, off = 0x000000DC, len =       54
 7. 'hhea' - chksm = 0x0E0221D8, off = 0x00000114, len =       36
 8. 'hmtx' - chksm = 0x09979444, off = 0x000001B8, len =    28518
 9. 'loca' - chksm = 0xCF30B384, off = 0x0000F50C, len =    28532
10. 'maxp' - chksm = 0x1C2D0077, off = 0x00000138, len =       32
11. 'name' - chksm = 0xED5D03C6, off = 0x0010FC40, len =      759
12. 'post' - chksm = 0xFF030066, off = 0x0010FF38, len =       32
---

The font I have troubles with comes in Jessie package, sha1 is:

5c848c8da5c13207ec8abd05489e3cc59b9fbccf *misakimn.ttf

package name fonts-misaki_11-20080603-15_all.deb,
https://packages.debian.org/jessie/fonts-misaki

File name is different too. And it has no glyf data (except maybe for notdef):

---
 0. 'EBDT' - chksm = 0x0C28E3C5, off = 0x0000F774, len =    56260
 1. 'EBLC' - chksm = 0x0F30D786, off = 0x0000F6CC, len =      168
 2. 'EBSC' - chksm = 0x91DDDB64, off = 0x0001D338, len =     2780
...
 8. 'glyf' - chksm = 0x02390005, off = 0x00024D48, len =       19
---

_______________________________________________
Freetype mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/freetype





reply via email to

[Prev in Thread] Current Thread [Next in Thread]