ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
|
Font display for ili9341 driver Displays fonts generated by bdffont2c BDF to C code converter BDF = Glyph Bitmap Distribution Format The code handles fixed, proportional and bounding box format fonts. More...
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include "display/ili9341.h"
#include "display/font.h"
#include "fonts.h"
Go to the source code of this file.
Macros | |
#define | MEMSPACE_FONT MEMSPACE |
save fonts in flash More... | |
Functions | |
int | font_max () |
int | font_H (int font) |
Get font height used for line to line spacing. More... | |
int | font_W (int font) |
Get font Width used for character to character spacing. More... | |
int | font_attr (window *win, int c, _fontc *f) |
Get font attributes for a font. More... | |
void | tft_drawChar (window *win, uint8_t c) |
Display a character and optionally wrap the graphic cursor. More... | |
Variables | |
_font * | allfonts [] |
Include the Generated Font table The generated tables always include Font specifications: width, height, offsets, font type, etc Font information: name, copyright, style information Note: FONSPECS and FONTINFO defines controls actual usage. We can also overide FONTSPECS here or in the Makefile for testing. More... | |
Font display for ili9341 driver Displays fonts generated by bdffont2c BDF to C code converter BDF = Glyph Bitmap Distribution Format The code handles fixed, proportional and bounding box format fonts.
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file font.c.
Get font attributes for a font.
[in] | *win | Window Structure |
[in] | c | character |
[in] | *f | font structure |
Definition at line 94 of file font.c.
Referenced by tft_cleareol(), tft_clearline(), tft_drawChar(), tft_get_font_height(), and tft_putch().
int font_H | ( | int | font | ) |
Get font height used for line to line spacing.
[in] | font | font number |
Definition at line 70 of file font.c.
Referenced by test_types(), and tft_set_textpos().
int font_max | ( | void | ) |
Definition at line 59 of file font.c.
Referenced by tft_set_font().
int font_W | ( | int | font | ) |
Get font Width used for character to character spacing.
[in] | font | font number |
Definition at line 80 of file font.c.
Referenced by tft_set_textpos().
Display a character and optionally wrap the graphic cursor.
[in] | *win | Window Structure of active window |
[in] | c | character |
Definition at line 200 of file font.c.
Referenced by tft_putch().
_font* allfonts[] |
Include the Generated Font table The generated tables always include Font specifications: width, height, offsets, font type, etc Font information: name, copyright, style information Note: FONSPECS and FONTINFO defines controls actual usage. We can also overide FONTSPECS here or in the Makefile for testing.
Definition at line 14699 of file fonts.h.
Referenced by main().