Gnash  0.8.10
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, 2011, 2012
00004 //   Free Software 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 #include <boost/intrusive_ptr.hpp>
00025 
00026 // Forward declarations
00027 namespace gnash {
00028         class Font;
00029 }
00030 
00031 namespace gnash {
00032 
00034 //
00044 namespace fontlib {
00045 
00046         // For adding fonts.
00047         void add_font(Font* f);
00048 
00050         void clear();
00051 
00052         Font* get_font(const std::string& name, bool bold, bool italic);
00053 
00055         boost::intrusive_ptr<Font> get_default_font();
00056         
00057 }       // end namespace fontlib
00058 }       // end namespace gnash
00059 
00060 
00061 
00062 #endif // GNASH_FONTLIB_H
00063 
00064 // Local Variables:
00065 // mode: C++
00066 // c-basic-offset: 8 
00067 // tab-width: 8
00068 // indent-tabs-mode: t
00069 // End: