Intent to prototype & ship: Canvas2D 'lang' attribute
49 views
Skip to first unread message
Jonathan Kew
unread,
Mar 24, 2026, 6:32:04 AM (3 days ago) Mar 24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@mozilla.org
As of Firefox 151, I intend to implement and ship the 'lang'
attribute for Canvas2D text.
Summary: In some cases, text rendering is dependent on the language
of the content being displayed -- e.g. there may be
language-specific glyph shapes or ligature rules. This feature adds
a lang IDL attribute to
CanvasTextDrawingStyles, to give developers control over the
language used for text drawing and metrics in Canvas2D.