aboutsummaryrefslogtreecommitdiff
path: root/src/win/graphics/direct/Font.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-12 23:19:04 +0800
committercrupest <crupest@outlook.com>2022-03-12 23:19:04 +0800
commitaf09e7b0cd9cb7ed2e1317bf9f2e328fdb33c091 (patch)
tree711453ede3c308401c11fce354af81800fd1ee9f /src/win/graphics/direct/Font.cpp
parent8d7937aaddd121742df8000b25160ab5c3d12caa (diff)
downloadcru-af09e7b0cd9cb7ed2e1317bf9f2e328fdb33c091.tar.gz
cru-af09e7b0cd9cb7ed2e1317bf9f2e328fdb33c091.tar.bz2
cru-af09e7b0cd9cb7ed2e1317bf9f2e328fdb33c091.zip
...
Diffstat (limited to 'src/win/graphics/direct/Font.cpp')
-rw-r--r--src/win/graphics/direct/Font.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/win/graphics/direct/Font.cpp b/src/win/graphics/direct/Font.cpp
index f6ec4d5a..9e493948 100644
--- a/src/win/graphics/direct/Font.cpp
+++ b/src/win/graphics/direct/Font.cpp
@@ -28,5 +28,7 @@ DWriteFont::DWriteFont(DirectGraphicsFactory* factory, String font_family,
text_format_->SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_NEAR));
}
+String DWriteFont::GetFontName() { return font_family_; }
+
float DWriteFont::GetFontSize() { return text_format_->GetFontSize(); }
} // namespace cru::platform::graphics::win::direct