3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: src/dfb/fontenum.cpp
|
|
// Purpose: wxFontEnumerator class
|
|
// Author: Vaclav Slavik
|
|
// Created: 2006-08-10
|
|
// Copyright: (c) 2006 REA Elektronik GmbH
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// For compilers that support precompilation, includes "wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifdef __BORLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#include "wx/fontenum.h"
|
|
#include "wx/private/fontmgr.h"
|
|
|
|
#if wxUSE_FONTENUM
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// wxFontEnumerator
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
|
bool fixedWidthOnly)
|
|
{
|
|
// we only support UTF-8 and system (which means "use any"):
|
|
if ( encoding != wxFONTENCODING_SYSTEM && encoding != wxFONTENCODING_UTF8 )
|
|
return false;
|
|
|
|
bool found = false;
|
|
const wxFontBundleList& list = wxFontsManager::Get()->GetBundles();
|
|
|
|
for ( wxFontBundleList::const_iterator f = list.begin(); f != list.end(); ++f )
|
|
{
|
|
if ( fixedWidthOnly && !(*f)->IsFixed() )
|
|
continue;
|
|
|
|
found = true;
|
|
if ( !OnFacename((*f)->GetName()) )
|
|
break; // OnFacename() requests us to stop enumeration
|
|
}
|
|
|
|
return found;
|
|
}
|
|
|
|
bool wxFontEnumerator::EnumerateEncodings(const wxString& facename)
|
|
{
|
|
return EnumerateEncodingsUTF8(facename);
|
|
}
|
|
|
|
#endif // wxUSE_FONTENUM
|