aboutsummaryrefslogtreecommitdiff
path: root/src/win/graph/direct/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/win/graph/direct/font.cpp')
-rw-r--r--src/win/graph/direct/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win/graph/direct/font.cpp b/src/win/graph/direct/font.cpp
index 9b5eb477..6d50fafe 100644
--- a/src/win/graph/direct/font.cpp
+++ b/src/win/graph/direct/font.cpp
@@ -24,9 +24,9 @@ DWriteFont::DWriteFont(DirectGraphFactory* factory,
wff.data(), nullptr, DWRITE_FONT_WEIGHT_NORMAL, DWRITE_FONT_STYLE_NORMAL,
DWRITE_FONT_STRETCH_NORMAL, font_size, buffer.data(), &text_format_));
- ThrowIfFailed(text_format_->SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER));
+ ThrowIfFailed(text_format_->SetTextAlignment(DWRITE_TEXT_ALIGNMENT_LEADING));
ThrowIfFailed(
- text_format_->SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER));
+ text_format_->SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_NEAR));
}
float DWriteFont::GetFontSize() { return text_format_->GetFontSize(); }