Travis Leithead

Results 108 comments of Travis Leithead
trafficstars

If CSS provides a property to configure/control this selection of b&w or colour glyphs (`font-variant-alternates`?) then this should be covered in the FormattedText data model. If not, then I would...

For the most part, we can't identify too many scenarios where scraping the applied styles actually matter when you have full metrics information. One use case not handled is feature-detection...

With the addition of a `FormattedTextStyle` object that parses CSS, presumably only for this scenario, we could have non-relevant CSS dropped at parsing time allowing introspection of the results to...

Yes, that makes sense to me. It could also be interesting to expose a boolean line metric flag that would be true when the particular line intersects with or is...

PR https://github.com/WICG/canvas-formatted-text/pull/39 includes lang metadata as recommended for string annotations in the link you provided. For 'dir', I'm confident that relying on CSS `direction` will fill that need without a...

#39 has landed. I think we are covered from the dir/lang side of things.

@aphillips thanks so much for the review and your comments. I'm looking forward to making these explainers so much better as a result. Sounds like an example would be good...

In #39, I borrowed heavily from the `FormattedTextStyle` concept here, except that I did not use it as an opportunity to re-describe text properties. It should serve the benefit of...

#46 will wholly support this scenario; I don't believe we'll need a separate feature for inline-block spacers. :)

#46 did not end up addressing this--it was decided not to add too much complexity to that PR, so this inline-block proposal still remains to be added to the spec.