From eebec8297a8538c40518ceee043edfc41e3b1343 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 4 Sep 2018 20:24:07 +0800 Subject: ... --- CruUI/graph/graph.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CruUI/graph/graph.h') diff --git a/CruUI/graph/graph.h b/CruUI/graph/graph.h index b221115a..bb1de716 100644 --- a/CruUI/graph/graph.h +++ b/CruUI/graph/graph.h @@ -112,6 +112,11 @@ namespace cru //Reload system metrics including desktop dpi. void ReloadSystemMetrics(); + Microsoft::WRL::ComPtr GetSystemFontCollection() const + { + return dwrite_system_font_collection_.Get(); + } + private: Microsoft::WRL::ComPtr d3d11_device_; Microsoft::WRL::ComPtr d3d11_device_context_; @@ -119,7 +124,9 @@ namespace cru Microsoft::WRL::ComPtr d2d1_device_; Microsoft::WRL::ComPtr d2d1_device_context_; Microsoft::WRL::ComPtr dxgi_factory_; + Microsoft::WRL::ComPtr dwrite_factory_; + Microsoft::WRL::ComPtr dwrite_system_font_collection_; }; int DipToPixelX(float dip_x); -- cgit v1.2.3