The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Don't set CJK bits on Mac (ulUnicideRange in OS2 table)

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

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 17 Jun 2015 09:10:04 +0000 (11:10 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 17 Jun 2015 09:10:04 +0000 (11:10 +0200)
commit c95f61aa6211f62c5fe6a9c4a5f567f29f1eee7a
tree 4632ea0e5919832dc399de5e02fcad61114ed0dd
parent 5c1086780c470a900a2e82e097773d0926f0978d
Don't set CJK bits on Mac (ulUnicideRange in OS2 table)

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)