2 * Copyright 2016 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
7 #ifndef SkPDFMakeToUnicodeCmap_DEFINED
8 #define SkPDFMakeToUnicodeCmap_DEFINED
10 #include "include/core/SkStream.h"
11 #include "src/pdf/SkPDFFont.h"
13 std::unique_ptr<SkStreamAsset> SkPDFMakeToUnicodeCmap(
14 const SkUnichar* glyphToUnicode,
15 const SkPDFGlyphUse* subset,
17 SkGlyphID firstGlyphID,
18 SkGlyphID lastGlyphID);
20 // Exposed for unit testing.
21 void SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode,
22 const SkPDFGlyphUse* subset,
23 SkDynamicMemoryWStream* cmap,
25 SkGlyphID firstGlyphID,
26 SkGlyphID lastGlyphID);
28 #endif // SkPDFMakeToUnicodeCmap_DEFINED