diff options
author | crupest <crupest@outlook.com> | 2022-03-12 23:19:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-12 23:19:04 +0800 |
commit | af09e7b0cd9cb7ed2e1317bf9f2e328fdb33c091 (patch) | |
tree | 711453ede3c308401c11fce354af81800fd1ee9f /src/win/graphics/direct/Font.cpp | |
parent | 8d7937aaddd121742df8000b25160ab5c3d12caa (diff) | |
download | cru-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.cpp | 2 |
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 |