Add OffscreenApplication
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / text-abstraction / glyph-info.cpp
1 /*
2  * Copyright (c) 2020 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 namespace TextAbstraction
24 {
25 GlyphInfo::GlyphInfo()
26 : fontId{0u},
27   index{0u},
28   width(0.f),
29   height{0.f},
30   xBearing{0.f},
31   yBearing{0.f},
32   advance{0.f},
33   scaleFactor{0.f},
34   isItalicRequired{false},
35   isBoldRequired{false}
36 {
37 }
38
39 GlyphInfo::GlyphInfo(FontId font, GlyphIndex i)
40 : fontId{font},
41   index{i},
42   width(0.f),
43   height{0.f},
44   xBearing{0.f},
45   yBearing{0.f},
46   advance{0.f},
47   scaleFactor{0.f},
48   isItalicRequired{false},
49   isBoldRequired{false}
50 {
51 }
52
53 } // namespace TextAbstraction
54
55 } // namespace Dali