From f6aae43fb210bba939829215d3cfda63b809d8f6 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 13 Aug 2015 02:26:46 +0200 Subject: [PATCH] [REMOVE] Remove Source Code Pro font (forgotten file) --- PowerEditor/src/Notepad_plus.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 89b9aedbc..4bbfba7bd 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -56,11 +56,6 @@ enum tb_stat {tb_saved, tb_unsaved, tb_ro}; #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}; ToolBarButtonUnit toolBarIcons[] = { @@ -197,10 +192,6 @@ Notepad_plus::~Notepad_plus() delete _pProjectPanel_3; delete _pDocMap; 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) @@ -208,12 +199,6 @@ LRESULT Notepad_plus::init(HWND hwnd) NppParameters *pNppParam = NppParameters::getInstance(); 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 _mainMenuHandle = ::GetMenu(hwnd); int langPos2BeRemoved = MENUINDEX_LANGUAGE+1;