/* AbiSource Application Framework * Copyright (C) 1998 AbiSource, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef XAP_UNIXPSFONT_H #define XAP_UNIXPSFONT_H #include "ut_types.h" #include "gr_Graphics.h" #include "xap_UnixFont.h" #include "xap_UnixPSParseAFM.h" /*****************************************************************/ /*****************************************************************/ class PSFont : public GR_Font { public: PSFont(XAP_UnixFont * hFont, UT_uint32 size); XAP_UnixFont * getUnixFont(void); UT_uint32 getSize(void) { return m_pointSize; }; void setIndex(UT_uint32 ndx) { m_index = ndx; } UT_uint32 getIndex(void) { return m_index; }; ABIFontInfo * getMetricsData(void); UT_uint16 * getUniWidths(void); // perhaps request raw data from PSFont? protected: XAP_UnixFont * m_hFont; UT_uint32 m_pointSize; UT_uint32 m_index; }; /* class ps_Font : public GR_Font { public: ps_Font(UT_uint32 ndx); ~ps_Font(); UT_Bool loadFont(const char * szFamily, const char * szFace, const char * szStyle, const char * szWeight, UT_uint32 iSize); UT_Bool loadFont(const char * filename); UT_Bool setFont(const char * szFamily, const char * szFace, const char * szStyle, const char * szWeight, UT_uint32 iSize); UT_Bool matchesFont(const char * szFamily, const char * szFace, const char * szStyle, const char * szWeight, UT_uint32 iSize); UT_uint32 m_ndx; char * m_szFamily; char * m_szFace; char * m_szStyle; char * m_szWeight; UT_uint32 m_iSize; }; */ #endif /* XAP_UNIXPSFONT_H */