Font.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  Pentagram

Functions

 Pentagram::DEFINE_RUNTIME_CLASSTYPE_CODE_BASE_CLASS (Font) Font
template<class T>
static void findWordEnd (const std::string &text, std::string::const_iterator &iter, bool u8specials)
template<class T>
static void passSpace (const std::string &text, std::string::const_iterator &iter, bool u8specials)
template<class T>
std::list< PositionedTexttypesetText (Pentagram::Font *font, const std::string &text, unsigned int &remaining, int width, int height, Pentagram::Font::TextAlign align, bool u8specials, int &resultwidth, int &resultheight, std::string::size_type cursor)
template std::list< PositionedTexttypesetText< Pentagram::Font::Traits > (Pentagram::Font *font, const std::string &text, unsigned int &remaining, int width, int height, Pentagram::Font::TextAlign align, bool u8specials, int &resultwidth, int &resultheight, std::string::size_type cursor)
template std::list< PositionedTexttypesetText< Pentagram::Font::SJISTraits > (Pentagram::Font *font, const std::string &text, unsigned int &remaining, int width, int height, Pentagram::Font::TextAlign align, bool u8specials, int &resultwidth, int &resultheight, std::string::size_type cursor)


Function Documentation

template<class T>
static void findWordEnd ( const std::string &  text,
std::string::const_iterator &  iter,
bool  u8specials 
) [static]

Definition at line 107 of file Font.cpp.

References Animation::advance.

template<class T>
static void passSpace ( const std::string &  text,
std::string::const_iterator &  iter,
bool  u8specials 
) [static]

Definition at line 117 of file Font.cpp.

References Animation::advance.

template<class T>
std::list<PositionedText> typesetText ( Pentagram::Font font,
const std::string &  text,
unsigned int &  remaining,
int  width,
int  height,
Pentagram::Font::TextAlign  align,
bool  u8specials,
int &  resultwidth,
int &  resultheight,
std::string::size_type  cursor 
)

Definition at line 142 of file Font.cpp.

References Animation::advance, font, line, pout, Pentagram::Font::TEXT_CENTER, Pentagram::Font::TEXT_LEFT, and Pentagram::Font::TEXT_RIGHT.

template std::list<PositionedText> typesetText< Pentagram::Font::SJISTraits > ( Pentagram::Font font,
const std::string &  text,
unsigned int &  remaining,
int  width,
int  height,
Pentagram::Font::TextAlign  align,
bool  u8specials,
int &  resultwidth,
int &  resultheight,
std::string::size_type  cursor 
)

template std::list<PositionedText> typesetText< Pentagram::Font::Traits > ( Pentagram::Font font,
const std::string &  text,
unsigned int &  remaining,
int  width,
int  height,
Pentagram::Font::TextAlign  align,
bool  u8specials,
int &  resultwidth,
int &  resultheight,
std::string::size_type  cursor 
)


Generated on Fri Jul 27 22:28:02 2007 for pentagram by  doxygen 1.4.7