1 /*
2  * Copyright 2011 Google Inc. All Rights Reserved.
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 #include "sfntly/table/subtable.h"
18 
19 namespace sfntly {
20 /******************************************************************************
21  * SubTable class
22  ******************************************************************************/
~SubTable()23 SubTable::~SubTable() {}
24 
SubTable(ReadableFontData * data,ReadableFontData * master_data)25 SubTable::SubTable(ReadableFontData* data, ReadableFontData* master_data)
26     : FontDataTable(data), padding_(0) {
27   master_data_ = master_data;
28 }
29 
SubTable(ReadableFontData * data)30 SubTable::SubTable(ReadableFontData* data)
31     : FontDataTable(data), padding_(0) {
32 }
33 
34 /******************************************************************************
35  * SubTable::Builder class
36  ******************************************************************************/
~Builder()37 SubTable::Builder::~Builder() {
38 }
39 
Builder(int32_t data_size)40 SubTable::Builder::Builder(int32_t data_size)
41     : FontDataTable::Builder(data_size) {
42 }
43 
Builder(WritableFontData * data,ReadableFontData * master_data)44 SubTable::Builder::Builder(WritableFontData* data,
45                            ReadableFontData* master_data)
46     : FontDataTable::Builder(data) {
47   master_data_ = master_data;
48 }
49 
Builder(ReadableFontData * data,ReadableFontData * master_data)50 SubTable::Builder::Builder(ReadableFontData* data,
51                            ReadableFontData* master_data)
52     : FontDataTable::Builder(data) {
53   master_data_ = master_data;
54 }
55 
Builder(WritableFontData * data)56 SubTable::Builder::Builder(WritableFontData* data)
57     : FontDataTable::Builder(data) {
58 }
59 
Builder(ReadableFontData * data)60 SubTable::Builder::Builder(ReadableFontData* data)
61     : FontDataTable::Builder(data) {
62 }
63 
64 }  // namespace sfntly
65