bitmap_glyph.cc revision 28258feb374913d40c347932937500210ba23d7c
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/bitmap/bitmap_glyph.h"
18
19namespace sfntly {
20/******************************************************************************
21 * BitmapGlyph class
22 ******************************************************************************/
23BitmapGlyph::~BitmapGlyph() {
24}
25
26BitmapGlyph::BitmapGlyph(ReadableFontData* data, int32_t format)
27    : SubTable(data), format_(format) {
28}
29
30/******************************************************************************
31 * BitmapGlyph::Builder class
32 ******************************************************************************/
33BitmapGlyph::Builder::~Builder() {
34}
35
36BitmapGlyph::Builder::Builder(WritableFontData* data)
37    : SubTable::Builder(data) {
38}
39
40BitmapGlyph::Builder::Builder(ReadableFontData* data)
41    : SubTable::Builder(data) {
42}
43
44CALLER_ATTACH
45FontDataTable* BitmapGlyph::Builder::SubBuildTable(ReadableFontData* data) {
46  UNREFERENCED_PARAMETER(data);
47  return NULL;
48}
49
50void BitmapGlyph::Builder::SubDataSet() {
51}
52
53int32_t BitmapGlyph::Builder::SubDataSizeToSerialize() {
54  return 0;
55}
56
57bool BitmapGlyph::Builder::SubReadyToSerialize() {
58  return false;
59}
60
61int32_t BitmapGlyph::Builder::SubSerialize(WritableFontData* new_data) {
62  UNREFERENCED_PARAMETER(new_data);
63  return 0;
64}
65
66}  // namespace sfntly
67