driver/fontrenderer: let RenderString() and getRenderWidth() default to UTF8

Origin commit data
------------------
Branch: ni/coolstream
Commit: bec2e87412
Author: martii <m4rtii@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-06-11 10:26:26 +02:00
committed by vanhofen
parent 80f6dde551
commit 68b7a1e86c
3 changed files with 7 additions and 7 deletions

View File

@@ -71,11 +71,11 @@ class Font
FULLBG = 2
};
void RenderString(int x, int y, const int width, const char * text, const fb_pixel_t color, const int boxheight = 0, const unsigned int flags = 0);
void RenderString(int x, int y, const int width, const std::string & text, const fb_pixel_t color, const int boxheight = 0, const unsigned int flags = 0);
void RenderString(int x, int y, const int width, const char * text, const fb_pixel_t color, const int boxheight = 0, const unsigned int flags = IS_UTF8);
void RenderString(int x, int y, const int width, const std::string & text, const fb_pixel_t color, const int boxheight = 0, const unsigned int flags = IS_UTF8);
int getRenderWidth(const char * text, const bool utf8_encoded = false);
int getRenderWidth(const std::string & text, const bool utf8_encoded = false);
int getRenderWidth(const char * text, const bool utf8_encoded = true);
int getRenderWidth(const std::string & text, const bool utf8_encoded = true);
int getHeight(void);
int getDigitHeight(void);
int getMaxDigitWidth(void);