[html5] r1533 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue May 6 14:47:41 PDT 2008


Author: ianh
Date: 2008-05-06 14:47:40 -0700 (Tue, 06 May 2008)
New Revision: 1533

Modified:
   index
   source
Log:
[] (0) Make @font-face fonts available to <canvas>.

Modified: index
===================================================================
--- index	2008-05-06 07:41:38 UTC (rev 1532)
+++ index	2008-05-06 21:47:40 UTC (rev 1533)
@@ -18642,12 +18642,17 @@
 
   <p>The <dfn id=font title=dom-context-2d-font><code>font</code></dfn> DOM
    attribute, on setting, must be parsed the same way as the 'font' property
-   of CSS (but without supporting property-global stylesheet syntax like
+   of CSS (but without supporting property-independent stylesheet syntax like
    'inherit'), and the resulting font must be assigned to the context, with
    the 'line-height' component forced to 'normal'. <a
-   href="#refsCSS">[CSS]</a><!-- XXX generic version-independent
-  reference -->
+   href="#refsCSS">[CSS]</a><!-- XXX generic
+  version-independent reference -->
 
+  <p>Font names must be interpreted in the context of the <code><a
+   href="#canvas">canvas</a></code> element's stylesheets; any fonts embedded
+   using <code title="">@font-face</code> must therefore be available. <a
+   href="#refsCSSWEBFONTS">[CSSWEBFONTS]</a>
+
   <p>On getting, the <code title=dom-context-2d-font><a
    href="#font">font</a></code> attribute must return the serialised form of
    the current font of the context. <a

Modified: source
===================================================================
--- source	2008-05-06 07:41:38 UTC (rev 1532)
+++ source	2008-05-06 21:47:40 UTC (rev 1533)
@@ -16375,12 +16375,17 @@
 
   <p>The <dfn title="dom-context-2d-font"><code>font</code></dfn> DOM
   attribute, on setting, must be parsed the same way as the 'font'
-  property of CSS (but without supporting property-global stylesheet
-  syntax like 'inherit'), and the resulting font must be assigned to
-  the context, with the 'line-height' component forced to 'normal'. <a
-  href="#refsCSS">[CSS]</a><!-- XXX generic version-independent
-  reference --></p>
+  property of CSS (but without supporting property-independent
+  stylesheet syntax like 'inherit'), and the resulting font must be
+  assigned to the context, with the 'line-height' component forced to
+  'normal'. <a href="#refsCSS">[CSS]</a><!-- XXX generic
+  version-independent reference --></p>
 
+  <p>Font names must be interpreted in the context of the
+  <code>canvas</code> element's stylesheets; any fonts embedded using
+  <code title="">@font-face</code> must therefore be available. <a
+  href="#refsCSSWEBFONTS">[CSSWEBFONTS]</a></p>
+
   <p>On getting, the <code title="dom-context-2d-font">font</code>
   attribute must return the serialised form of the current font of the
   context. <a href="#refsCSSOM">[CSSOM]</a><!-- XXX ensure that this




More information about the Commit-Watchers mailing list