Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions include/Functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down