This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16645 - Its great you introduced a new interface for the TextMetrics, however it would be useful to get a list of fonts that is available to use with .font property. Including web fonts and available system fonts. naming for such property could be availableFonts
Summary: Its great you introduced a new interface for the TextMetrics, however it woul...
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-05 22:54 UTC by contributor
Modified: 2012-07-26 05:54 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-04-05 22:54:51 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-font
Multipage: http://www.whatwg.org/C#text-styles
Complete: http://www.whatwg.org/c#text-styles

Comment:
Its great you introduced a new interface for the TextMetrics, however it would
be useful to get a list of fonts that is available to use with .font property.
Including web fonts and available system fonts. naming for such property could
be availableFonts and the array value return could be read only. Such
interface would be useful for providing font pickers in graphical applications
etc. Currently the only existing walk around to this issue is using flash
which isn't very help full when not all devices support it. 

Posted from: 78.73.13.15
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3
Comment 1 contributor 2012-07-18 17:18:57 UTC
This bug was cloned to create bug 18111 as part of operation convergence.
Comment 2 Ian 'Hixie' Hickson 2012-07-26 05:54:41 UTC
We can't expose the currently available fonts, that would be a fingerprinting leak. Even releasing the metrics is pretty bad.