Bug 26207

Summary: Support OpenType optical sizes
Product: fontconfig Reporter: Khaled Hosny <dr.khaled.hosny>
Component: libraryAssignee: fontconfig-bugs
Status: RESOLVED WONTFIX QA Contact: Behdad Esfahbod <freedesktop>
Severity: enhancement    
Priority: medium CC: akira, freedesktop, panov
Version: 2.8   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: A testcase for fontconfig
Another testcase

Description Khaled Hosny 2010-01-25 05:43:58 UTC
OpenType supports specifying font's optical size through a GPOS 'size' feature (very odd place for such information!), it'd be nice of FC can cache such info and deliver the right match based on the requested font size.

See http://www.microsoft.com/typography/OTSPEC/features_pt.htm#size for more details.
Comment 1 Khaled Hosny 2010-01-25 05:56:59 UTC
Currently, the only free font family that I know of with multiple optical sizes is Latin Modern (http://www.gust.org.pl/projects/e-foundry/latin-modern), and it is looks very broken with FC (returns styles like "10 Regular" and "8 Regular" for 10 and 8 fonts respectively, etc.)
Comment 2 Behdad Esfahbod 2013-01-16 01:45:09 UTC
This is implemented in HarfBuzz now.  One more benefit if we decide to depend on HarfBuzz.
Comment 3 Andrey V. Panov 2014-11-06 03:13:20 UTC
Created attachment 109005 [details]
A testcase for fontconfig

Here is attached a set of Computer Modern based fonts in the opentype collection format with the 'size' feature.
Comment 4 Andrey V. Panov 2014-11-06 03:19:18 UTC
Created attachment 109006 [details]
Another testcase

This is similar to the previous attachment but was made as separate otf files.
Comment 5 Behdad Esfahbod 2014-11-09 01:59:44 UTC
FWIW, OpenType moved into the direction of adding optical size range to OS/2 table instead, and that's already supported in fontconfig.  Closing this as WONTFIX.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.