Class for font as header file.
More...
#include <hV_Font_Terminal.h>
|
|
font_s | f_font |
| font
|
|
uint8_t | f_fontNumber |
| number of fonts available, 0.._fontNumber-1
|
|
uint8_t | f_fontSize |
| actual font selected
|
|
uint8_t | f_fontSpaceX |
| pixels between two characters, horizontal axis
|
|
uint8_t | f_fontSpaceY |
| pixels between two characters, vertical axis
|
|
bool | f_fontSolid |
| font
|
|
Class for font as header file.
◆ f_addFont()
uint8_t hV_Font_Terminal::f_addFont |
( |
font_s | fontName | ) |
|
|
protected |
Use a font.
- Parameters
-
- Returns
- number of the font, 0 otherwise
- Warning
- Definition for this method is compulsory.
- Note
- Previously setFontSize()
More: Fonts
◆ f_characterSizeX()
uint16_t hV_Font_Terminal::f_characterSizeX |
( |
uint8_t | character = 0x00 | ) |
|
|
protected |
Character size, x-axis.
- Parameters
-
character | character to evaluate, default = 0 = font general size |
- Returns
- horizontal size of character for current font, in pixels
- Note
- With setSpaceX included
-
In variable font, each character has a specific size. The general size is indicative.
-
Previously fontSizeX()
More: Fonts
◆ f_characterSizeY()
uint16_t hV_Font_Terminal::f_characterSizeY |
( |
| ) |
|
|
protected |
Character size, y-axis.
- Returns
- vertical size for current font, in pixels
- Note
- Previously fontSizeY()
More: Fonts
◆ f_fontMax()
uint8_t hV_Font_Terminal::f_fontMax |
( |
| ) |
|
|
protected |
Number of fonts.
- Returns
- number of fonts available
- Note
- First font is numbered 0, second 1, ...
The latest font is numbered fontMax()-1
◆ f_getCharacter()
uint8_t hV_Font_Terminal::f_getCharacter |
( |
uint8_t | character, |
|
|
uint16_t | index ) |
|
protected |
Get definition for line of character.
- Parameters
-
character | character 32~255 |
index | column index |
- Returns
- definition for line of character
◆ f_getFontKind()
uint8_t hV_Font_Terminal::f_getFontKind |
( |
| ) |
|
|
protected |
Get selected font details.
- Returns
- font description
◆ f_getFontMaxWidth()
uint8_t hV_Font_Terminal::f_getFontMaxWidth |
( |
| ) |
|
|
protected |
Get selected font details.
- Returns
- maximum width in pixels from *width array
◆ f_selectFont()
void hV_Font_Terminal::f_selectFont |
( |
uint8_t | font | ) |
|
|
protected |
Select font.
- Parameters
-
font | default = 0 = small, 1 = large |
- Warning
- Definition for this method is compulsory.
- Note
- Previously _setFontSize()
◆ f_setFontSolid()
void hV_Font_Terminal::f_setFontSolid |
( |
bool | flag = true | ) |
|
|
protected |
Set transparent or opaque text.
- Parameters
-
flag | default = 1 = opaque = solid, false = transparent |
- Warning
- Definition for this method is compulsory.
◆ f_setFontSpaceX()
void hV_Font_Terminal::f_setFontSpaceX |
( |
uint8_t | number = 1 | ) |
|
|
protected |
Set additional pixels between two characters, horizontal axis.
- Parameters
-
number | of spaces default = 1 pixel |
- Warning
- Definition for this method is compulsory.
◆ f_setFontSpaceY()
void hV_Font_Terminal::f_setFontSpaceY |
( |
uint8_t | number = 1 | ) |
|
|
protected |
Set additional pixels between two characters, vertical axis.
- Parameters
-
number | of spaces default = 1 pixel |
- Warning
- Definition for this method is compulsory.
◆ f_stringLengthToFitX()
uint8_t hV_Font_Terminal::f_stringLengthToFitX |
( |
String | text, |
|
|
uint16_t | pixels ) |
|
protected |
Number of characters to fit a size, x-axis.
- Parameters
-
text | string to evaluate |
pixels | number of pixels to fit in |
- Returns
- number of characters to be displayed inside the pixels
More: Fonts
◆ f_stringSizeX()
uint16_t hV_Font_Terminal::f_stringSizeX |
( |
String | text | ) |
|
|
protected |
String size, x-axis.
- Parameters
-
- Returns
- horizontal size of the string for current font, in pixels
More: Fonts
The documentation for this class was generated from the following files: