source: azure_iot_hub_riscv/trunk/asp_baseplatform/ui/snfont_disp/fonts.h@ 453

Last change on this file since 453 was 453, checked in by coas-nagasima, 4 years ago

ファイルを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 3.7 KB
Line 
1/*
2 * TOPPERS BASE PLATFORM MIDDLEWARE
3 *
4 * Copyright (C) 2017-2018 by TOPPERS PROJECT
5 * Educational Working Group.
6 *
7 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ
8 * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
9 * 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
10 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
11 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
12 * スコード中に含まれていること.
13 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
14 * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
15 * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
16 * の無保証規定を掲載すること.
17 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
18 * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ
19 * と.
20 * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
21 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
22 * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに
23 * 報告すること.
24 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
25 * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
26 * また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理
27 * 由に基づく請求からも,上記著作権者およびTOPPERSプロジェクトを
28 * 免責すること.
29 *
30 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
31 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的
32 * に対する適合性も含めて,いかなる保証も行わない.また,本ソフトウェ
33 * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ
34 * の責任を負わない.
35 *
36 * $Id$
37 */
38
39/*
40 * FONTのヘッダファイル
41 */
42
43#ifndef _FONTS_H_
44#define _FONTS_H_
45
46#ifdef __cplusplus
47 extern "C" {
48#endif
49
50#include <t_stddef.h>
51
52#define NUM_FONTS 224
53
54#ifndef TOPPERS_MACRO_ONLY
55
56/*
57 * FONT構造体定義
58 */
59typedef struct _font_s {
60 uint8_t width;
61 uint8_t height;
62 uint8_t stride;
63 uint8_t iheight;
64 uint8_t image[8];
65} font_t;
66
67/*
68 * FONTヘッダ構造体定義
69 */
70typedef struct _font_head_s {
71 const char font_name[32];
72 uint8_t file_attribute;
73 uint8_t font_attribute;
74 uint8_t font_width;
75 uint8_t font_height;
76 const font_t **font_table;
77 void *pdata;
78} font_head_t;
79
80typedef struct font_file_head_s {
81 char magic[4];
82 char name[32];
83 unsigned int fsize;
84 unsigned int csize;
85 unsigned int isize;
86 unsigned int off_cnv_table1;
87 unsigned int siz_cnv_table1;
88 unsigned int off_cnv_table2;
89 unsigned int siz_cnv_table2;
90 unsigned int off_cnv_table3;
91 unsigned int siz_cnv_table3;
92 unsigned int off_2byte_font;
93 unsigned int siz_2byte_font;
94 unsigned int off_3byte_font;
95 unsigned int siz_3byte_font;
96} font_file_head_t;
97
98extern font_head_t Embedded_Font9;
99extern font_head_t Shinonome_Font12;
100extern font_head_t Shinonome_Font16;
101
102
103#endif /* TOPPERS_MACRO_ONLY */
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif
110
Note: See TracBrowser for help on using the repository browser.