Revert "[Tizen] Add DALi Autofill implementation"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / text-abstraction / glyph-info.cpp
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
18 // CLASS HEADER
19 #include <dali/devel-api/text-abstraction/glyph-info.h>
20
21 namespace Dali
22 {
23
24 namespace TextAbstraction
25 {
26
27 GlyphInfo::GlyphInfo()
28 : fontId{ 0u },
29   index{ 0u },
30   width( 0.f ),
31   height{ 0.f },
32   xBearing{ 0.f },
33   yBearing{ 0.f },
34   advance{ 0.f },
35   scaleFactor{ 0.f },
36   isItalicRequired{ false },
37   isBoldRequired{ false }
38 {
39 }
40
41 GlyphInfo::GlyphInfo( FontId font, GlyphIndex i )
42 : fontId{ font },
43   index{ i },
44   width( 0.f ),
45   height{ 0.f },
46   xBearing{ 0.f },
47   yBearing{ 0.f },
48   advance{ 0.f },
49   scaleFactor{ 0.f },
50   isItalicRequired{ false },
51   isBoldRequired{ false }
52 {
53 }
54
55 } // namespace TextAbstraction
56
57 } // namespace Dali