Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

font.h

Go to the documentation of this file.
00001 
00002 // Flash Plugin and Player
00003 // Copyright (C) 1998 Olivier Debon
00004 // 
00005 // This program is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 // 
00020 #ifndef _SWFFONT_H_
00021 #define _SWFFONT_H_
00022 
00023 class SwfFont : public Character {
00024         Shape           *glyphs;        // Array
00025         long             nbGlyphs;
00026         char            *name;
00027         FontFlags        flags;
00028         long            *lookUpTable;   // Array
00029 
00030         // Font2
00031         long             ascent;
00032         long             descent;
00033         long             leading;
00034 
00035 public:
00036         SwfFont(long id);
00037         ~SwfFont();
00038 
00039         void             setFontShapeTable(Shape *shapes, long n);
00040         void             setFontName(char *str);
00041         void             setFontLookUpTable(long *lut);
00042         void             setFontFlags(FontFlags f);
00043         long             getGlyphCode(long index);
00044         long             getNbGlyphs();
00045         Shape           *getGlyph(long index);
00046 
00047         char            *getName();
00048         FontFlags        getFlags();
00049         
00050 #ifdef DUMP
00051         void             dump(BitStream *bs);
00052         void             dumpFontInfo(BitStream *bs);
00053 #endif
00054 };
00055 
00056 #endif /* _SWFFONT_H_ */

Generated on Sat Nov 5 16:15:35 2005 for OPIE by  doxygen 1.4.2