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 #ifndef SFNTLY_CPP_SRC_SFNTLY_TABLE_BITMAP_SIMPLE_BITMAP_GLYPH_H_ 18 #define SFNTLY_CPP_SRC_SFNTLY_TABLE_BITMAP_SIMPLE_BITMAP_GLYPH_H_ 19 20 #include "sfntly/table/bitmap/bitmap_glyph.h" 21 22 namespace sfntly { 23 24 class SimpleBitmapGlyph : public BitmapGlyph, 25 public RefCounted<SimpleBitmapGlyph> { 26 public: 27 class Builder : public BitmapGlyph::Builder, 28 public RefCounted<Builder> { 29 public: 30 Builder(WritableFontData* data, int32_t format); 31 Builder(ReadableFontData* data, int32_t format); 32 virtual ~Builder(); 33 34 virtual CALLER_ATTACH FontDataTable* SubBuildTable(ReadableFontData* data); 35 }; 36 37 SimpleBitmapGlyph(ReadableFontData* data, int32_t format); 38 virtual ~SimpleBitmapGlyph(); 39 }; 40 typedef Ptr<SimpleBitmapGlyph> SimpleBitmapGlyphPtr; 41 42 } // namespace sfntly 43 44 #endif // SFNTLY_CPP_SRC_SFNTLY_TABLE_BITMAP_SIMPLE_BITMAP_GLYPH_H_ 45