On Wed, Dec 5, 2012 at 11:50 AM, Mark Roberts
<[email protected]> wrote:
> How can I check the embeddability of a font on a Mac? Font embedding
> falls into four categories: Installable, editable, view/printable and
> non-embeddable. I would like to know which permissions level a font
> has *before* using it in a document! I know how to do it in Windows
> but haven't been able to find out how in Mac.
> ...

This is from the friend of mine who invented TrueType fonts ... I sent
him Mark's question:

".. the font question, the embedding privileges are stored in a field
in the font's OS/2 table. Since Apple doesn't use the OS/2 table, its
documentation is a bit out of date. Here's a link to the MS page
describing the fsType field (where the embedding info is stored):

http://www.microsoft.com/typography/otspec/os2.htm#fst

There are tools that can show this value and otherwise deal with it,
but honestly, it's probably easier to just do it directly from the
command line. Launch Terminal, and navigate to the directory
containing the font in question.

First, do this (this example uses a font called fred.ttf):

$ xxd -l 64 -u fred.ttf

This will produce a few lines of output, like this:

0000000: 0001 0000 0012 0100 0004 0020 4F53 2F32  ........... OS/2
0000010: 6926 F3EC 0001 56CC 0000 0060 636D 6170  i&....V....`cmap
0000020: 8E1F 46FD 0001 07D4 0000 05A6 6376 7420  ..F.........cvt
0000030: 0023 0011 0000 EEAC 0000 0006 6665 6174  .#..........feat

See the end of the first line there, where it says OS/2? That's the
directory entry for the OS/2 table. That tag comes first, then a
4-byte checksum, and then the 4-byte offset to the table, which is
0x000156CC here. The fsType field is always 8 bytes from the start of
the OS/2 table, and extends for 2 bytes. Adding 8 to 0x000156CC we get
0x000156D4, which is the offset of our value. Look at it via this
command:

$ xxd -l 2 -s 0x156D4 -u fred.ttf

This finally gives you the embedding value:

00156d4: 0000                                     ..

You can interpret the bits via the documentation linked to above."

Enjoy.

-- 
Godfrey
  certifed geek worthy

-- 
PDML Pentax-Discuss Mail List
[email protected]
http://pdml.net/mailman/listinfo/pdml_pdml.net
to UNSUBSCRIBE from the PDML, please visit the link directly above and follow 
the directions.

Reply via email to