| 1 | // LAF OS Library |
| 2 | // Copyright (c) 2019-2020 Igara Studio S.A. |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef OS_FONT_MANAGER_H_INCLUDED |
| 8 | #define OS_FONT_MANAGER_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include "os/font_style_set.h" |
| 12 | #include "os/ref.h" |
| 13 | |
| 14 | #include <string> |
| 15 | |
| 16 | namespace os { |
| 17 | |
| 18 | class FontManager : public RefCount { |
| 19 | protected: |
| 20 | virtual ~FontManager() { } |
| 21 | public: |
| 22 | virtual int countFamilies() const = 0; |
| 23 | virtual std::string familyName(int index) const = 0; |
| 24 | virtual Ref<FontStyleSet> familyStyleSet(int index) const = 0; |
| 25 | virtual Ref<FontStyleSet> matchFamily(const std::string& familyName) const = 0; |
| 26 | }; |
| 27 | |
| 28 | } // namespace os |
| 29 | |
| 30 | #endif |
| 31 | |