Max OS 0.3
Loading...
Searching...
No Matches
font.h File Reference

Defines a Font class for drawing text onto a graphics context. More...

#include <cstdint>
#include <common/graphicsContext.h>
#include <common/rectangle.h>
#include <common/string.h>

Go to the source code of this file.

Classes

class  MaxOS::gui::Font
 A class that can be used to draw text. More...
 

Variables

constexpr uint8_t MaxOS::gui::FONT_PADDING = 3
 How many vertical pixels to add to the top and bottom of the font to prevent squishing.
 
constexpr uint8_t MaxOS::gui::FONT_HEIGHT = 8 + (2 * FONT_PADDING)
 How many pixels tall the font is.
 
constexpr uint8_t MaxOS::gui::FONT_WIDTH = 8
 How many pixels wide the font is.
 

Detailed Description

Defines a Font class for drawing text onto a graphics context.

Date
15th April 2023
Author
Max Tyson

Definition in file font.h.

Variable Documentation

◆ FONT_HEIGHT

constexpr uint8_t MaxOS::gui::FONT_HEIGHT = 8 + (2 * FONT_PADDING)
constexpr

◆ FONT_PADDING

constexpr uint8_t MaxOS::gui::FONT_PADDING = 3
constexpr

How many vertical pixels to add to the top and bottom of the font to prevent squishing.

Definition at line 19 of file font.h.

◆ FONT_WIDTH

constexpr uint8_t MaxOS::gui::FONT_WIDTH = 8
constexpr

How many pixels wide the font is.

Definition at line 21 of file font.h.

Referenced by MaxOS::drivers::console::VESABootConsole::scroll_up(), and MaxOS::drivers::console::VESABootConsole::width().