typeface.h   typeface.h 
skipping to change at line 37 skipping to change at line 37
// - (various) Integration with Stellarium codebase // - (various) Integration with Stellarium codebase
// - (20080221) Adaptation to use QT's QStrings rather than STL strings // - (20080221) Adaptation to use QT's QStrings rather than STL strings
// - (20080221) Code formatting to meet Stellarium coding guidelines // - (20080221) Code formatting to meet Stellarium coding guidelines
// - (20080221) Additional comments for Doxygen // - (20080221) Additional comments for Doxygen
// - (20080221) Improve comments // - (20080221) Improve comments
// ________________________________________________________________________ __________________________ // ________________________________________________________________________ __________________________
#ifndef __GOOEY_FONT_TYPE_FACE_H__ #ifndef __GOOEY_FONT_TYPE_FACE_H__
#define __GOOEY_FONT_TYPE_FACE_H__ #define __GOOEY_FONT_TYPE_FACE_H__
#include "vecmath.h" #include "VecMath.hpp"
#include <QString> #include <QString>
typedef Vector2<size_t> Vec2size_t; typedef Vector2<size_t> Vec2size_t;
struct Data; struct Data;
struct CacheEntry; struct CacheEntry;
struct FT_GlyphRec_; struct FT_GlyphRec_;
struct FT_BitmapGlyphRec_; struct FT_BitmapGlyphRec_;
//! Base class for gem type faces //! Base class for gem type faces
class TypeFace class TypeFace
{ {
friend class SFont; friend class StelFont;
public: public:
//! Construction requires the name of the font file and optionally t he size and resolution. //! Construction requires the name of the font file and optionally t he size and resolution.
//! @param aFileName the name of the file which contains font data. //! @param aFileName the name of the file which contains font data.
//! @aPointSize the size of the font in points. //! @aPointSize the size of the font in points.
//! @aResolution the font resoltion in DPI. //! @aResolution the font resoltion in DPI.
explicit TypeFace(const QString& aFileName, size_t aPointSize = 12, size_t aResolution = 100); explicit TypeFace(const QString& aFileName, size_t aPointSize = 12, size_t aResolution = 100);
virtual ~TypeFace(); virtual ~TypeFace();
skipping to change at line 139 skipping to change at line 139
//! Checks that a cache texture is available, adding a new one if ne cessary. //! Checks that a cache texture is available, adding a new one if ne cessary.
void ensureTextureIsAvailable(); void ensureTextureIsAvailable();
//! Returns the cache entry for the glyph with the passed in index. //! Returns the cache entry for the glyph with the passed in index.
CacheEntry& cachedGlyph(size_t aGlyphIndex); CacheEntry& cachedGlyph(size_t aGlyphIndex);
//! Returns the kerning vector for the passed in pair of glyphs. //! Returns the kerning vector for the passed in pair of glyphs.
Vec2f kerning(size_t leftGlyphIndex, size_t rightGlyphIndex) const; Vec2f kerning(size_t leftGlyphIndex, size_t rightGlyphIndex) const;
//! Renders the glyphs of the passed in string. //! Renders the glyphs of the passed in string.
void renderGlyphs(const QString& aString, bool useColorSwitch=true); void renderGlyphs(const QString& aString);
//! binds the passed in cache entry's texture. //! binds the passed in cache entry's texture.
void bindTexture(const CacheEntry& aCacheEntry) const; void bindTexture(const CacheEntry& aCacheEntry) const;
//! Caches the glyph with the passed in index. //! Caches the glyph with the passed in index.
void cacheGlyph(size_t aGlyphIndex); void cacheGlyph(size_t aGlyphIndex);
//! Flushes the string and character cache. //! Flushes the string and character cache.
void flushCache(); void flushCache();
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/