Home | History | Annotate | Download | only in pdfapi
      1 /*
      2  * Copyright 2013 Google Inc.
      3 
      4  * Use of this source code is governed by a BSD-style license that can be
      5  * found in the LICENSE file.
      6  */
      7 
      8 #ifndef SkPdfTrueTypeFontDictionary_DEFINED
      9 #define SkPdfTrueTypeFontDictionary_DEFINED
     10 
     11 #include "SkPdfType1FontDictionary_autogen.h"
     12 
     13 class SkPdfTrueTypeFontDictionary : public SkPdfType1FontDictionary {
     14 public:
     15 public:
     16    SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return this;}
     17    const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return this;}
     18 
     19 private:
     20    SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return (SkPdfMultiMasterFontDictionary*)this;}
     21    const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return (const SkPdfMultiMasterFontDictionary*)this;}
     22 
     23    SkPdfType3FontDictionary* asType3FontDictionary() {return (SkPdfType3FontDictionary*)this;}
     24    const SkPdfType3FontDictionary* asType3FontDictionary() const {return (const SkPdfType3FontDictionary*)this;}
     25 
     26 public:
     27    bool valid() const {return true;}
     28   SkString Subtype(SkPdfNativeDoc* doc);
     29   bool has_Subtype() const;
     30 };
     31 
     32 #endif  // SkPdfTrueTypeFontDictionary_DEFINED
     33