16b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com/* 26b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * Copyright 2011 Google Inc. All Rights Reserved. 36b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * 46b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * Licensed under the Apache License, Version 2.0 = the "License"); 56b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * you may not use this file except in compliance with the License. 66b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * You may obtain a copy of the License at 76b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * 86b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * http://www.apache.org/licenses/LICENSE-2.0 96b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * 106b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * Unless required by applicable law or agreed to in writing, software 116b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * distributed under the License is distributed on an "AS IS" BASIS, 126b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 136b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * See the License for the specific language governing permissions and 146b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com * limitations under the License. 156b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com */ 166b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 176b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com#include "sfntly/table/bitmap/simple_bitmap_glyph.h" 186b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 196b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.comnamespace sfntly { 206b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 216b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.comSimpleBitmapGlyph::SimpleBitmapGlyph(ReadableFontData* data, int32_t format) 226b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com : BitmapGlyph(data, format) { 236b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com} 246b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 256b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.comSimpleBitmapGlyph::~SimpleBitmapGlyph() { 266b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com} 276b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 28333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.comSimpleBitmapGlyph::Builder::Builder(ReadableFontData* data, int32_t format) 29333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com : BitmapGlyph::Builder(data, format) { 30333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com} 31333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com 32333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.comSimpleBitmapGlyph::Builder::Builder(WritableFontData* data, int32_t format) 33333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com : BitmapGlyph::Builder(data, format) { 34333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com} 35333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com 36333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.comSimpleBitmapGlyph::Builder::~Builder() { 37333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com} 38333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com 39333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.comCALLER_ATTACH FontDataTable* 40333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.comSimpleBitmapGlyph::Builder::SubBuildTable(ReadableFontData* data) { 41333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com Ptr<SimpleBitmapGlyph> glyph = new SimpleBitmapGlyph(data, format()); 42333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com return glyph.Detach(); 43333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com} 44333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com 456b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com} // namespace sfntly 46