Home | History | Annotate | Download | only in pdf
      1 /*
      2  * Copyright 2016 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 SkPDFConvertType1FontStream_DEFINED
      9 #define SkPDFConvertType1FontStream_DEFINED
     10 
     11 #include "SkData.h"
     12 #include "SkStream.h"
     13 
     14 /*
     15   "A standard Type 1 font program, as described in the Adobe Type 1
     16   Font Format specification, consists of three parts: a clear-text
     17   portion (written using PostScript syntax), an encrypted portion, and
     18   a fixed-content portion.  The fixed-content portion contains 512
     19   ASCII zeros followed by a cleartomark operator, and perhaps followed
     20   by additional data. Although the encrypted portion of a standard
     21   Type 1 font may be in binary or ASCII hexadecimal format, PDF
     22   supports only the binary format."
     23 */
     24 sk_sp<SkData> SkPDFConvertType1FontStream(
     25         std::unique_ptr<SkStreamAsset> srcStream, size_t* headerLen,
     26         size_t* dataLen, size_t* trailerLen);
     27 
     28 #endif  // SkPDFConvertType1FontStream_DEFINED
     29