• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

fontlib.h

Go to the documentation of this file.
00001 // fontlib.h - Internal interfaces to fontlib, for Gnash.
00002 // 
00003 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
00004 //   Foundation, Inc
00005 // 
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation; either version 3 of the License, or
00009 // (at your option) any later version.
00010 // 
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU General Public License
00017 // along with this program; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 
00020 
00021 #ifndef GNASH_FONTLIB_H
00022 #define GNASH_FONTLIB_H
00023 
00024 // Forward declarations
00025 namespace gnash {
00026         class Font;
00027 }
00028 
00029 namespace gnash {
00030 
00032 //
00042 namespace fontlib {
00043 
00044         // For adding fonts.
00045         void add_font(Font* f);
00046 
00048         void clear();
00049 
00050         int     get_font_count();
00051 
00052         Font* get_font(int index);
00053 
00054         Font* get_font(const std::string& name, bool bold, bool italic);
00055 
00057         boost::intrusive_ptr<Font> get_default_font();
00058 
00059         const char*     get_font_name(const Font* f);
00060 
00061         
00062 }       // end namespace fontlib
00063 }       // end namespace gnash
00064 
00065 
00066 
00067 #endif // GNASH_FONTLIB_H
00068 
00069 // Local Variables:
00070 // mode: C++
00071 // c-basic-offset: 8 
00072 // tab-width: 8
00073 // indent-tabs-mode: t
00074 // End:

Generated on Fri Mar 16 2012 15:46:09 for Gnash by  doxygen 1.7.1