[vim/vim] Fix DirectX baseline calculation using font metrics (PR #19318)

3 views
Skip to first unread message

mattn

unread,
Feb 3, 2026, 1:51:32 AM (yesterday) Feb 3
to vim/vim, Subscribed

Use pre-calculated font ascent from font metrics instead of fixed formula (h * 0.83) to calculate text baseline. This prevents vertical text shift when font fallback occurs with CJK characters.

#19304 (comment)


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19318

Commit Summary

  • 5b6d169 Fix DirectX baseline calculation using font metrics

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19318@github.com>

mattn

unread,
Feb 3, 2026, 2:16:05 AM (yesterday) Feb 3
to vim/vim, Push

@mattn pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19318/before/5b6d169248f80e7c76fc32b793b7a66852852b8c/after/b4e784e199f2dc08aa0ea1ca04dc64c66e4dbb1d@github.com>

Reply all
Reply to author
Forward
0 new messages