microvg  2.1.0
microvg
LLVG_FONT_stub.c
Go to the documentation of this file.
1 /*
2  * C
3  *
4  * Copyright 2020-2022 MicroEJ Corp. All rights reserved.
5  * Use of this source code is governed by a BSD-style license that can be found with this software.
6  */
7 
15 #include "microvg_configuration.h"
16 
17 #ifndef VG_FEATURE_FONT
18 
19 // -----------------------------------------------------------------------------
20 // Includes
21 // -----------------------------------------------------------------------------
22 
23 #include <LLVG_FONT_impl.h>
24 #include <LLVG_FONT_PAINTER_impl.h>
25 
26 // -----------------------------------------------------------------------------
27 // LLVG_FONT_impl.h functions
28 // -----------------------------------------------------------------------------
29 
30 // See the header file for the function documentation
31 jint LLVG_FONT_IMPL_load_font(jchar* font_name, jboolean complex_layout) {
32  (void)font_name;
33  (void)complex_layout;
34  return 0;
35 }
36 
37 // See the header file for the function documentation
38 jfloat LLVG_FONT_IMPL_string_width(jchar* text, jint faceHandle, jfloat size, jfloat letterSpacing) {
39  (void)text;
40  (void)faceHandle;
41  (void)size;
42  (void)letterSpacing;
43  return 0;
44 }
45 
46 // See the header file for the function documentation
47 jfloat LLVG_FONT_IMPL_string_height(jchar* text, jint faceHandle, jfloat size) {
48  (void)text;
49  (void)faceHandle;
50  (void)size;
51  return 0;
52 }
53 
54 // See the header file for the function documentation
55 jfloat LLVG_FONT_IMPL_get_baseline_position(jint faceHandle, jfloat size) {
56  (void)faceHandle;
57  (void)size;
58  return 0;
59 }
60 
61 // See the header file for the function documentation
62 jfloat LLVG_FONT_IMPL_get_height(jint faceHandle, jfloat size) {
63  (void)faceHandle;
64  (void)size;
65  return 0;
66 }
67 
68 // See the header file for the function documentation
69 void LLVG_FONT_IMPL_dispose(jint faceHandle) {
70  (void)faceHandle;
71 }
72 // -----------------------------------------------------------------------------
73 // LLVG_FONT_PAINTER_impl.h functions
74 // -----------------------------------------------------------------------------
75 
76 // See the header file for the function documentation
77 jint LLVG_FONT_PAINTER_IMPL_draw_string(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jfloat x, jfloat y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing){
78  (void)gc;
79  (void)text;
80  (void)faceHandle;
81  (void)size;
82  (void)x;
83  (void)y;
84  (void)matrix;
85  (void)alpha;
86  (void)blend;
87  (void)letterSpacing;
88 
89  return(0);
90 }
91 
92 // See the header file for the function documentation
93 jint LLVG_FONT_PAINTER_IMPL_draw_string_gradient(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jfloat x, jfloat y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing, jint *gradientData, jfloat *gradientMatrix){
94  (void)gc;
95  (void)text;
96  (void)faceHandle;
97  (void)size;
98  (void)x;
99  (void)y;
100  (void)matrix;
101  (void)alpha;
102  (void)blend;
103  (void)letterSpacing;
104  (void)gradientData;
105  (void)gradientMatrix;
106 
107  return(0);
108 }
109 
110 // See the header file for the function documentation
111 jint LLVG_FONT_PAINTER_IMPL_draw_string_on_circle(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jint x, jint y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing, jfloat radius, jint direction){
112  (void)gc;
113  (void)text;
114  (void)faceHandle;
115  (void)size;
116  (void)x;
117  (void)y;
118  (void)matrix;
119  (void)alpha;
120  (void)blend;
121  (void)letterSpacing;
122  (void)radius;
123  (void)direction;
124 
125  return(0);
126 }
127 
128 // See the header file for the function documentation
129 jint LLVG_FONT_PAINTER_IMPL_draw_string_on_circle_gradient(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jint x, jint y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing, jfloat radius, jint direction, jint *gradientData, jfloat *gradientMatrix){
130  (void)gc;
131  (void)text;
132  (void)faceHandle;
133  (void)size;
134  (void)x;
135  (void)y;
136  (void)matrix;
137  (void)alpha;
138  (void)blend;
139  (void)letterSpacing;
140  (void)radius;
141  (void)direction;
142  (void)gradientData;
143  (void)gradientMatrix;
144 
145  return(0);
146 }
147 
148 // See the header file for the function documentation
149 void LLVG_FONT_IMPL_set_complex_layout(bool enabled){
150  (void)enabled;
151 }
152 
153 // See the header file for the function documentation
154 bool LLVG_FONT_IMPL_has_complex_layouter(void){
155  return false;
156 }
157 
158 // -----------------------------------------------------------------------------
159 // EOF
160 // -----------------------------------------------------------------------------
161 
162 #endif // VG_FEATURE_FONT
MicroEJ MicroVG library low level API: enable some features according to the hardware capacities...