[4.0] Support software styling
[platform/core/uifw/dali-adaptor.git] / text / dali / devel-api / text-abstraction / glyph-info.cpp
1 /*
2  * Copyright (c) 2015 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( 0 ),
29   index( 0 ),
30   width( 0 ),
31   height( 0 ),
32   xBearing( 0 ),
33   yBearing( 0 ),
34   advance( 0 ),
35   scaleFactor( 0 ),
36   softwareItalic(false),
37   softwareBold(false)
38 {
39 }
40
41 GlyphInfo::GlyphInfo( FontId font, GlyphIndex i )
42 : fontId( font ),
43   index( i ),
44   width( 0 ),
45   height( 0 ),
46   xBearing( 0 ),
47   yBearing( 0 ),
48   advance( 0 ),
49   scaleFactor( 0 ),
50   softwareItalic(false),
51   softwareBold(false)
52 {
53 }
54
55 } // namespace TextAbstraction
56
57 } // namespace Dali