mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 10:21:55 +01:00
* forgot to remove my log-messages (sorry)
This commit is contained in:
parent
f354a915d7
commit
0cb02386ee
@ -207,7 +207,6 @@ void FreeTypeGX::setDefaultMode() {
|
||||
* @param pointSize The desired point size this wrapper's configured font face.
|
||||
* @param cacheAll Optional flag to specify if all font characters should be cached when the class object is created. If specified as false the characters only become cached the first time they are used. If not specified default value is false.
|
||||
*/
|
||||
#include <unistd.h>
|
||||
uint16_t FreeTypeGX::loadFont(char* fontPath, uint8_t* fontBuffer, FT_Long bufferSize, FT_UInt pointSize, bool cacheAll) {
|
||||
this->unloadFont();
|
||||
this->ftPointSize = pointSize;
|
||||
|
@ -120,22 +120,10 @@ main(int argc, char *argv[])
|
||||
|
||||
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
|
||||
WPAD_SetVRes(WPAD_CHAN_ALL, screenwidth, screenheight);
|
||||
printf("\n\n load Font\n");
|
||||
|
||||
fontSystem = new FreeTypeGX();
|
||||
char *fontPath=0;
|
||||
asprintf(&fontPath, "%sfont.ttf", CFG.theme_path);
|
||||
printf(" from: %s\n", fontPath);
|
||||
printf(" 5\n");
|
||||
sleep(1);
|
||||
printf(" 4\n");
|
||||
sleep(1);
|
||||
printf(" 3\n");
|
||||
sleep(1);
|
||||
printf(" 2\n");
|
||||
sleep(1);
|
||||
printf(" 1\n");
|
||||
sleep(1);
|
||||
printf(" 0\n");
|
||||
fontSystem->loadFont(fontPath, font_ttf, font_ttf_size, 0);
|
||||
fontSystem->setCompatibilityMode(FTGX_COMPATIBILITY_DEFAULT_TEVOP_GX_PASSCLR | FTGX_COMPATIBILITY_DEFAULT_VTXDESC_GX_NONE);
|
||||
free(fontPath);
|
||||
|
Loading…
Reference in New Issue
Block a user