add hd51; mostly ported from TangoCash's neutrino-mp

Origin commit data
------------------
Commit: 09ae4c3a51
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-05 (Thu, 05 Oct 2017)

Origin message was:
------------------
- add hd51; mostly ported from TangoCash's neutrino-mp
This commit is contained in:
vanhofen
2017-10-05 12:52:53 +02:00
parent 384333992b
commit 7fcd8dea4c
27 changed files with 1948 additions and 247 deletions

View File

@@ -73,7 +73,7 @@ void LcdFontRenderClass::InitFontCache()
{
printf("[LCDFONT] Intializing font cache...");
fflush(stdout);
if (FTC_Manager_New(library, 0, 0, 0, myFTC_Face_Requester, this, &cacheManager))
if (FTC_Manager_New(library, 3, 0, 0, myFTC_Face_Requester, this, &cacheManager))
{
printf(" manager failed!\n");
return;
@@ -321,11 +321,6 @@ void LcdFont::RenderString(int x, int y, const int width, const char * text, con
pthread_mutex_unlock(&renderer->render_mutex);
}
int LcdFont::getRenderWidth(const std::string &text, const bool utf8_encoded)
{
return getRenderWidth(text.c_str(), utf8_encoded);
};
int LcdFont::getRenderWidth(const char * text, const bool utf8_encoded)
{
pthread_mutex_lock(&renderer->render_mutex);