Mercurial > vim
comparison src/gui_dwrite.cpp @ 16007:6d869997a8b7 v8.1.1009
patch 8.1.1009: MS-Windows: some text is not baseline aligned
commit https://github.com/vim/vim/commit/1f271efbbb2004c3e1b90492a3585a6d9ebd7893
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 16 15:24:42 2019 +0100
patch 8.1.1009: MS-Windows: some text is not baseline aligned
Problem: MS-Windows: some text is not baseline aligned.
Solution: Use bottom alignment. (Taro Muraoka, closes https://github.com/vim/vim/issues/4116, closes https://github.com/vim/vim/issues/1520)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Mar 2019 15:30:06 +0100 |
parents | 808625d4b71b |
children | 728bef04b0d4 |
comparison
equal
deleted
inserted
replaced
16006:00dc01180daa | 16007:6d869997a8b7 |
---|---|
820 if (SUCCEEDED(hr)) | 820 if (SUCCEEDED(hr)) |
821 hr = pTextFormat->SetTextAlignment(DWRITE_TEXT_ALIGNMENT_LEADING); | 821 hr = pTextFormat->SetTextAlignment(DWRITE_TEXT_ALIGNMENT_LEADING); |
822 | 822 |
823 if (SUCCEEDED(hr)) | 823 if (SUCCEEDED(hr)) |
824 hr = pTextFormat->SetParagraphAlignment( | 824 hr = pTextFormat->SetParagraphAlignment( |
825 DWRITE_PARAGRAPH_ALIGNMENT_CENTER); | 825 DWRITE_PARAGRAPH_ALIGNMENT_FAR); |
826 | 826 |
827 if (SUCCEEDED(hr)) | 827 if (SUCCEEDED(hr)) |
828 hr = pTextFormat->SetWordWrapping(DWRITE_WORD_WRAPPING_NO_WRAP); | 828 hr = pTextFormat->SetWordWrapping(DWRITE_WORD_WRAPPING_NO_WRAP); |
829 | 829 |
830 SafeRelease(&localizedFamilyNames); | 830 SafeRelease(&localizedFamilyNames); |