xref: /aosp_15_r20/system/teeui/libteeui/example/fonts.h (revision 20bfefbe1966c142a35ae1ab84a8af250b3fd403)
1*20bfefbeSAndroid Build Coastguard Worker /*
2*20bfefbeSAndroid Build Coastguard Worker  * Copyright 2020, The Android Open Source Project
3*20bfefbeSAndroid Build Coastguard Worker  *
4*20bfefbeSAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*20bfefbeSAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*20bfefbeSAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*20bfefbeSAndroid Build Coastguard Worker  *
8*20bfefbeSAndroid Build Coastguard Worker  *     http://www.apache.org/licenses/LICENSE-2.0
9*20bfefbeSAndroid Build Coastguard Worker  *
10*20bfefbeSAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*20bfefbeSAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*20bfefbeSAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*20bfefbeSAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*20bfefbeSAndroid Build Coastguard Worker  * limitations under the License.
15*20bfefbeSAndroid Build Coastguard Worker  */
16*20bfefbeSAndroid Build Coastguard Worker 
17*20bfefbeSAndroid Build Coastguard Worker #pragma once
18*20bfefbeSAndroid Build Coastguard Worker 
19*20bfefbeSAndroid Build Coastguard Worker #include <teeui/incfont.h>
20*20bfefbeSAndroid Build Coastguard Worker 
21*20bfefbeSAndroid Build Coastguard Worker /*
22*20bfefbeSAndroid Build Coastguard Worker  * Each entry TEEUI_INCFONT(<name>) declares:
23*20bfefbeSAndroid Build Coastguard Worker  *    extern unsigned char <name>[];
24*20bfefbeSAndroid Build Coastguard Worker  *    extern unsigned int <name>_length;
25*20bfefbeSAndroid Build Coastguard Worker  * The first one pointing to a raw ttf font file in the .rodata section, and the second
26*20bfefbeSAndroid Build Coastguard Worker  * beeing the size of the buffer.
27*20bfefbeSAndroid Build Coastguard Worker  */
28*20bfefbeSAndroid Build Coastguard Worker TEEUI_INCFONT(RobotoMedium);
29*20bfefbeSAndroid Build Coastguard Worker TEEUI_INCFONT(RobotoRegular);
30*20bfefbeSAndroid Build Coastguard Worker TEEUI_INCFONT(Shield);
31