FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/r2d/lcds/BW_D_Sample/r2d_font_init_i.c @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
1 #include "r2d/lcds/bw_d_Sample/font_bitmap_system.h" | |
2 #include "r2d/lcds/bw_d_Sample/font_metrics_system.h" | |
3 #include "r2d/lcds/bw_d_Sample/font_table_system.h" | |
4 | |
5 #include "r2d/lcds/bw_d_Sample/font_bitmap_proportional.h" | |
6 #include "r2d/lcds/bw_d_Sample/font_metrics_proportional.h" | |
7 #include "r2d/lcds/bw_d_Sample/font_table_proportional.h" | |
8 | |
9 | |
10 r2d_new_font(system); | |
11 | |
12 r2d_new_font(proportional); | |
13 | |
14 /* Cleaning font structures when and error occurs at init */ | |
15 void r2d_font_clean() | |
16 { | |
17 r2d_clean_font(system); | |
18 r2d_clean_font(proportional); | |
19 } | |
20 | |
21 T_R2D_ERROR r2d_font_init() | |
22 { | |
23 UINT16 length; | |
24 UINT32 *p; | |
25 UINT32 h,v,words; | |
26 T_R2D_ERROR ret_err; | |
27 | |
28 ret_err=R2D_OK; | |
29 | |
30 r2d_init_font(system); | |
31 if (ret_err!=R2D_OK) | |
32 return(ret_err); | |
33 | |
34 r2d_init_font(proportional); | |
35 if (ret_err!=R2D_OK) | |
36 return(ret_err); | |
37 | |
38 | |
39 r2d_init_font_field(R2D_SMALL_SYSTEM_NORMAL,system); | |
40 r2d_init_font_field_without_bold(R2D_SMALL_SYSTEM_BOLD,system); | |
41 r2d_init_font_field(R2D_SMALL_SYSTEM_ITALIC,system); | |
42 r2d_init_font_field_without_bold(R2D_SMALL_SYSTEM_BOLD_ITALIC,system); | |
43 | |
44 r2d_init_font_field(R2D_MEDIUM_SYSTEM_NORMAL,system); | |
45 r2d_init_font_field_without_bold(R2D_MEDIUM_SYSTEM_BOLD,system); | |
46 r2d_init_font_field(R2D_MEDIUM_SYSTEM_ITALIC,system); | |
47 r2d_init_font_field_without_bold(R2D_MEDIUM_SYSTEM_BOLD_ITALIC,system); | |
48 | |
49 r2d_init_font_field(R2D_BIG_SYSTEM_NORMAL,system); | |
50 r2d_init_font_field_without_bold(R2D_BIG_SYSTEM_BOLD,system); | |
51 r2d_init_font_field(R2D_BIG_SYSTEM_ITALIC,system); | |
52 r2d_init_font_field_without_bold(R2D_BIG_SYSTEM_BOLD_ITALIC,system); | |
53 | |
54 r2d_init_font_field(R2D_SMALL_TYPEWRITER_NORMAL,system); | |
55 r2d_init_font_field_without_bold(R2D_SMALL_TYPEWRITER_BOLD,system); | |
56 r2d_init_font_field(R2D_SMALL_TYPEWRITER_ITALIC,system); | |
57 r2d_init_font_field_without_bold(R2D_SMALL_TYPEWRITER_BOLD_ITALIC,system); | |
58 | |
59 r2d_init_font_field(R2D_MEDIUM_TYPEWRITER_NORMAL,system); | |
60 r2d_init_font_field_without_bold(R2D_MEDIUM_TYPEWRITER_BOLD,system); | |
61 r2d_init_font_field(R2D_MEDIUM_TYPEWRITER_ITALIC,system); | |
62 r2d_init_font_field_without_bold(R2D_MEDIUM_TYPEWRITER_BOLD_ITALIC,system); | |
63 | |
64 r2d_init_font_field(R2D_BIG_TYPEWRITER_NORMAL,system); | |
65 r2d_init_font_field_without_bold(R2D_BIG_TYPEWRITER_BOLD,system); | |
66 r2d_init_font_field(R2D_BIG_TYPEWRITER_ITALIC,system); | |
67 r2d_init_font_field_without_bold(R2D_BIG_TYPEWRITER_BOLD_ITALIC,system); | |
68 | |
69 r2d_init_font_field(R2D_SMALL_PROPORTIONAL_NORMAL,proportional); | |
70 r2d_init_font_field_without_bold(R2D_SMALL_PROPORTIONAL_BOLD,proportional); | |
71 r2d_init_font_field(R2D_SMALL_PROPORTIONAL_ITALIC,proportional); | |
72 r2d_init_font_field_without_bold(R2D_SMALL_PROPORTIONAL_BOLD_ITALIC,proportional); | |
73 | |
74 r2d_init_font_field(R2D_MEDIUM_PROPORTIONAL_NORMAL,proportional); | |
75 r2d_init_font_field_without_bold(R2D_MEDIUM_PROPORTIONAL_BOLD,proportional); | |
76 r2d_init_font_field(R2D_MEDIUM_PROPORTIONAL_ITALIC,proportional); | |
77 r2d_init_font_field_without_bold(R2D_MEDIUM_PROPORTIONAL_BOLD_ITALIC,proportional); | |
78 | |
79 r2d_init_font_field(R2D_BIG_PROPORTIONAL_NORMAL,proportional); | |
80 r2d_init_font_field_without_bold(R2D_BIG_PROPORTIONAL_BOLD,proportional); | |
81 r2d_init_font_field(R2D_BIG_PROPORTIONAL_ITALIC,proportional); | |
82 r2d_init_font_field_without_bold(R2D_BIG_PROPORTIONAL_BOLD_ITALIC,proportional); | |
83 | |
84 return(R2D_OK); | |
85 } |