* Loads a font from a given file. * * @throws raylib::RaylibException Throws if the given font failed to initialize. */
| 105 | * @throws raylib::RaylibException Throws if the given font failed to initialize. |
| 106 | */ |
| 107 | void Load(const std::string& fileName) { |
| 108 | set(::LoadFont(fileName.c_str())); |
| 109 | if (!IsValid()) { |
| 110 | throw RaylibException("Failed to load Font with from file: " + fileName); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Loads a font from a given file with generation parameters. |
nothing calls this directly
no test coverage detected