Skip to content

TextMetrics baselines may not be compatible with internally-used browser metrics #4033

Open
@litherum

Description

@litherum

https://html.spec.whatwg.org/multipage/canvas.html#dom-textmetrics-getbaselines

In WebKit, we synthesize these baselines. I don't think it's clear about whether or not synthesized values should be present in the dictionary (or non-null, if we use that mechanism).

Is this API meant to be compatible with text that the browser draws? Or is it meant to be a faithful as possible to the font file?

Or, are we required to stop synthesizing these baselines in order to implement this API? (Thus potentially changing how the entire Web looks for some users)

If it's meant to be compatible with the text that the browser draws, should baselines present in the font but unused by the browser be present?

@domenic @kojiishi @jfkthame

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