mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
Added support for text styling in syntax color schemes, you can now: bold, italic, underline, strikethrough and shadow texts.
This commit is contained in:
@@ -952,13 +952,14 @@ void App::init( const std::string& file, const Float& pidelDensity ) {
|
||||
|
||||
mUISceneNode = UISceneNode::New();
|
||||
|
||||
Font* font =
|
||||
FontTrueType* font =
|
||||
FontTrueType::New( "NotoSans-Regular", resPath + "assets/fonts/NotoSans-Regular.ttf" );
|
||||
|
||||
Font* fontMono =
|
||||
FontTrueType* fontMono =
|
||||
FontTrueType::New( "monospace", resPath + "assets/fonts/DejaVuSansMono.ttf" );
|
||||
fontMono->setBoldAdvanceSameAsRegular( true );
|
||||
|
||||
Font* iconFont = FontTrueType::New( "icon", resPath + "assets/fonts/remixicon.ttf" );
|
||||
FontTrueType* iconFont = FontTrueType::New( "icon", resPath + "assets/fonts/remixicon.ttf" );
|
||||
|
||||
SceneManager::instance()->add( mUISceneNode );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user