X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..c27bcbd5a7cec9f03b15c69824da99c5bb75924a:/include/wx/mgl/fontutil.h diff --git a/include/wx/mgl/fontutil.h b/include/wx/mgl/fontutil.h index afa1a5a1b5..dd286a712c 100644 --- a/include/wx/mgl/fontutil.h +++ b/include/wx/mgl/fontutil.h @@ -1,18 +1,16 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/nix/fontutil.h +// Name: wx/mgl/fontutil.h // Purpose: font-related helper functions for MGL // Author: Vaclav Slavik // Created: 2001/05/01 // RCS-ID: $Id$ -// Copyright: (c) 2001, Vaclav Slavik -// Licence: wxWindows license +// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_MGL_FONTUTIL_H_ #define _WX_MGL_FONTUTIL_H_ -#ifdef __WXMGL__ - #include "wx/list.h" struct font_info_t; @@ -59,10 +57,11 @@ private: class wxMGLFontLibrary { public: - wxMGLFontLibrary(const wxString& filename, int type); + wxMGLFontLibrary(const wxString& filename, int type, wxMGLFontFamily *parentFamily); ~wxMGLFontLibrary(); wxMGLFontInstance *GetFontInstance(wxFont *font, float scale, bool aa); + wxMGLFontFamily *GetFamily() const { return m_family; } void IncRef(); void DecRef(); @@ -75,6 +74,7 @@ private: wxString m_fileName; size_t m_refs; wxMGLFontInstanceList *m_instances; + wxMGLFontFamily *m_family; }; // structure representing native MGL font family @@ -121,6 +121,4 @@ class wxFontsManager extern wxFontsManager *wxTheFontsManager; -#endif - #endif // _WX_MGL_FONTUTIL_H_