Skip to content

cap-height and x-height #514

@elbaro

Description

@elbaro

Hi, can you consider exposing cap-height and x-height so that users can vertically align the text using those metrics?

            RunMetrics {
                ascent: metrics.ascent,
                descent: -metrics.descent,
                leading: metrics.leading,
                underline_offset,
                underline_size,
                strikethrough_offset,
                strikethrough_size,
                line_height,
            }

For example numbers can vertically align their (baseline + cap_height) / 2.0 as the center
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions