Skip to content

Quantize glyph scaling and add glyph diagnostics#473

Merged
emil-e merged 3 commits into
dakra:mainfrom
emil-e:emil-e/integer-glyph-scale-pr
Jun 26, 2026
Merged

Quantize glyph scaling and add glyph diagnostics#473
emil-e merged 3 commits into
dakra:mainfrom
emil-e:emil-e/integer-glyph-scale-pr

Conversation

@emil-e

@emil-e emil-e commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • quantize adjusted glyph :height scales to an integral font pixel size so Emacs cannot round scaled glyphs back over the cell bound
  • include the glyph font pixel size in the metrics cache
  • add ghostel-debug-glyph-at-point to report text properties, font metrics, renderer-consumed metrics, and shaped glyph vectors at point

Verification

  • emacs --batch -Q -L lisp -L test -l ert -l test/ghostel-test-helpers.el -l test/ghostel-glyph-test.el --eval "(ert-run-tests-batch-and-exit 'ghostel-test-glyph-adjust-quantizes-height-scale)"
  • rm -f .build/tests/elisp-ghostel-debug-test.ok && make .build/tests/elisp-ghostel-debug-test.ok

@emil-e
emil-e merged commit b896ddd into dakra:main Jun 26, 2026
22 checks passed
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