microvg  5.0.0
microvg
LLVG_FONT_stub.c
Go to the documentation of this file.
1 /*
2  * C
3  *
4  * Copyright 2020-2023 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_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 // See the header file for the function documentation
74 bool LLVG_FONT_IMPL_has_complex_layouter(void){
75  return false;
76 }
77 
78 // -----------------------------------------------------------------------------
79 // EOF
80 // -----------------------------------------------------------------------------
81 
82 #endif // VG_FEATURE_FONT
MicroEJ MicroVG library low level API: enable some features according to the hardware capacities...