| 20 | { |
| 21 | |
| 22 | class Font { |
| 23 | private: |
| 24 | std::shared_ptr<detail::font_impl> mFont; |
| 25 | |
| 26 | public: |
| 27 | Font() : mFont(std::make_shared<detail::font_impl>()) {} |
| 28 | |
| 29 | Font(const fg_font pOther) { |
| 30 | mFont = reinterpret_cast<Font*>(pOther)->impl(); |
| 31 | } |
| 32 | |
| 33 | const std::shared_ptr<detail::font_impl>& impl() const { |
| 34 | return mFont; |
| 35 | } |
| 36 | |
| 37 | inline void setOthro2D(int pWidth, int pHeight) { |
| 38 | mFont->setOthro2D(pWidth, pHeight); |
| 39 | } |
| 40 | |
| 41 | inline void loadFont(const char* const pFile) { |
| 42 | mFont->loadFont(pFile); |
| 43 | } |
| 44 | |
| 45 | inline void loadSystemFont(const char* const pName) { |
| 46 | mFont->loadSystemFont(pName); |
| 47 | } |
| 48 | }; |
| 49 | |
| 50 | } |
| 51 | } |
nothing calls this directly
no outgoing calls
no test coverage detected