1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-14 21:23:52 +01:00
LibrePilot/flight/targets/boards/osd/firmware/inc/fonts.h

48 lines
1.4 KiB
C
Raw Normal View History

2013-04-05 22:46:56 +02:00
/**
* Super OSD, software revision 3
* Copyright (C) 2010 Thomas Oldbury
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
2013-04-05 22:46:56 +02:00
* This program 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.
*
2013-04-05 22:46:56 +02:00
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef FONTS_H
#define FONTS_H
// New fonts need a .c file (with the data) and a .h file with
// the definitions. Add the .h files here only.
#include "font_outlined8x14.h"
#include "font_outlined8x8.h"
// This number must also be incremented for each new font.
#define NUM_FONTS 4
2013-04-05 22:46:56 +02:00
// Flags for fonts.
#define FONT_LOWERCASE_ONLY 1
#define FONT_UPPERCASE_ONLY 2
2013-04-05 22:46:56 +02:00
// Font table. (Actual list of fonts in fonts.c.)
struct FontEntry {
int id;
unsigned char width, height;
const char *name;
const char *lookup;
const char *data;
int flags;
2013-04-05 22:46:56 +02:00
};
extern struct FontEntry fonts[NUM_FONTS + 1];
#endif // FONTS_H