change the resources manager system
This commit is contained in:
parent
cd3968dd20
commit
f51ea408fa
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include <etk/Types.h>
|
#include <etk/Types.h>
|
||||||
#include <ewol/widget/WidgetScrolled.h>
|
#include <ewol/widget/WidgetScrolled.h>
|
||||||
#include <ewol/font/FontManager.h>
|
#include <ewol/ResourceManager.h>
|
||||||
|
|
||||||
class CodeView :public ewol::WidgetScrooled
|
class CodeView :public ewol::WidgetScrooled
|
||||||
{
|
{
|
||||||
|
@ -149,10 +149,10 @@ MainWindows::MainWindows(void)
|
|||||||
myCodeView->SetFillX(true);
|
myCodeView->SetFillX(true);
|
||||||
myCodeView->SetFillY(true);
|
myCodeView->SetFillY(true);
|
||||||
myCodeView->SetFontSize(11);
|
myCodeView->SetFontSize(11);
|
||||||
myCodeView->SetFontNameNormal( "freefont/FreeMono.ttf");
|
myCodeView->SetFontNameNormal( "Font/freefont/FreeMono.ttf");
|
||||||
myCodeView->SetFontNameBold( "freefont/FreeMonoBold.ttf");
|
myCodeView->SetFontNameBold( "Font/freefont/FreeMonoBold.ttf");
|
||||||
myCodeView->SetFontNameItalic( "freefont/FreeMonoOblique.ttf");
|
myCodeView->SetFontNameItalic( "Font/freefont/FreeMonoOblique.ttf");
|
||||||
myCodeView->SetFontNameBoldItalic("freefont/FreeMonoBoldOblique.ttf");
|
myCodeView->SetFontNameBoldItalic("Font/freefont/FreeMonoBoldOblique.ttf");
|
||||||
mySizerVert2->SubWidgetAdd(myCodeView);
|
mySizerVert2->SubWidgetAdd(myCodeView);
|
||||||
|
|
||||||
// search area :
|
// search area :
|
||||||
|
@ -67,8 +67,7 @@ void APP_Init(void)
|
|||||||
ewol::ChangeSize(Vector2D<int32_t>(800, 600));
|
ewol::ChangeSize(Vector2D<int32_t>(800, 600));
|
||||||
etk::InitDefaultFolder(PROJECT_NAME);
|
etk::InitDefaultFolder(PROJECT_NAME);
|
||||||
|
|
||||||
ewol::font::SetFontFolder("Font");
|
ewol::font::SetDefaultFont("Font/freefont/FreeSerif.ttf");
|
||||||
ewol::font::SetDefaultFont("freefont/FreeSerif.ttf");
|
|
||||||
#ifdef __TARGET_OS__Android
|
#ifdef __TARGET_OS__Android
|
||||||
ewol::font::SetDefaultSize(19);
|
ewol::font::SetDefaultSize(19);
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user