ultimatepp/uppsrc/plugin/DroidFonts/DroidFonts.cpp
cxl 7710948f88 uppsrc: .icpp files replaced by INITIALIZE/INITIALIZER
git-svn-id: svn://ultimatepp.org/upp/trunk@10424 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-11-13 09:24:24 +00:00

17 lines
738 B
C++

#include <plugin/FT_fontsys/FT_fontsys.h>
#include "DroidFonts.brc"
namespace Upp {
INITIALIZER(DroidFonts) {
SetMemoryFont(Font::SANSSERIF, Font_DroidSans, Font_DroidSans_length);
SetMemoryFont(Font::SANSSERIF, Font_DroidSans_Bold, Font_DroidSans_Bold_length, FtBOLD);
SetMemoryFont(Font::SERIF, Font_DroidSerif, Font_DroidSerif_length);
SetMemoryFont(Font::SERIF, Font_DroidSerif_Bold, Font_DroidSerif_Bold_length, FtBOLD);
SetMemoryFont(Font::SERIF, Font_DroidSerif_Italic, Font_DroidSerif_Italic_length, FtITALIC);
SetMemoryFont(Font::SERIF, Font_DroidSerif_BoldItalic, Font_DroidSerif_BoldItalic_length, FtBOLD|FtITALIC);
SetMemoryFont(Font::MONOSPACE, Font_DroidSansMono, Font_DroidSansMono_length);
}
}