Files
itgmania212121/stepmania/src/Font.h
T
Glenn Maynard 2f36046dd6 Do away with LPCTSTR. (We're not making a Unicode build, and if
we were it's not being used everywhere it would need to be.  If we want
Unicode support, that's probably not the way to do it anyway ...)
2002-08-28 00:35:55 +00:00

44 lines
952 B
C++

#pragma once
/*
-----------------------------------------------------------------------------
File: Font
Desc: A holder for information that is used by BitmapText objects.
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
{
protected:
public:
Font( const CString &sFontPath );
Font( const CString &sTexturePath, const CString& sChars );
~Font();
int GetLineWidthInSourcePixels( const char *szLine, int iLength );
int m_iRefCount;
CString m_sFontFilePath;
CString m_sTexturePath;
RageTexture* m_pTexture;
bool m_bCapitalsOnly;
float m_fDrawExtraPercent; // for italic fonts
int m_iCharToFrameNo[MAX_FONT_CHARS];
int m_iFrameNoToWidth[MAX_FONT_CHARS]; // in soure coordinate space
protected:
};