W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2011

[Bug 11342] TextMetrics should include distance from textBaseline to each of the baselines in the text

From: <bugzilla@jessica.w3.org>
Date: Thu, 03 Feb 2011 22:20:10 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Pl7X8-0000YY-Lg@jessica.w3.org>

--- Comment #8 from Charles Pritchard <chuck@jumis.com> 2011-02-03 22:20:10 UTC ---
(In reply to comment #7)
> Aah, so basically you need the distance from the current textBaseline to each
> of the possible baselines, for a particular span of text.
> Hmm.
> That's actually somewhat non-trivial to define, since a single string can have
> multiple distances for each baseline (that's why we need to provide a way to
> align to each baseline to start with).

You've got it.

When you say "non-trivial to define", are you referring to defining it in the
specs, or are you talking about actual implementation?

As for the specs, I think it's self-contained. It'd return the calculated
baseline for the content passed through measureText given the current

For implementation, you're absolutely correct: a single string may rely upon
multiple fonts; especially a multilingual string. I'm all-but-certain, though,
that those cases are handled by underlying font layout engines.

If the font engine is inaccurate/strange, that's perfectly fine... we don't
need to define what "bottom" means in the spec, merely that the measureText
baseline attribute returns whatever the font engine has calculated.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 3 February 2011 22:20:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:40 UTC