Files
itgmania212121/stepmania/src/Font.h
T

45 lines
984 B
C++
Raw Normal View History

#ifndef FONT_H
#define FONT_H
/*
-----------------------------------------------------------------------------
File: Font
Desc: A holder for information that is used by BitmapText objects.
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "RageTexture.h"
const int MAX_FONT_CHARS = 256; // only low ASCII chars are supported
class Font
{
public:
Font( const CString &sASCIITexturePath );
Font( const CString &sTexturePath, const CString& sChars );
~Font();
2002-12-29 22:55:26 +00:00
int GetLineWidthInSourcePixels( const CString &szLine );
int m_iRefCount;
CString m_sTexturePath;
RageTexture* m_pTexture;
2002-03-31 07:55:25 +00:00
bool m_bCapitalsOnly;
int m_iDrawExtraPixelsLeft, m_iDrawExtraPixelsRight; // for italic fonts
int m_iLineSpacing;
int m_iCharToFrameNo[MAX_FONT_CHARS];
int m_iFrameNoToWidth[MAX_FONT_CHARS]; // in soure coordinate space
2002-03-31 07:55:25 +00:00
protected:
};
#endif