1
//--------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2007 Cecilio Salmeron
5
// This program is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software Foundation;
7
// either version 2 of the License, or (at your option) any later version.
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along with this
14
// program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
15
// Fifth Floor, Boston, MA 02110-1301, USA.
17
// For any comment, suggestion or feature request, please contact the manager of
18
// the project at cecilios@users.sourceforge.net
20
//-------------------------------------------------------------------------------------
25
#ifndef __FONTMANAGER_H //to avoid nested includes
26
#define __FONTMANAGER_H
28
// fonts will be maintained in a keyed list structure. Let's declare it
30
WX_DECLARE_LIST(wxFont, FontsList);
39
wxFont* GetFont(int nPointSize,
40
wxString sFontName = _T("LeMus Notas"),
41
int nFamily = wxDEFAULT, //wxDEFAULT, wxDECORATIVE, wxROMAN, wxSCRIPT, wxSWISS, wxMODERN
42
int nStyle = wxNORMAL, //wxNORMAL, wxSLANT or wxITALIC
43
int nWeight = wxNORMAL, //wxNORMAL, wxLIGHT or wxBOLD
44
bool fUnderline = false);
47
FontsList m_cFonts; // list of allocated fonts
51
#endif // __FONTMANAGER_H