Skip to content

viewer: a combining mark that no font draws with its base shows as an empty box #439

Closed

Description

@ElbertePlinio

With host font fallback (#421), the viewer picks one font for a whole grapheme cluster. When no loaded font draws both the base and its combining mark, the cluster takes the base character's font, and the mark draws as that font's empty box (glyph 0).

Seen in QA for #421 with ideographs each followed by U+1AB0. A host font draws U+1AB0 alone, so displayable keeps it, but no installed face draws it together with an ideograph. Every mark shows as a box after its ideograph.

Real text rarely pairs these, but the banner shows an agent's message, so the result should never be a box.

  • When no font draws the whole cluster, draw the mark with its own font, or drop it the way an undrawable character becomes the ellipsis
  • Test a cluster that no single host font covers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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