GramEditor/gram
38
985
Fork
You've already forked gram
88

Make UI and Buffer Font match. #69

Merged
krig merged 1 commit from voidedgin/gram:ui-buffer-font-match into main 2026年03月08日 12:44:44 +01:00
Contributor
Copy link

I got annoyed that the buffer and font size wouldn't line up.

The "Default" text size for calculating 1 rem is set in code as 16p(t/x), however, in the UI the default text size is 14p(t/x).

This makes it so that adjusting the font size for the buffer or ui feels like a game of whack-a-mole.

It is not intuitive so I've updated the text sizes to match the buffer font size better. Now most elements are 1rem. Making it easier to understand the relationship between UI Font Size and what is actually displayed in most UI elements

fixes: #68

I got annoyed that the buffer and font size wouldn't line up. The "Default" text size for calculating 1 rem is set in code as 16p(t/x), however, in the UI the default text size is 14p(t/x). This makes it so that adjusting the font size for the buffer or ui feels like a game of whack-a-mole. It is not intuitive so I've updated the text sizes to match the buffer font size better. Now most elements are 1rem. Making it easier to understand the relationship between UI Font Size and what is actually displayed in most UI elements fixes: https://codeberg.org/GramEditor/gram/issues/68
Make UI and Buffer Font match.
Some checks are pending
Build and test / test-amd64 (pull_request) Blocked by required conditions
70cec5a3de
I got annoyed that the buffer and font size wouldn't line up.
Owner
Copy link

Awesome, thank you :)

Awesome, thank you :)
voidedgin deleted branch ui-buffer-font-match 2026年03月08日 13:00:16 +01:00
Some checks are pending
Build and test / test-amd64 (pull_request) Blocked by required conditions
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram!69
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "voidedgin/gram:ui-buffer-font-match"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?