<p>Good morning</p><p>Thank you, Peter.</p><p>https://forum.affinity.serif.com/index.php?/topic/199300-color-font-is-not-being-displayed-in-affinity-designer-2-desktop/&do=findComment&comment=1178365</p><p>Best regards,</p><p>William</p><p><br> </p><blockquote><p>------ Original Message ------<br>From: pconstable@microsoft.com<br>To: wjgo_10009@btinternet.com; mpeg-otspec@lists.aau.at<br>Sent: Tuesday, February 27th 2024, 00:37<br>Subject: Re: [MPEG-OTSPEC] [EXTERNAL] questions on OT-SVG in Chrome, MS Edge and Firefox<br> </p><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;">OpenType and OFF support a few diffent colour font formats. Two use colour bitmaps:</span></p><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><ul><li class="MsoListParagraph" style="margin-left:0.0in;"><span style="font-size:11.0pt;">CBDT/CBLC: this was originally developed by Google to support emoji on Android devices. The format is also supported in at least Windows and in Edge and other Chromium-based browsers, but there are very few fonts and I think I can say the format is pretty much obsolete. (Even Google has since replaced CBDT in the Noto Color Emoji font—see below.)</span></li></ul><p class="MsoListParagraph"><span style="font-size:11.0pt;"> </span></p><ul><li class="MsoListParagraph" style="margin-left:0.0in;"><span style="font-size:11.0pt;">sbix: this was originally developed by Apple to support emoji. This is also supported in other platforms, some browsers and in some apps (e.g., Corel Graphics Suite). But last I checked it’s not supported in apps from Adobe or Affinity.</span></li></ul><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;">Then there are vector formats: two different font tables are used, but one has two versions that need to be distinguished:</span></p><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><ul><li class="MsoListParagraph" style="margin-left:0.0in;"><span style="font-size:11.0pt;">COLRv0: this was originally developed by Microsoft to support emoji. It was a relative simple extension to monochrome formats. On the one hand, that means it has limited graphic capabilities—layered shapes with solid colour fills plus alpha blending. But, on the other hand, this is the colour format that’s most widely supported—all platforms, all browsers, and many apps, including Corel Graphics Suite and Affinity Designer, but noticeably absent from Adobe apps.</span></li></ul><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><ul><li class="MsoListParagraph" style="margin-left:0.0in;"><span style="font-size:11.0pt;">SVG: this was originally developed by Adobe at the same time as the above, and first supported in Firefox. Support was added in Windows, the Edge browser and in Adobe apps in 2017, and also in Safari in a similar timeframe. There have been many OT-SVG fonts created—probably the vast majority of existing colour fonts, mainly because of support in Adobe apps.</span><br><br><span style="font-size:11.0pt;">(Most OT-SVG fonts could actually have been implemented using COLRv0, and would have gotten broader app support that way, except that they wouldn’t work in Adobe apps.)</span><br><br><span style="font-size:11.0pt;">However, when Edge’s edgehtml layout engine was replaced with Chromium, support for OT-SVG in Edge went away. There’s no expectation that this will be coming back.</span></li></ul><p class="MsoListParagraph"><span style="font-size:11.0pt;"> </span></p><ul><li class="MsoListParagraph" style="margin-left:0.0in;"><span style="font-size:11.0pt;">COLRv1: This was developed by Google and Microsoft a few years ago to provide graphics capabilities similar to OT-SVG but in a binary format that better integrates with the rest of the font format. It has superseded CBDT in the Noto Color Emoji font, and the Segoe UI Emoji font in Windows 11 was recently updated using COLRv1 — see </span><a target="_blank" rel="noopener noreferrer" href="https://microsoft.design/articles/bringing-new-emoji-to-windows-11?fbclid=IwAR36ro0ec6BHu_YSsDsbnueb2gUjc9k_oPzZBHzlJ5mnfZ62tosMbQg8hqc">Bringing new emoji to Windows 11 | Microsoft Design</a>.<span style="font-size:11.0pt;"> Being still relative new, however, it’s not yet widely supported in apps—Android, Windows and Chromium-based browses are probably it at this point.</span></li></ul><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;">At this point, I expect sbix will continue to be used for the indefinite future for colour bitmaps. For vector formats, it remains to be seen whether one or the other of SVG and COLRv1 will become the dominant format.</span></p><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;">Peter</span></p><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><div id="mail-editor-reference-message-container"><div><div style="border-top:solid rgb(181,196,223) 1.0pt;border:none;padding:3.0pt 0.0in 0.0in 0.0in;"><p class="MsoNormal" style="margin-bottom:12.0pt;"><span style="color:black;font-family:Aptos , sans-serif;font-size:12.0pt;"><strong>From: </strong>mpeg-otspec <<span class="wt_Email">mpeg-otspec-bounces@lists.aau.at</span>> on behalf of William_J_G Overington via mpeg-otspec <<span class="wt_Email">mpeg-otspec@lists.aau.at</span>></span><br><span style="color:black;font-family:Aptos , sans-serif;font-size:12.0pt;"><strong>Date: </strong>Monday, February 26, 2024 at 4:37</span><span style="color:black;font-family:Arial , sans-serif;font-size:12.0pt;"> </span><span style="color:black;font-family:Aptos , sans-serif;font-size:12.0pt;">PM</span><br><span style="color:black;font-family:Aptos , sans-serif;font-size:12.0pt;"><strong>To: </strong><span class="wt_Email">mpeg-otspec@lists.aau.at</span> <<span class="wt_Email">mpeg-otspec@lists.aau.at</span>></span><br><span style="color:black;font-family:Aptos , sans-serif;font-size:12.0pt;"><strong>Subject: </strong>Re: [MPEG-OTSPEC] [EXTERNAL] questions on OT-SVG in Chrome, MS Edge and Firefox</span></p></div><p>Hi</p><p>I refer to</p><p><a target="_blank" rel="noopener noreferrer" href="https://lists.aau.at/pipermail/mpeg-otspec/2024-February/003285.html">https://lists.aau.at/pipermail/mpeg-otspec/2024-February/003285.html</a></p><p>--</p><p>A discussion about the technique of using an SVG file exported from Affinity Designer (Affinity Designer not having colour font capability) to produce a colour display using Microsoft Edge has arisen.</p><p><a target="_blank" rel="noopener noreferrer" href="https://forum.affinity.serif.com/index.php?/topic/199300-color-font-is-not-being-displayed-in-affinity-designer-2-desktop/&do=findComment&comment=1178254">https://forum.affinity.serif.com/index.php?/topic/199300-color-font-is-not-being-displayed-in-affinity-designer-2-desktop/&do=findComment&comment=1178254</a></p><p>https://forum.affinity.serif.com/index.php?/topic/199300-color-font-is-not-being-displayed-in-affinity-designer-2-desktop/&do=findComment&comment=1178261</p><p>Is the issue in this thread related to that or is about something different please?</p><p>Best regards,</p><p>William Overington</p><p>Monday 26 February 2024</p><p> </p><p><br> <br> </p><blockquote style="margin-bottom:5.0pt;margin-top:5.0pt;"><p>------ Original Message ------<br>From: <span class="wtemail wt_Email">mpeg-otspec@lists.aau.at</span><br>To: <span class="wtemail wt_Email">htl10@users.sourceforge.net</span>; <span class="wtemail wt_Email">mpeg-otspec@lists.aau.at</span>; <span class="wtemail wt_Email">jfkthame@gmail.com</span><br>Sent: Tuesday, February 13th 2024, 00:44<br>Subject: Re: [MPEG-OTSPEC] [EXTERNAL] questions on OT-SVG in Chrome, MS Edge and Firefox<br> </p><div><p class="MsoNormal"><span style="font-size:11.0pt;">> Guess OT-SVG support was broken when MS Edge moved to a Chromium-based backend in April 2021.</span><br><br><span style="font-size:11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;">That’s correct.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;">Peter</span></p><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><div><p class="MsoNormal"><span style="font-family:Calibri , sans-serif;font-size:11.0pt;"><strong>From:</strong></span><span style="font-size:11.0pt;"> Hin-Tak Leung <<span class="wtemail wt_Email">htl10@users.sourceforge.net</span>> </span><br><span style="font-family:Calibri , sans-serif;font-size:11.0pt;"><strong>Sent:</strong></span><span style="font-size:11.0pt;"> Monday, February 12, 2024 3:07 PM</span><br><span style="font-family:Calibri , sans-serif;font-size:11.0pt;"><strong>To:</strong></span><span style="font-size:11.0pt;"> <span class="wtemail wt_Email">mpeg-otspec@lists.aau.at</span>; Jonathan Kew <<span class="wtemail wt_Email">jfkthame@gmail.com</span>>; Peter Constable <<span class="wtemail wt_Email">pconstable@microsoft.com</span>></span><br><span style="font-family:Calibri , sans-serif;font-size:11.0pt;"><strong>Cc:</strong></span><span style="font-size:11.0pt;"> suzuki toshiya <<span class="wtemail wt_Email">mpsuzuki@hiroshima-u.ac.jp</span>></span><br><span style="font-family:Calibri , sans-serif;font-size:11.0pt;"><strong>Subject:</strong></span><span style="font-size:11.0pt;"> [EXTERNAL] questions on OT-SVG in Chrome, MS Edge and Firefox</span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;"> </span></p><div><p class="MsoNormal"><span style="font-size:11.0pt;">Hi,</span><br><br><span style="font-size:11.0pt;">I have continued to keep the blink/skia patches [1] up to date to current Chromium. And continue to test them [2] with QT WebEngine, which is a slimmed-down Chromium code variant up to about 3 months behind in latest Chromium development. Am trying to get the QT folks to take the patches [3].</span><br><br><span style="font-size:11.0pt;">Since some claimed that MS Edge supports OT-SVG back in 2017, and MS Edge has been available for Linux for a while, I gave it a try, and it is a NO. Guess OT-SVG support was broken when MS Edge moved to a Chromium-based backend in April 2021.</span><br><br><span style="font-size:11.0pt;">Anyway, here is a question for Peter and possibly also other Microsoft folks:</span><br><br><span style="font-size:11.0pt;">- I have no idea how much current MS Edge on windows differs from Chrome on windows, but would you pass the URL for the patches to the relevant people and let them see what they see fit to adapt please? Thanks. Feedbacks and corrections/modifications can go to [1]'s issues, etc or directly/privately to me if needed.</span><br><br><span style="font-size:11.0pt;">And here is a question for Jonathan, and possibly other Firefox folks:</span><br><br><span style="font-size:11.0pt;">- logically my chrome patches are in 3 parts, a one-liner switching OT-SVG support on in Skia, tell OTS to let such fonts pass-through as a usable font format, and get Blink to use freetype for non-OS-native font formats similar to sbix for windows etc. The 2nd part is somewhat common to Firefox - how does firefox deal with OT-SVG web-font sanitizing-wise? Does its copy of OTS (AFAIK) let them through and just hope the SVG processing is robust enough, or do some XML/etc validation on the way?</span><br><br><span style="font-size:11.0pt;">Would like to hear what Safari/Apple folks or webkitgtk folks (both of them supoprts OT-SVG, the latter I tested myself with webkitgtk-sharp) who like to comment on the sanitizing/security aspect of OT-SVG web fonts too. </span><br><br><span style="font-size:11.0pt;">Hin-Tak</span><br><br><br><span style="font-size:11.0pt;">[1] </span><a target="_blank" rel="noopener noreferrer" href="https://github.com/HinTak/chromium-mod-CI"><span style="font-size:11.0pt;">https://github.com/HinTak/chromium-mod-CI</span></a><br><span style="font-size:11.0pt;">[2] </span><a target="_blank" rel="noopener noreferrer" href="https://github.com/HinTak/Qt6WE-OT-SVG"><span style="font-size:11.0pt;">https://github.com/HinTak/Qt6WE-OT-SVG</span></a><br><span style="font-size:11.0pt;">[3] </span><a target="_blank" rel="noopener noreferrer" href="https://bugreports.qt.io/browse/QTBUG-120543"><span style="font-size:11.0pt;">https://bugreports.qt.io/browse/QTBUG-120543</span></a></p></div></div><hr><p>_______________________________________________<br>mpeg-otspec mailing list<br><span class="wtemail wt_Email">mpeg-otspec@lists.aau.at</span><br><a target="_blank" rel="noopener noreferrer" href="https://lists.aau.at/mailman/listinfo/mpeg-otspec">https://lists.aau.at/mailman/listinfo/mpeg-otspec</a><br> </p></blockquote></div></div></div></blockquote>