Skip to content

[HTML Canvas] lang IDL attribute for CanvasTextDrawingStyles #439

Closed
@schenney-chromium

Description

@schenney-chromium

WebKittens

No response

Title of the proposal

Add a lang IDL Attribute to CanvasTextDrawingStyles

URL to the spec

whatwg/html#10873

URL to the spec's repository

https://github.com/whatwg/html

Issue Tracker URL

whatwg/html#10862

Explainer URL

whatwg/html#10862

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#1150

WebKit Bugzilla URL

https://bugs.webkit.org/show_bug.cgi?id=285993

Radar URL

No response

Description

The DOM element, like all DOM elements, accepts a lang attribute that is used to define language specific treatment for font selection (when fonts have locale specific glyphs). Browsers respect this attribute. However, when an OffscreenCanvas is created there is no way to set locale information, possibly resulting in a state where an offscreen canvas produces rendered results that differ from the canvas in which it's output is used. This feature adds a lang IDL attribute to CanvasTextDrawingStyles to give developers direct control over the language for the text drawing and metrics.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions