1 /* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef MINIKIN_LINE_BREAK_STYLE_H 18 #define MINIKIN_LINE_BREAK_STYLE_H 19 20 namespace minikin { 21 22 // The line break style(lb) of the strings. 23 // See https://www.unicode.org/reports/tr35/#Key_Type_Definitions 24 enum class LineBreakStyle : uint8_t { 25 None = 0, 26 Loose = 1, 27 Normal = 2, 28 Strict = 3, 29 NoBreak = 4, 30 Auto = 5, 31 }; 32 33 // The line break word style(lw) of the strings. 34 // See the key "lw" in https://www.unicode.org/reports/tr35/#Key_Type_Definitions 35 enum class LineBreakWordStyle : uint8_t { 36 None = 0, 37 Phrase = 1, 38 Auto = 2, 39 }; 40 41 } // namespace minikin 42 43 #endif // MINIKIN_LINE_BREAK_STYLE_H 44