| 34 | { |
| 35 | public: |
| 36 | static FontTest* create(std::string_view fontFile) |
| 37 | { |
| 38 | auto ret = new FontTest; |
| 39 | if (ret->init()) |
| 40 | { |
| 41 | ret->showFont(fontFile); |
| 42 | ret->autorelease(); |
| 43 | } |
| 44 | else |
| 45 | { |
| 46 | delete ret; |
| 47 | ret = nullptr; |
| 48 | } |
| 49 | |
| 50 | return ret; |
| 51 | } |
| 52 | |
| 53 | void showFont(std::string_view fontFile); |
| 54 |
nothing calls this directly
no test coverage detected