• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef UI_TEXT_LANGUAGE_H
16 #define UI_TEXT_LANGUAGE_H
17 #include <cstdint>
18 namespace OHOS {
19 void BitmapFontInit();
20 
21 enum UITextLanguageLangId : uint8_t {
22     LANGUAGE_CH = 0,
23     LANGUAGE_GB = 1,
24     LANGUAGE_EN = 2,
25     LANGUAGE_MAX = 3
26 }; // UITextLanguageLangId
27 
28 enum UITextLanguageFontId : uint8_t {
29     F_ROBOTOCONDENSED_REGULAR_14_4 = 0,
30     F_ROBOTOCONDENSED_REGULAR_18_4 = 1,
31     F_ROBOTOCONDENSED_REGULAR_20_4 = 2,
32     F_ROBOTOCONDENSED_REGULAR_24_4 = 3,
33     F_ROBOTOCONDENSED_REGULAR_26_4 = 4,
34     F_ROBOTOCONDENSED_REGULAR_30_4 = 5,
35     F_ROBOTOCONDENSED_REGULAR_38_4 = 6,
36     F_SOURCEHANSANSSC_REGULAR_14_4 = 7,
37     F_SOURCEHANSANSSC_REGULAR_18_4 = 8,
38     F_SOURCEHANSANSSC_REGULAR_20_4 = 9,
39     F_SOURCEHANSANSSC_REGULAR_24_4 = 10,
40     F_SOURCEHANSANSSC_REGULAR_26_4 = 11,
41     F_SOURCEHANSANSSC_REGULAR_30_4 = 12,
42     F_SOURCEHANSANSSC_REGULAR_38_4 = 13,
43     LANGUAGE_FONT_ID_MAX = 14
44 }; // UITextLanguageFontId
45 
46 enum UITextLanguageTextId : uint16_t {
47     LANGUAGE_TEXT_ID_MAX = 0
48 }; // UITextLanguageTextId
49 } // namespace OHOS
50 #endif // UI_TEXT_LANGUAGE_H
51