MCPcopy Create free account
hub / github.com/arrayfire/forge / Font

Class Font

src/backend/common/font.hpp:22–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20{
21
22class 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected