diff --git a/include/Functions.hpp b/include/Functions.hpp index 63ae37b1..7ae95302 100644 --- a/include/Functions.hpp +++ b/include/Functions.hpp @@ -273,6 +273,20 @@ RLCPPAPI inline void DrawTextPro(const Font& font, const std::string& text, Vect ::DrawTextPro(font, text.c_str(), position, origin, rotation, fontSize, spacing, tint); } +/** + * Load font from file (filename must include file extension) + */ +RLCPPAPI inline ::Font LoadFont(const std::string& fileName) { + return ::LoadFont(fileName.c_str()); +} + +/** + * Load font from file (filename must include file extension) + */ +RLCPPAPI inline ::Font LoadFontEx(const std::string& fileName, int fontSize, int *fontChars, int charsCount) { + return ::LoadFontEx(fileName.c_str(), fontSize, fontChars, charsCount); +} + /** * Measure string width for default font */