Go to the source code of this file.
|
tuple | encode_fonts.file_header = Template("""/** ****************************************************************************** * @file $FILENAME * @author dRonin, http://dRonin.org/, Copyright (C) 2016 * @author The OpenPilot Team, http://www.openpilot.org, Copyright (C) 2012 * @author Thomas Oldbury Copyright (C) 2010 * @addtogroup dRonin Modules * @{ * @addtogroup OnScreenDisplay Module * @{ * @brief Fonts for OSD *****************************************************************************//* * 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 3 of the License, or * (at your option) any later version. * * 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. * * You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/> * * Additional note on redistribution: The copyright and license notices above * must be maintained in each individual source file that is a derivative work * of this source file; otherwise redistribution is prohibited. * * NOTE: This file is generated by encode_fonts.py DO NOT EDIT! * NOTE: Some fonts are CC 3.0 BY-SA and note GPL licensed. See FONT_LICENSE.txt */""") |
|
tuple | encode_fonts.font_header_template = Template("""#ifndef FONTS_H#define FONTS_H#include <openpilot.h>struct FontEntry {\tuint8_t width;\tuint8_t height;\tconst uint8_t* lookup;\tconst uint16_t* data;};#define NUM_FONTS $NUM_FONTS$names#endif /* FONTS_H */""") |
|
tuple | encode_fonts.font_c_template = Template("""static const struct FontEntry font_$name = {\t.width = $width,\t.height = $height,\t.lookup = lookup_$name,\t.data = (uint16_t*)data_$name};""") |
|
tuple | encode_fonts.font_c_table = Template("""const struct FontEntry* fonts[NUM_FONTS] = {$CONTENT};""") |
|
tuple | encode_fonts.parser = OptionParser() |
|
string | encode_fonts.help = 'Output file' |
|
string | encode_fonts.type = "int" |
|
| encode_fonts.in_files = args |
|
list | encode_fonts.names = [fname[:-4] for fname in in_files] |
|
tuple | encode_fonts.fonts = dict() |
|
tuple | encode_fonts.n_fonts = len(fonts) |
|
string | encode_fonts.font_name_str = '' |
|
list | encode_fonts.font = fonts[name] |
|
list | encode_fonts.height = font['height'] |
|
string | encode_fonts.content = '' |
|