Fabio Donzella
unread,Nov 26, 2020, 2:55:00 AM11/26/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-discuss, Koji Ishii, Chromium-discuss, yi...@chromium.org, Fabio Donzella
Hi Koji, thanks for your reply.
Let me briefly explain what I'm doing: I'm porting an old graphic engine windows based to a Web App using HTML5 Canvas and WebAssembly. I'm facing a lot of issues to replicate the original behaviour with texts (fonts especially), that's because the original rendering done by GDI is different, depending on the font. I know that the 100% precision is almost impossible, but at least I want to reach as much as possible that percentage without binding to any O.S. in particular
What I need is exactly fontBoundingBoxAscent/
fontBoundingBoxDescent, actualBounding is depending on the string drawn on the Canvas and so it would not provide an homogeneus approach. Maybe I can avoid other properties like ascent, descents ecc. for now.
Considering that the code I'm actually writing will be part of a system that will remain in production for many years, I'm particularly interested in security, reliability and robustness: so I'm happy to hear that this will come out very soon, but in general these TextMetrics API are an experimental technology and I want some insurances that these features will not be dropped in a near future or any other limitation that can cause me some problems
Thanks in advance for your help,
Fabio