blob: 656af913d0bcb20ac672cdcd4a6853fec23136ac [file] [log] [blame]
halcanary8eccc302016-08-09 13:04:34 -07001/*
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#ifndef SkPDFMakeToUnicodeCmap_DEFINED
8#define SkPDFMakeToUnicodeCmap_DEFINED
9
10#include "SkTDArray.h"
11#include "SkPDFFont.h"
12#include "SkStream.h"
13
14sk_sp<SkPDFStream> SkPDFMakeToUnicodeCmap(
Hal Canary46cc3da2018-05-09 11:50:34 -040015 const SkUnichar* glyphToUnicode,
halcanary530032a2016-08-18 14:22:52 -070016 const SkBitSet* subset,
halcanary8eccc302016-08-09 13:04:34 -070017 bool multiByteGlyphs,
18 SkGlyphID firstGlyphID,
19 SkGlyphID lastGlyphID);
20
21// Exposed for unit testing.
Hal Canary46cc3da2018-05-09 11:50:34 -040022void SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode,
halcanary530032a2016-08-18 14:22:52 -070023 const SkBitSet* subset,
halcanary8eccc302016-08-09 13:04:34 -070024 SkDynamicMemoryWStream* cmap,
25 bool multiByteGlyphs,
26 SkGlyphID firstGlyphID,
27 SkGlyphID lastGlyphID);
28
29#endif // SkPDFMakeToUnicodeCmap_DEFINED