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#ifndef SFNTLY_CPP_SRC_SFNTLY_TABLE_BITMAP_SIMPLE_BITMAP_GLYPH_H_ 186b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com#define SFNTLY_CPP_SRC_SFNTLY_TABLE_BITMAP_SIMPLE_BITMAP_GLYPH_H_ 196b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 206b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com#include "sfntly/table/bitmap/bitmap_glyph.h" 216b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 226b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.comnamespace sfntly { 236b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 246b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.comclass SimpleBitmapGlyph : public BitmapGlyph, 256b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com public RefCounted<SimpleBitmapGlyph> { 266b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com public: 27333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com class Builder : public BitmapGlyph::Builder, 28333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com public RefCounted<Builder> { 29333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com public: 30333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com Builder(WritableFontData* data, int32_t format); 31333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com Builder(ReadableFontData* data, int32_t format); 32333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com virtual ~Builder(); 33333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com 34333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com virtual CALLER_ATTACH FontDataTable* SubBuildTable(ReadableFontData* data); 35333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com }; 36333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.com 376b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com SimpleBitmapGlyph(ReadableFontData* data, int32_t format); 386b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com virtual ~SimpleBitmapGlyph(); 396b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com}; 40333edd91cb32d6acfd0307ba2ae8f60baed75ff4arthurhsu@google.comtypedef Ptr<SimpleBitmapGlyph> SimpleBitmapGlyphPtr; 416b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 426b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com} // namespace sfntly 436b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com 446b8e073e978eed96605da6f92d6db740a39864baarthurhsu@google.com#endif // SFNTLY_CPP_SRC_SFNTLY_TABLE_BITMAP_SIMPLE_BITMAP_GLYPH_H_ 45