Bug 26207 - Support OpenType optical sizes
Summary: Support OpenType optical sizes
Status: RESOLVED WONTFIX
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.8
Hardware: All All
: medium enhancement
Assignee: fontconfig-bugs
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-25 05:43 UTC by Khaled Hosny
Modified: 2014-11-09 01:59 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
A testcase for fontconfig (825.59 KB, application/x-xz)
2014-11-06 03:13 UTC, Andrey V. Panov
Details
Another testcase (831.48 KB, application/x-xz)
2014-11-06 03:19 UTC, Andrey V. Panov
Details

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.