21 #ifndef GF_CONSOLE_FONT_H 22 #define GF_CONSOLE_FONT_H 24 #include <string_view> 26 #include "GraphicsApi.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 161 return m_characterSize;
179 void mapCode(char16_t c,
Vector2i position);
188 void mapCodeRange(char16_t c,
int count,
Vector2i position);
196 void mapString(std::string_view str,
Vector2i position);
236 RectI getSubTexture(char16_t c)
const;
246 RectF getTextureRect(char16_t c)
const;
267 void logFormat(
const Path& filename)
const;
277 Vector2i getColorKeyPosition()
const;
280 std::vector<uint8_t> m_mapping;
355 #ifndef DOXYGEN_SHOULD_SKIP_THIS 360 #endif // GF_CONSOLE_FONT_H
A span.
Definition: Span.h:36
A bitmap console font.
Definition: ConsoleFont.h:295
char16_t character
The represented character.
Definition: ConsoleFont.h:85
A texture for colored images.
Definition: Texture.h:313
std::filesystem::path Path
A path in the filesystem.
Definition: Path.h:40
A console font element.
Definition: ConsoleFont.h:84
Class for loading, manipulating and saving images.
Definition: Image.h:80
The namespace for gf classes.
Definition: Action.h:35
An image that lives in the graphic memory that can be used for drawing.
Definition: Texture.h:79
A colored console font.
Definition: ConsoleFont.h:328
A console font.
Definition: ConsoleFont.h:111
Vector2i getCharacterSize() const
Get the size of the characters.
Definition: ConsoleFont.h:160
Vector2i getSize() const
Get the size of the fonts.
Definition: ConsoleFont.h:151
A texture with a single alpha channel.
Definition: Texture.h:395
ConsoleFontFormat getFormat() const
Get the format of the font.
Definition: ConsoleFont.h:142
uint8_t index
The index in the font.
Definition: ConsoleFont.h:86