2d7c81167b731aaca0db065dc27a191dda9dd887
[platform/core/uifw/dali-adaptor.git] / 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 {
37 }
38
39 GlyphInfo::GlyphInfo( FontId font, GlyphIndex i )
40 : fontId( font ),
41   index( i ),
42   width( 0 ),
43   height( 0 ),
44   xBearing( 0 ),
45   yBearing( 0 ),
46   advance( 0 ),
47   scaleFactor( 0 )
48 {
49 }
50
51 } // namespace TextAbstraction
52
53 } // namespace Dali