21 #ifndef GF_CONSOLE_FONT_H 22 #define GF_CONSOLE_FONT_H 26 #include "Portability.h" 27 #include "StringRef.h" 32 #ifndef DOXYGEN_SHOULD_SKIP_THIS 151 return m_characterSize;
169 void mapCode(char16_t c,
Vector2u position);
178 void mapCodeRange(char16_t c,
unsigned count,
Vector2u position);
226 RectU getSubTexture(char16_t c)
const;
236 RectF getTextureRect(char16_t c)
const;
269 void logFormat(
const Path& filename)
const;
279 Vector2u getColorKeyPosition()
const;
282 std::vector<uint8_t> m_mapping;
300 virtual const BareTexture *getTexture()
const override;
326 virtual const BareTexture *getTexture()
const override;
343 #ifndef DOXYGEN_SHOULD_SKIP_THIS 348 #endif // GF_CONSOLE_FONT_H
Vector2u getCharacterSize() const
Get the size of the characters.
Definition: ConsoleFont.h:150
Vector2u getSize() const
Get the size of the fonts.
Definition: ConsoleFont.h:141
A bitmap console font.
Definition: ConsoleFont.h:297
char16_t character
The represented character.
Definition: ConsoleFont.h:84
A texture for colored images.
Definition: Texture.h:339
A console font element.
Definition: ConsoleFont.h:83
The namespace for gf classes.
Definition: Action.h:34
An image that lives in the graphic memory that can be used for drawing.
Definition: Texture.h:67
A colored console font.
Definition: ConsoleFont.h:323
A constant reference to an array and its size.
Definition: ArrayRef.h:42
A console font.
Definition: ConsoleFont.h:110
boost::filesystem::path Path
A path in the filesystem.
Definition: Path.h:44
A constant reference to a string and its size.
Definition: StringRef.h:41
A texture with a single alpha channel.
Definition: Texture.h:474
ConsoleFontFormat getFormat() const
Get the format of the font.
Definition: ConsoleFont.h:132
uint8_t index
The index in the font.
Definition: ConsoleFont.h:85