21#include <wx/fontenum.h>
29 int nChoices, wxString* aChoices,
int aStyle ) :
30 wxChoice( aParent, aId, aPosition, aSize, nChoices, aChoices, aStyle )
34 std::vector<std::string> fontNames;
37 wxArrayString menuList;
47 Append(
_(
"Default Font" ) );
52 for(
const std::string&
name : fontNames )
53 menuList.Add( wxString(
name ) );
75 SetStringSelection( aFont->
GetName() );
77 if( GetSelection() == wxNOT_FOUND )
80 SetSelection( GetCount() );
84 SendSelectionChangedEvent( wxEVT_CHOICE );
90 int sel = GetSelection();
104 if( GetSelection() <= 0 )
bool HaveFontSelection() const
FONT_CHOICE(wxWindow *aParent, int aId, wxPoint aPosition, wxSize aSize, int nChoices, wxString *aChoices, int aStyle)
void SetFontSelection(KIFONT::FONT *aFont)
KIFONT::FONT * GetFontSelection(bool aBold, bool aItalic) const
FONT is an abstract base class for both outline and stroke fonts.
static FONT * GetFont(const wxString &aFontName=wxEmptyString, bool aBold=false, bool aItalic=false)
const wxString & GetName() const
FONTCONFIG * Fontconfig()