00001 /* 00002 * This file is part of the internal font implementation. It should not be included by anyone other than 00003 * FontMac.cpp, FontWin.cpp and Font.cpp. 00004 * 00005 * Copyright (C) 2006 Apple Computer, Inc. 00006 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 00007 * Copyright (C) 2007 Holger Hans Peter Freyther 00008 * All rights reserved. 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Library General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Library General Public License 00021 * along with this library; see the file COPYING.LIB. If not, write to 00022 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00023 * Boston, MA 02111-1307, USA. 00024 * 00025 */ 00026 00027 #ifndef BIFontPlatformData_h 00028 #define BIFontPlatformData_h 00029 00030 #include "GlyphBuffer.h" 00031 #include "FontDescription.h" 00032 00033 namespace BAL { 00034 00035 class BIFontPlatformData { 00036 public: 00037 00038 class Deleted {}; 00039 00040 virtual ~BIFontPlatformData(); 00041 00042 virtual bool init() = 0; 00043 00044 virtual bool isFixedPitch() = 0; 00045 00046 virtual unsigned hash() const = 0; 00047 00048 virtual bool operator==(const BIFontPlatformData&) const = 0; 00049 00050 }; 00051 00052 #define IMPLEMENT_BIFONTPLATFORMDATA \ 00053 public: \ 00054 virtual bool init(); \ 00055 virtual bool isFixedPitch(); \ 00056 virtual unsigned hash() const; \ 00057 virtual bool operator==(const BIFontPlatformData&) const; 00058 00059 } 00060 00061 #endif //BIFontPlatformData_h