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

Bug#1034050: fonts-creep2: generated font is TrueType, not OpenType



Quoting Nathan Willis (2023-04-08 11:22:07)
> On Fri, Apr 7, 2023 at 8:28 PM Agathe Porte <debian@microjoe.org> wrote:
> > > Similarly, if the intent is to make some sort of distinction based on the
> > > contents of the tables (e.g., GSUB and GPOS), then the filename extension
> > > still isn't adequate, because .ttf files can and do include those tables
> > > (see Noto and many many others).
> >
> > I do not know how to inspect the tables, but the `file` tool indicates
> > that creep2.ttf (provided by upstream) and creep2.otb (built by the
> > package) are reported as TrueType fonts with BDF tables:
> >
> >
> There are a couple of passable options. FontForge *can* show you all the
> contents, but the drawback is that it doesn't have a good concept of
> "general overview" and instead it's all split up into different panes of
> different editable info-windows.
> 
> The much easier option (IMO) is probably the "TTX" tool, which is a
> round-trip-through XML tool, but it has several convenience switches, too,
> letting you just look at stuff.

The tool otfinfo part of Debian package lcdf-tools can list the tables:

$ otfinfo -t /usr/share/fonts/opentype/cantarell/Cantarell-Bold.otf
  77805 CFF
    498 GDEF
  15980 GPOS
   2818 GSUB
     96 OS/2
   3308 cmap
     54 head
     36 hhea
   5288 hmtx
      6 maxp
   1112 name
     32 post
$ otfinfo -t /usr/share/fonts/opentype/creep2/creep2.otb
   1184 BDF
   3581 EBDT
    156 EBLC
     28 FFTM
     28 GDEF
     96 OS/2
   1184 cmap
      0 glyf
     54 head
     36 hhea
   1030 hmtx
      2 loca
     32 maxp
    495 name
   3329 post


Hope that's of some help.


 - Jonas


-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 * Sponsorship: https://ko-fi.com/drjones

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


Reply to: