diff options
| author | crupest <crupest@outlook.com> | 2020-07-05 23:06:02 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-07-05 23:06:02 +0800 |
| commit | 5c805e494425a88da1813902b1ad8a1ab351e30d (patch) | |
| tree | be3cfd96dcac19db3e256d610d48b5083c489a6c /include/cru/win/graph/direct/Font.hpp | |
| parent | bbec59718bf8a824583869126762013112f8e568 (diff) | |
| download | cru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.gz cru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.bz2 cru-5c805e494425a88da1813902b1ad8a1ab351e30d.zip | |
...
Diffstat (limited to 'include/cru/win/graph/direct/Font.hpp')
| -rw-r--r-- | include/cru/win/graph/direct/Font.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cru/win/graph/direct/Font.hpp b/include/cru/win/graph/direct/Font.hpp index ecf9fd81..2195f3e4 100644 --- a/include/cru/win/graph/direct/Font.hpp +++ b/include/cru/win/graph/direct/Font.hpp @@ -11,7 +11,7 @@ class DWriteFont : public DirectGraphResource, public virtual IFont, public virtual IComResource<IDWriteTextFormat> { public: - DWriteFont(DirectGraphFactory* factory, const std::string_view& font_family, + DWriteFont(DirectGraphFactory* factory, std::u16string font_family, float font_size); CRU_DELETE_COPY(DWriteFont) @@ -27,6 +27,7 @@ class DWriteFont : public DirectGraphResource, float GetFontSize() override; private: + std::u16string font_family_; Microsoft::WRL::ComPtr<IDWriteTextFormat> text_format_; }; } // namespace cru::platform::graph::win::direct |
