- save
This commit is contained in:
parent
ac22ea5e75
commit
a27c62f062
49 changed files with 1171 additions and 385 deletions
|
|
@ -4,23 +4,23 @@
|
|||
|
||||
#include "Fonts.h"
|
||||
|
||||
VenoFonts* VenoFonts::instance = new VenoFonts ();
|
||||
VenoFonts* VenoFonts::instance = new VenoFonts();
|
||||
|
||||
Font* VenoFonts::getNormal ()
|
||||
{
|
||||
return getInstance ()->arvo;
|
||||
return getInstance()->arvo;
|
||||
}
|
||||
|
||||
Font* VenoFonts::getLCD ()
|
||||
{
|
||||
return getInstance ()->lcdFont;
|
||||
return getInstance()->lcdFont;
|
||||
}
|
||||
|
||||
VenoFonts* VenoFonts::getInstance ()
|
||||
{
|
||||
if (instance == nullptr)
|
||||
{
|
||||
instance = new VenoFonts ();
|
||||
instance = new VenoFonts();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
|
@ -33,10 +33,10 @@ void VenoFonts::destroyAll ()
|
|||
|
||||
VenoFonts::VenoFonts ()
|
||||
{
|
||||
arvo = new Font (Typeface::createSystemTypefaceFor (BinaryData::arvo_ttf,
|
||||
BinaryData::arvo_ttfSize));
|
||||
lcdFont = new Font (Typeface::createSystemTypefaceFor (BinaryData::lcd_ttf,
|
||||
BinaryData::lcd_ttfSize));
|
||||
arvo = new Font(Typeface::createSystemTypefaceFor(BinaryData::arvo_ttf,
|
||||
BinaryData::arvo_ttfSize));
|
||||
lcdFont = new Font(Typeface::createSystemTypefaceFor(BinaryData::lcd_ttf,
|
||||
BinaryData::lcd_ttfSize));
|
||||
}
|
||||
|
||||
VenoFonts::~VenoFonts ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue