1 #ifndef __DALI_TEXT_ABSTRACTION_FONT_LIST_H__
2 #define __DALI_TEXT_ABSTRACTION_FONT_LIST_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <dali/public-api/common/vector-wrapper.h>
29 namespace TextAbstraction
31 typedef std::string FontPath;
32 typedef std::string FontFamily;
33 typedef std::string FontStyle;
38 * @brief Enumeration type for the font's width
42 NONE, ///< Means not defined. Will use what is set as default, currently NORMAL.
54 const char* const Name[] =
67 } // namespace FontWidth
72 * @brief Enumeration type for the font's weight
76 NONE, ///< Means not defined. Will use what is set as default, currently NORMAL.
79 EXTRA_LIGHT = ULTRA_LIGHT,
82 SEMI_LIGHT = DEMI_LIGHT,
88 SEMI_BOLD = DEMI_BOLD,
91 EXTRA_BOLD = ULTRA_BOLD,
97 const char* const Name[] =
117 * @brief Enumeration type for the font's slant
121 NONE, ///< Means not defined. Will use what is set as default, currently NORMAL.
128 const char* const Name[] =
135 } // namespace FontSlant
137 struct FontDescription
142 width( FontWidth::NONE ),
143 weight( FontWeight::NONE ),
144 slant( FontSlant::NONE )
150 FontPath path; ///< The font's file name path.
151 FontFamily family; ///< The font's family name.
152 FontWidth::Type width; ///< The font's width.
153 FontWeight::Type weight; ///< The font's weight.
154 FontSlant::Type slant; ///< The font's slant.
157 typedef std::vector<FontDescription> FontList;
159 DALI_IMPORT_API std::ostream& operator<<( std::ostream& o, const FontList& fontList );
161 } // namespace TextAbstraction
165 #endif // __DALI_TEXT_ABSTRACTION_FONT_LIST_H__