fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
29.02k stars 3.51k forks source link

task(Text): measuring using new metrics #8505

Open ShaMan123 opened 1 year ago

ShaMan123 commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics#measuring_text_width

seems that some issues with custom fonts could be resolved using what mdn suggests in the link

ref: _measureChar _getGraphemeBox

ShaMan123 commented 1 year ago

I wonder if node canvas supports it...

asturur commented 1 year ago

duplicate of https://github.com/fabricjs/fabric.js/issues/2061 i think Let's keep the old one labeled as task/text so we know this is a long standing issue/requested feature.