The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Don't set ulUnicodeRange on Mac

These changes was commited to the Birdfont repository Wed, 17 Jun 2015 09:11:25 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Wed, 17 Jun 2015 09:11:25 +0000]

Updated Files

libbirdfont/OpenFontFormat/Os2Table.vala
--- a/libbirdfont/OpenFontFormat/Os2Table.vala +++ b/libbirdfont/OpenFontFormat/Os2Table.vala @@ -92,11 +92,18 @@ ranges.get_ranges (font, out unicodeRange1, out unicodeRange2, out unicodeRange3, out unicodeRange4); - fd.add_u32 (unicodeRange1); // ulUnicodeRange1 Bits 0-31 - fd.add_u32 (unicodeRange2); // ulUnicodeRange2 Bits 32-63 - fd.add_u32 (unicodeRange3); // ulUnicodeRange3 Bits 64-95 - fd.add_u32 (unicodeRange4); // ulUnicodeRange4 Bits 96-127 - + if (mac) { + fd.add_u32 (unicodeRange1); // ulUnicodeRange1 Bits 0-31 + fd.add_u32 (0); // ulUnicodeRange2 Bits 32-63 + fd.add_u32 (0); // ulUnicodeRange3 Bits 64-95 + fd.add_u32 (0); // ulUnicodeRange4 Bits 96-127 + } else { + fd.add_u32 (unicodeRange1); // ulUnicodeRange1 Bits 0-31 + fd.add_u32 (unicodeRange2); // ulUnicodeRange2 Bits 32-63 + fd.add_u32 (unicodeRange3); // ulUnicodeRange3 Bits 64-95 + fd.add_u32 (unicodeRange4); // ulUnicodeRange4 Bits 96-127 + } + fd.add_tag ("Bird"); // VendID // fsSelection (1 for italic 0 for upright)