]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.2125: MS-Windows: DirectX rendering can be improved v9.1.2125
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sat, 31 Jan 2026 16:23:28 +0000 (16:23 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 31 Jan 2026 16:23:28 +0000 (16:23 +0000)
commitb39b065d6fde5f214feebab882b8ebba78945035
tree4c321e49703d59eedd1d134a9a6488076e782219
parent01956225bc6f025d44419ddcad8176a3b12b3d7b
patch 9.1.2125: MS-Windows: DirectX rendering can be improved

Problem:  MS-Windows: DirectX rendering can be improved
Solution: Use lpDx advance, fix vertical text shift and correct
          font-size calculations (Yasuhiro Matsumoto).

This changes DirectWrite rendering to:
- Respect lpDx-provided advance widths instead of always adjusting to
  cell width.
- Use a fixed baseline derived from cell geometry to prevent vertical
  shifts when font fallback occurs (e.g. with CJK characters).
- Correctly convert LOGFONT lfHeight to DirectWrite font size using font
  metrics for closer GDI compatibility.

closes: #19254

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_dwrite.cpp
src/version.c