Skip to content

placement support#1554

Merged
raphamorim merged 1 commit into
glyph-protocol-specfrom
glyph-protocol-spec-placements
May 1, 2026
Merged

placement support#1554
raphamorim merged 1 commit into
glyph-protocol-specfrom
glyph-protocol-spec-placements

Conversation

@raphamorim
Copy link
Copy Markdown
Owner

@raphamorim raphamorim commented Apr 23, 2026

adds few parameters:

  • aw — authored advance width, in upm units. The intended
    horizontal extent of the glyph, NOT the outline's bounding box.
    Optional; default upm.
  • lh — authored line height, in upm units. The intended vertical
    extent (descender-to-ascender), NOT the outline's bounding box.
    Optional; default upm.
  • width — the codepoint's Unicode width, in the wcwidth /
    UAX 11 sense. One of 1 (narrow) or 2 (wide). Optional;
    default 1. Authoritative for all terminal layout decisions
    (cursor advance, wrapping, selection geometry), overriding the
    codepoint's UAX 11 East Asian Width (all PUA ranges are
    Ambiguous by default).
  • size — scale policy. One of height, advance, contain,
    cover, stretch. Optional; default height.
  • align — placement of the scaled outline within the render span,
    as a comma-separated pair <h>,<v>. <h> is one of start,
    center, end; <v> is one of start, center, end,
    baseline. Optional; default center,center.
  • pad — insets from the render span edges, as comma-separated
    fractions <top>,<right>,<bottom>,<left> (each 0.01.0;
    top/bottom are fractions of cell height, left/right of render
    span width). Optional; default 0,0,0,0.

@raphamorim raphamorim merged commit 2977206 into glyph-protocol-spec May 1, 2026
@raphamorim raphamorim deleted the glyph-protocol-spec-placements branch May 1, 2026 17:30
raphamorim added a commit that referenced this pull request May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant