Bug 1630935 - Add use counter and deprecation warning for STIXGeneral fonts. r=emilio
authorDelan Azabani <dazabani@igalia.com>
Thu, 25 Jun 2020 04:20:57 +0000
changeset 13242 3a573bb93cfacfd61c0bee01279b522d19c33009
parent 13241 ddb17aac381cff58dd674dfd552344908066af09
child 13243 1960544ff15e741169820ee5b1d40600fc4ba6b5
push id254
push userflodolo@mozilla.com
push dateThu, 25 Jun 2020 12:09:27 +0000
reviewersemilio
bugs1630935
Bug 1630935 - Add use counter and deprecation warning for STIXGeneral fonts. r=emilio This patch adds the boolean pref mathml.stixgeneral_operator_stretching.disabled, which defaults to true iff nightly. When the pref is true, stretched operators won’t be rendered with STIXGeneral, because we only use OpenType MATH tables (in fonts that have them) or the generic Unicode table. When the pref is false, we continue to support STIXGeneral for stretched operators, but warn the author in devtools and bump the use counter (up to once per page). This only happens when a stretched operator actually uses STIXGeneral: not when we successfully render the operator with some other font earlier in the font-family stack, and not when STIXGeneral isn’t installed. Differential Revision: https://phabricator.services.mozilla.com/D73833 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: c60bb22083efc1687199b2ed9f2b705bd4b4bb79 X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 6aafb2261c55f300ba9289ad196d6d344686bd89 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: 12dd23e8e94407feb947f5618f370579bc74cb80 X-Channel-Repo: releases/mozilla-esr68 X-Channel-Revision: 84c0d49497b06dc02cfb89d39a56950dcf6e369f
dom/chrome/dom/dom.properties
--- a/dom/chrome/dom/dom.properties
+++ b/dom/chrome/dom/dom.properties
@@ -422,15 +422,17 @@ MathML_DeprecatedMencloseNotationRadical=The “radical” value is deprecated for the “notation” attribute of the <menclose> element and will be removed at a future date.
 # LOCALIZATION NOTE: Do not translate MathML or mfenced.
 MathML_DeprecatedMfencedElement=MathML element mfenced is deprecated and will be removed at a future date.
 # LOCALIZATION NOTE: Do not translate MathML, subscriptshift and superscriptshift.
 MathML_DeprecatedScriptShiftAttributes=MathML attributes “subscriptshift” and “superscriptshift” are deprecated and may be removed at a future date.
 # LOCALIZATION NOTE: Do not translate MathML, background, color, fontfamily, fontsize, fontstyle and fontweight.
 MathML_DeprecatedStyleAttributeWarning=MathML attributes “background”, “color”, “fontfamily”, “fontsize”, “fontstyle” and “fontweight” are deprecated and will be removed at a future date.
 # LOCALIZATION NOTE: Do not translate MathML and XLink.
 MathML_DeprecatedXLinkAttributeWarning=XLink attributes “href”, “type”, “show” and “actuate” are deprecated on MathML elements and will be removed at a future date.
+# LOCALIZATION NOTE: Do not translate MathML and STIXGeneral. %S is a documentation URL.
+MathML_DeprecatedStixgeneralOperatorStretchingWarning=Support for rendering stretched MathML operators with STIXGeneral fonts is deprecated and may be removed at a future date. For details about newer fonts that will continue to be supported, see %S
 WebShareAPI_Failed=The share operation has failed.
 WebShareAPI_Aborted=The share operation was aborted.
 # LOCALIZATION NOTE (UnknownProtocolNavigationPrevented): %1$S is the destination URL.
 UnknownProtocolNavigationPrevented=Prevented navigation to “%1$S” due to an unknown protocol.
 PostMessageSharedMemoryObjectToCrossOriginWarning=Cannot post message containing a shared memory object to a cross-origin window.
 # LOCALIZATION NOTE: %S is the URL of the resource in question
 UnusedLinkPreloadPending=The resource at “%S” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.