]> granicus.if.org Git - vim/commitdiff
patch 8.1.1009: MS-Windows: some text is not baseline aligned v8.1.1009
authorBram Moolenaar <Bram@vim.org>
Sat, 16 Mar 2019 14:24:42 +0000 (15:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Mar 2019 14:24:42 +0000 (15:24 +0100)
Problem:    MS-Windows: some text is not baseline aligned.
Solution:   Use bottom alignment. (Taro Muraoka, closes #4116, closes #1520)

src/gui_dwrite.cpp
src/version.c

index 8e03dff64e365dfaba7c86479e49e989a0612900..17fa6e798aaf4b635961eb76a9a99021aa4e74c2 100644 (file)
@@ -822,7 +822,7 @@ DWriteContext::CreateTextFormatFromLOGFONT(const LOGFONTW &logFont,
 
     if (SUCCEEDED(hr))
        hr = pTextFormat->SetParagraphAlignment(
-               DWRITE_PARAGRAPH_ALIGNMENT_CENTER);
+               DWRITE_PARAGRAPH_ALIGNMENT_FAR);
 
     if (SUCCEEDED(hr))
        hr = pTextFormat->SetWordWrapping(DWRITE_WORD_WRAPPING_NO_WRAP);
index 2f09e80281da3285932767b2af36ce8d1d95afbe..2c91664f6d642f511c6205bf6e1efb5baeed0197 100644 (file)
@@ -779,6 +779,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1009,
 /**/
     1008,
 /**/