KEMBAR78
[css-text][css-fonts] Optical bounds of a line · Issue #5466 · w3c/csswg-drafts · GitHub
Skip to content

[css-text][css-fonts] Optical bounds of a line #5466

@fantasai

Description

@fantasai

@SashimiEthan forwarded a question about getting visual alignment at the start/end of the line see testcase and diagram:
side-bearing:

Turns out there's an OpenType feature for this (at least, in horizontal text), which is expected to be on by default. Should we note this in the spec or something?

https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#tag-opbd

This feature should be active by default. It effectively changes the line length, so justification algorithms should account for this adjustment.

If we want control over it, I'd suggest adding to the font-kerning property: it's effectively kerning with respect to the start/end edge.

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