Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
terminus.h@2:d8a9ebd28f0a, 2020-10-08 (annotated)
- Committer:
- sPymbed
- Date:
- Thu Oct 08 06:50:37 2020 +0000
- Revision:
- 2:d8a9ebd28f0a
final version
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| sPymbed | 2:d8a9ebd28f0a | 1 | /** \file terminus.h | 
| sPymbed | 2:d8a9ebd28f0a | 2 | * \brief Terminus fontrs for mbed TFTLCDD library | 
| sPymbed | 2:d8a9ebd28f0a | 3 | * \version 0.1 | 
| sPymbed | 2:d8a9ebd28f0a | 4 | * \copyright GNU Public License, v2. | 
| sPymbed | 2:d8a9ebd28f0a | 5 | * | 
| sPymbed | 2:d8a9ebd28f0a | 6 | * This header provides 2 fixed-width fonts, both based on the | 
| sPymbed | 2:d8a9ebd28f0a | 7 | * free Terminus font. The smaller font is 8x12 pixels, and | 
| sPymbed | 2:d8a9ebd28f0a | 8 | * the big one is | 
| sPymbed | 2:d8a9ebd28f0a | 9 | * | 
| sPymbed | 2:d8a9ebd28f0a | 10 | * Copyright (C)2012 Todor Todorov. | 
| sPymbed | 2:d8a9ebd28f0a | 11 | * | 
| sPymbed | 2:d8a9ebd28f0a | 12 | * This library is free software; you can redistribute it and/or | 
| sPymbed | 2:d8a9ebd28f0a | 13 | * modify it under the terms of the GNU Lesser General Public | 
| sPymbed | 2:d8a9ebd28f0a | 14 | * License as published by the Free Software Foundation; either | 
| sPymbed | 2:d8a9ebd28f0a | 15 | * version 2.1 of the License, or (at your option) any later version. | 
| sPymbed | 2:d8a9ebd28f0a | 16 | * | 
| sPymbed | 2:d8a9ebd28f0a | 17 | * This library is distributed in the hope that it will be useful, | 
| sPymbed | 2:d8a9ebd28f0a | 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| sPymbed | 2:d8a9ebd28f0a | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 
| sPymbed | 2:d8a9ebd28f0a | 20 | * Lesser General Public License for more details. | 
| sPymbed | 2:d8a9ebd28f0a | 21 | * | 
| sPymbed | 2:d8a9ebd28f0a | 22 | * You should have received a copy of the GNU Lesser General Public | 
| sPymbed | 2:d8a9ebd28f0a | 23 | * License along with this library; if not, write to: | 
| sPymbed | 2:d8a9ebd28f0a | 24 | * | 
| sPymbed | 2:d8a9ebd28f0a | 25 | * Free Software Foundation, Inc. | 
| sPymbed | 2:d8a9ebd28f0a | 26 | * 51 Franklin St, 5th Floor, Boston, MA 02110-1301, USA | 
| sPymbed | 2:d8a9ebd28f0a | 27 | * | 
| sPymbed | 2:d8a9ebd28f0a | 28 | *********************************************************************/ | 
| sPymbed | 2:d8a9ebd28f0a | 29 | |
| sPymbed | 2:d8a9ebd28f0a | 30 | #ifndef TFTLCD_TERMINUS_H | 
| sPymbed | 2:d8a9ebd28f0a | 31 | #define TFTLCD_TERMINUS_H | 
| sPymbed | 2:d8a9ebd28f0a | 32 | |
| sPymbed | 2:d8a9ebd28f0a | 33 | |
| sPymbed | 2:d8a9ebd28f0a | 34 | #ifdef __cplusplus | 
| sPymbed | 2:d8a9ebd28f0a | 35 | extern "C" { | 
| sPymbed | 2:d8a9ebd28f0a | 36 | #endif | 
| sPymbed | 2:d8a9ebd28f0a | 37 | |
| sPymbed | 2:d8a9ebd28f0a | 38 | typedef struct FontMetrics_struct | 
| sPymbed | 2:d8a9ebd28f0a | 39 | { | 
| sPymbed | 2:d8a9ebd28f0a | 40 | uint8_t Offset; | 
| sPymbed | 2:d8a9ebd28f0a | 41 | uint8_t Width; | 
| sPymbed | 2:d8a9ebd28f0a | 42 | uint8_t Height; | 
| sPymbed | 2:d8a9ebd28f0a | 43 | const int16_t* Position; | 
| sPymbed | 2:d8a9ebd28f0a | 44 | const char* Data; | 
| sPymbed | 2:d8a9ebd28f0a | 45 | } font_t; | 
| sPymbed | 2:d8a9ebd28f0a | 46 | |
| sPymbed | 2:d8a9ebd28f0a | 47 | extern const font_t TerminusFont; | 
| sPymbed | 2:d8a9ebd28f0a | 48 | |
| sPymbed | 2:d8a9ebd28f0a | 49 | extern const font_t TerminusBigFont; | 
| sPymbed | 2:d8a9ebd28f0a | 50 | |
| sPymbed | 2:d8a9ebd28f0a | 51 | #ifdef __cplusplus | 
| sPymbed | 2:d8a9ebd28f0a | 52 | } | 
| sPymbed | 2:d8a9ebd28f0a | 53 | #endif | 
| sPymbed | 2:d8a9ebd28f0a | 54 | |
| sPymbed | 2:d8a9ebd28f0a | 55 | #endif /* TFTLCD_TERMINUS_H */ |