how to set MacRoman, etc. in OS/2 CodePageRange overrides

33 views
Skip to first unread message

Cosimo Lupo

unread,
Aug 20, 2014, 6:04:58 AM8/20/14
to uafd...@googlegroups.com
Hello,

I am trying to specify the OS/2 table's CodePageRange in my feature file. The FEA syntax specification just links to OpenType specification on MS website for a list of Windows code pages numbers: 

<code page list> is a whitespace-separated list of Windows code page numbers from the OpenType specification for the ulCodePageRange1-2 in the OS/2 table

However, that list does not include a code page number for "Macintosh Character Set (US Roman)", "OEM Character Set" and "Symbol Character Set".

I wonder then, how can I set those specific bits (respectively 29, 30, 31) from the OS/2 overrides in the FEA feature file?

Thank you in advance.

All best,

Cosimo

rrob...@adobe.com

unread,
Aug 20, 2014, 2:14:36 PM8/20/14
to uafd...@googlegroups.com
Unfortunately, you can't do this with the FDK.  makeotf uses a lookup table  from Windows code page number to OS/2 usCodePageRange[12], and will reject any values that are not listed in the OpenType spec OS/2 table specification.

You can do this by scripting with the 'ttx' tool, which dumps an XML version of the OS/2 table, and report the OS/2 usCodePageRange as a bit field. You can edit this field, and the merge the new definition back into the font 'ttx -m <path to font file>  <path to ttx ML dump of the OS2 table>'.

The OTMaster tool from DTL also lets you edit this kind of stuff directly, from a UI. FontLab may als let you do this - have never tried.

- Read Roberts

Cosimo Lupo

unread,
Aug 20, 2014, 2:16:00 PM8/20/14
to uafd...@googlegroups.com
Thank you for your answer.
I will use fontTools then.

Cosimo


--
You received this message because you are subscribed to the Google Groups "UAFDKOML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uafdkoml+u...@googlegroups.com.
To post to this group, send email to uafd...@googlegroups.com.
Visit this group at http://groups.google.com/group/uafdkoml.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages