Skip to content

Finding the in-game grid bounding box #26

Open

Description

@hmdunce

Problem

A character (like U+2588 FULL BLOCK █) that uses the full glyph height will overflow the actual in-game character grid. For existing glyphs, this is not a bug.

However, when adding new glyphs, it is useful to understand the "real" bounding box that you're working with, so you can size and position the glyph accordingly.

Context

One way to solve this could be adding a "reference bbox" glyph somewhere. Alternatively the bbox (in font units) could just be written down somewhere.

I would like to compute bbox as accurately as possible (in font units) but I am not sure how to do this yet. It should be fairly easy to give a rough (but useful enough) approximation, though.

Activity

  1. added
    needs triage
    on Feb 7, 2026
  2. removed
    needs triage
    on Feb 7, 2026
  3. seanmakesgames commented on Feb 7, 2026

    @seanmakesgames
    Member

    yeah- this info will have to stay in-sync with the game's decision, but that is not currently on the docket for changing so capturing whatever it is somehow in this repo is a great plan.

  4. kaj-se commented on Feb 14, 2026

    @kaj-se
    Contributor

    A possible solution could be this:

  5. hmdunce commented on Feb 15, 2026

    @hmdunce
    ContributorAuthor

    Yeah that looks great -- this issue is about finding where those guide lines should go.

    Do you already know a good enough answer? 😄

    I have some related experiments, but didn't actually write down an answer yet.

  6. kaj-se commented on Feb 16, 2026

    @kaj-se
    Contributor
    Image

    If you look closely, you can see that the lower part of the FULL BLOCK character █ (U+2588) fits, but the upper part is slightly too high. Correting this would give you the possitions for the guide lines.

    I can include this in the pull request

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