mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-01 01:18:52 +00:00
Update font functions
Update font functions Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
@@ -273,6 +273,31 @@ RLCPPAPI inline void DrawTextPro(const Font& font, const std::string& text, Vect
|
||||
::DrawTextPro(font, text.c_str(), position, origin, rotation, fontSize, spacing, tint);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get default font
|
||||
*/
|
||||
RLCPPAPI inline ::Font GetFontDefault() {
|
||||
return ::GetFontDefault();
|
||||
}
|
||||
|
||||
/**
|
||||
* Load font from file (filename must include file extension)
|
||||
*/
|
||||
RLCPPAPI inline ::Font LoadFont(const std::string& fileName) {
|
||||
return ::LoadFont(fileName.c_str());
|
||||
}
|
||||
|
||||
RLCPPAPI inline ::Font LoadFontFromImage(const Image& image, ::Color key, int firstChar) {
|
||||
return ::LoadFontFromImage(image, key, firstChar);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user