00001 /*! \file wx/artbase/mswfont.h 00002 \author Philip Patrick, Hans Dietrich 00003 00004 Copyright: 2000-2004 (c) Klaas Holwerda 00005 00006 Licence: wxWidgets Licence 00007 00008 RCS-ID: $Id: mswfont.h,v 1.3 2008/04/11 13:39:51 titato Exp $ 00009 */ 00010 00011 // XFont.h Version 1.1 00012 // 00013 // Copyright (C) 2003 Hans Dietrich 00014 // 00015 // This software is released into the public domain. 00016 // You are free to use it in any way you like. 00017 // 00018 // This software is provided "as is" with no expressed 00019 // or implied warranty. I accept no liability for any 00020 // damage or loss of business that this software may cause. 00021 // 00022 /////////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef XFONT_H 00025 #define XFONT_H 00026 00027 //! MSW specific font properties 00028 typedef struct _tagFONT_PROPERTIES 00029 { 00030 TCHAR csName[1024]; 00031 TCHAR csCopyright[1024]; 00032 TCHAR csTrademark[1024]; 00033 TCHAR csFamily[1024]; 00034 } 00035 FONT_PROPERTIES, *LPFONT_PROPERTIES; 00036 00037 00038 //! find a font that is close to a wxDC font. 00039 BOOL GetFontFile( LPCTSTR lpszFontName, 00040 LPTSTR lpszDisplayName, 00041 int nDisplayNameSize, 00042 LPTSTR lpszFontFile, 00043 int nFontFileSize ); 00044 00045 //! get font name from the file 00046 BOOL GetFontProperties( LPCTSTR lpszFilePath, 00047 LPFONT_PROPERTIES lpFontProps ); 00048 00049 #endif //XFONT_H