[REMOVE] Remove Source Code Pro font (forgotten file)

This commit is contained in:
Don Ho 2015-08-13 02:26:46 +02:00
parent 7198ac7458
commit f6aae43fb2

View File

@ -56,11 +56,6 @@ enum tb_stat {tb_saved, tb_unsaved, tb_ro};
#define NPP_INTERNAL_FUCTION_STR TEXT("Notepad++::InternalFunction") #define NPP_INTERNAL_FUCTION_STR TEXT("Notepad++::InternalFunction")
#define SOURCECODEPRO_FONT TEXT("SourceCodePro-Regular.ttf")
#define SOURCECODEPRO_I_FONT TEXT("SourceCodePro-It.ttf")
#define SOURCECODEPRO_B_FONT TEXT("SourceCodePro-Bold.ttf")
#define SOURCECODEPRO_IB_FONT TEXT("SourceCodePro-BoldIt.ttf")
int docTabIconIDs[] = {IDI_SAVED_ICON, IDI_UNSAVED_ICON, IDI_READONLY_ICON}; int docTabIconIDs[] = {IDI_SAVED_ICON, IDI_UNSAVED_ICON, IDI_READONLY_ICON};
ToolBarButtonUnit toolBarIcons[] = { ToolBarButtonUnit toolBarIcons[] = {
@ -197,10 +192,6 @@ Notepad_plus::~Notepad_plus()
delete _pProjectPanel_3; delete _pProjectPanel_3;
delete _pDocMap; delete _pDocMap;
delete _pFuncList; delete _pFuncList;
::RemoveFontResourceEx(SOURCECODEPRO_FONT, FR_PRIVATE, 0);
::RemoveFontResourceEx(SOURCECODEPRO_I_FONT, FR_PRIVATE, 0);
::RemoveFontResourceEx(SOURCECODEPRO_B_FONT, FR_PRIVATE, 0);
::RemoveFontResourceEx(SOURCECODEPRO_IB_FONT, FR_PRIVATE, 0);
} }
LRESULT Notepad_plus::init(HWND hwnd) LRESULT Notepad_plus::init(HWND hwnd)
@ -208,12 +199,6 @@ LRESULT Notepad_plus::init(HWND hwnd)
NppParameters *pNppParam = NppParameters::getInstance(); NppParameters *pNppParam = NppParameters::getInstance();
NppGUI & nppGUI = (NppGUI &)pNppParam->getNppGUI(); NppGUI & nppGUI = (NppGUI &)pNppParam->getNppGUI();
// Add Main font
::AddFontResourceEx(SOURCECODEPRO_FONT, FR_PRIVATE, 0);
::AddFontResourceEx(SOURCECODEPRO_I_FONT, FR_PRIVATE, 0);
::AddFontResourceEx(SOURCECODEPRO_B_FONT, FR_PRIVATE, 0);
::AddFontResourceEx(SOURCECODEPRO_IB_FONT, FR_PRIVATE, 0);
// Menu // Menu
_mainMenuHandle = ::GetMenu(hwnd); _mainMenuHandle = ::GetMenu(hwnd);
int langPos2BeRemoved = MENUINDEX_LANGUAGE+1; int langPos2BeRemoved = MENUINDEX_LANGUAGE+1;