// Author: Vaclav Slavik
// Created: 2001/04/29
// RCS-ID: $Id$
-// Copyright: (c) 2001, Vaclav Slavik
+// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
wxMGLFontLibrary *wxFontsManager::GetFontLibrary(wxFont *font)
{
wxMGLFontFamily *family;
- wxString facename;
int type;
+ wxString facename = font->GetFaceName();
- if ( facename )
- family = GetFamily(font->GetFaceName());
+ if ( !facename.IsEmpty() )
+ family = GetFamily(facename);
else
family = NULL;
- if ( family )
- facename = font->GetFaceName();
- else
- facename.Empty();
-
+
if ( !family )
{
+ facename.Empty();
switch (font->GetFamily())
{
case wxSCRIPT: