| 773 | } |
| 774 | |
| 775 | void RetinaTrueTypeFont::LoadFont(std::string path) |
| 776 | { |
| 777 | mFontPath = ofToDataPath(path); |
| 778 | File file(mFontPath.c_str()); |
| 779 | if (file.existsAsFile()) |
| 780 | { |
| 781 | mFontHandle = nvgCreateFont(gNanoVG, path.c_str(), path.c_str()); |
| 782 | mFontBoundsHandle = nvgCreateFont(gFontBoundsNanoVG, path.c_str(), path.c_str()); |
| 783 | mLoaded = true; |
| 784 | } |
| 785 | else |
| 786 | { |
| 787 | mLoaded = false; |
| 788 | } |
| 789 | } |
| 790 | |
| 791 | void RetinaTrueTypeFont::DrawString(std::string str, float size, float x, float y) |
| 792 | { |
no test coverage detected