Merge branch 'devel/master' into sandbox/dkdk/tizen
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / text-abstraction / bitmap-font.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 // FILE HEADER
19 #include <dali/devel-api/text-abstraction/bitmap-font.h>
20
21 namespace Dali
22 {
23 namespace TextAbstraction
24 {
25 BitmapGlyph::BitmapGlyph()
26 : url{},
27   utf32{0u},
28   ascender{0.f},
29   descender{0.f}
30 {
31 }
32
33 BitmapGlyph::BitmapGlyph(const std::string& url, GlyphIndex utf32, float ascender, float descender)
34 : url{url},
35   utf32{utf32},
36   ascender{ascender},
37   descender{descender}
38 {
39 }
40
41 BitmapGlyph::~BitmapGlyph()
42 {
43 }
44
45 BitmapFont::BitmapFont()
46 : glyphs{},
47   name{},
48   ascender{0.f},
49   descender{0.f},
50   underlinePosition{0.f},
51   underlineThickness{1.f},
52   isColorFont{false}
53 {
54 }
55
56 BitmapFont::~BitmapFont()
57 {
58 }
59
60 } // namespace TextAbstraction
61
62 } // namespace Dali