<div dir="ltr">Hello!<div>There's a new font, Sitka, being released with Windows 8.1, which supports optical sizing, but not in the standard OpenType way (that would be too easy). Instead, they've decided to add two new fields to the OS/2 table (see here: <a href="http://typedrawers.com/discussion/470/new-microsoft-size-specific-design-selection-mechanism">http://typedrawers.com/discussion/470/new-microsoft-size-specific-design-selection-mechanism</a> ).<br>
<br></div><div>Technical grumbling aside, the font itself is quite nice, looking like a book version of Cambria (similar to how Kepler is like a book version of Utopia).</div><div><br></div><div>Only problem is, fontspec doesn't (yet) support the new OS/2 table format. So I've tried terrible, hack-y things to get it to work, such as nesting SizeFeatures within BoldFeatures, and vice versa. For example, the following code yields the correct upright font for the size, but with the default-sized bold/italic:</div>
<div><p style="margin:0px">\setmainfont[SizeFeatures={%</p>
<p style="margin:0px">{Size={-9.7},Font={* Small},BoldFont={* Small Bold},ItalicFont={* Small Italic},BoldItalicFont={* Small Bold Italic}},</p>
<p style="margin:0px">{Size={9.7-13.5},Font={* Text},BoldFont={* Text Bold},ItalicFont={* Text Italic},BoldItalicFont={* Text Bold Italic}},</p>
<p style="margin:0px">{Size={13.5-18.5}, Font={* Subheading}, BoldFont={* Subheading Bold},ItalicFont={* Subheading Italic},BoldItalicFont={* Subheading Bold Italic}},</p>
<p style="margin:0px">{Size={18.5-23.5}, Font={* Heading}, BoldFont={* Heading Bold},ItalicFont={* Heading Italic},BoldItalicFont={* Heading Bold Italic}},</p>
<p style="margin:0px">{Size={23.5-27.5}, Font={* Display}, BoldFont={* Display Bold},ItalicFont={* Display Italic},BoldItalicFont={* Display Bold Italic}},</p>
<p style="margin:0px">{Size={27.5-}, Font={* Banner}, BoldFont={* Banner Bold},ItalicFont={* Banner Italic},BoldItalicFont={* Banner Bold Italic}}%</p>
<p style="margin:0px">}]{Sitka}</p><p style="margin:0px"><br></p><p style="margin:0px">While other combinations result in no effect at all.</p><p style="margin:0px"><br></p><p style="margin:0px">Anyone have any experience with specifying bold/italic fonts with optical sizes?</p>
<p style="margin:0px"><br></p><p style="margin:0px">Thank you!</p><p style="margin:0px">Andy</p></div></div>