FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/r2d/lcds/Mirrored/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/mirrored/font_bitmap_system.h" | |
2 #include "r2d/lcds/mirrored/font_metrics_system.h" | |
3 #include "r2d/lcds/mirrored/font_table_system.h" | |
4 | |
5 #include "r2d/lcds/mirrored/font_bitmap_proportional.h" | |
6 #include "r2d/lcds/mirrored/font_metrics_proportional.h" | |
7 #include "r2d/lcds/mirrored/font_table_proportional.h" | |
8 | |
9 | |
10 r2d_new_font(system); | |
11 | |
12 r2d_new_font(proportional); | |
13 | |
14 | |
15 /* Cleaning font structures when and error occurs at init */ | |
16 void r2d_font_clean() | |
17 { | |
18 r2d_clean_font(system); | |
19 r2d_clean_font(proportional); | |
20 } | |
21 | |
22 T_R2D_ERROR r2d_font_init() | |
23 { | |
24 UINT16 length; | |
25 UINT32 *p; | |
26 UINT32 h,v,words; | |
27 T_R2D_ERROR ret_err; | |
28 | |
29 ret_err=R2D_OK; | |
30 | |
31 r2d_init_font(system); | |
32 if (ret_err!=R2D_OK) | |
33 return(ret_err); | |
34 | |
35 r2d_init_font(proportional); | |
36 if (ret_err!=R2D_OK) | |
37 return(ret_err); | |
38 | |
39 | |
40 | |
41 r2d_init_font_field(R2D_SMALL_SYSTEM_NORMAL,system); | |
42 r2d_init_font_field_without_bold(R2D_SMALL_SYSTEM_BOLD,system); | |
43 r2d_init_font_field(R2D_SMALL_SYSTEM_ITALIC,system); | |
44 r2d_init_font_field_without_bold(R2D_SMALL_SYSTEM_BOLD_ITALIC,system); | |
45 | |
46 r2d_init_font_field(R2D_MEDIUM_SYSTEM_NORMAL,system); | |
47 r2d_init_font_field_without_bold(R2D_MEDIUM_SYSTEM_BOLD,system); | |
48 r2d_init_font_field(R2D_MEDIUM_SYSTEM_ITALIC,system); | |
49 r2d_init_font_field_without_bold(R2D_MEDIUM_SYSTEM_BOLD_ITALIC,system); | |
50 | |
51 r2d_init_font_field(R2D_BIG_SYSTEM_NORMAL,system); | |
52 r2d_init_font_field_without_bold(R2D_BIG_SYSTEM_BOLD,system); | |
53 r2d_init_font_field(R2D_BIG_SYSTEM_ITALIC,system); | |
54 r2d_init_font_field_without_bold(R2D_BIG_SYSTEM_BOLD_ITALIC,system); | |
55 | |
56 r2d_init_font_field(R2D_SMALL_TYPEWRITER_NORMAL,system); | |
57 r2d_init_font_field_without_bold(R2D_SMALL_TYPEWRITER_BOLD,system); | |
58 r2d_init_font_field(R2D_SMALL_TYPEWRITER_ITALIC,system); | |
59 r2d_init_font_field_without_bold(R2D_SMALL_TYPEWRITER_BOLD_ITALIC,system); | |
60 | |
61 r2d_init_font_field(R2D_MEDIUM_TYPEWRITER_NORMAL,system); | |
62 r2d_init_font_field_without_bold(R2D_MEDIUM_TYPEWRITER_BOLD,system); | |
63 r2d_init_font_field(R2D_MEDIUM_TYPEWRITER_ITALIC,system); | |
64 r2d_init_font_field_without_bold(R2D_MEDIUM_TYPEWRITER_BOLD_ITALIC,system); | |
65 | |
66 r2d_init_font_field(R2D_BIG_TYPEWRITER_NORMAL,system); | |
67 r2d_init_font_field_without_bold(R2D_BIG_TYPEWRITER_BOLD,system); | |
68 r2d_init_font_field(R2D_BIG_TYPEWRITER_ITALIC,system); | |
69 r2d_init_font_field_without_bold(R2D_BIG_TYPEWRITER_BOLD_ITALIC,system); | |
70 | |
71 r2d_init_font_field(R2D_SMALL_PROPORTIONAL_NORMAL,proportional); | |
72 r2d_init_font_field_without_bold(R2D_SMALL_PROPORTIONAL_BOLD,proportional); | |
73 r2d_init_font_field(R2D_SMALL_PROPORTIONAL_ITALIC,proportional); | |
74 r2d_init_font_field_without_bold(R2D_SMALL_PROPORTIONAL_BOLD_ITALIC,proportional); | |
75 | |
76 r2d_init_font_field(R2D_MEDIUM_PROPORTIONAL_NORMAL,proportional); | |
77 r2d_init_font_field_without_bold(R2D_MEDIUM_PROPORTIONAL_BOLD,proportional); | |
78 r2d_init_font_field(R2D_MEDIUM_PROPORTIONAL_ITALIC,proportional); | |
79 r2d_init_font_field_without_bold(R2D_MEDIUM_PROPORTIONAL_BOLD_ITALIC,proportional); | |
80 | |
81 r2d_init_font_field(R2D_BIG_PROPORTIONAL_NORMAL,proportional); | |
82 r2d_init_font_field_without_bold(R2D_BIG_PROPORTIONAL_BOLD,proportional); | |
83 r2d_init_font_field(R2D_BIG_PROPORTIONAL_ITALIC,proportional); | |
84 r2d_init_font_field_without_bold(R2D_BIG_PROPORTIONAL_BOLD_ITALIC,proportional); | |
85 | |
86 return(R2D_OK); | |
87 } |