Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkPDFMakeToUnicodeCmap.h
Go to the documentation of this file.
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#ifndef SkPDFMakeToUnicodeCmap_DEFINED
8#define SkPDFMakeToUnicodeCmap_DEFINED
9
11#include "src/pdf/SkPDFFont.h"
12
13std::unique_ptr<SkStreamAsset> SkPDFMakeToUnicodeCmap(
14 const SkUnichar* glyphToUnicode,
15 const SkPDFGlyphUse* subset,
16 bool multiByteGlyphs,
17 SkGlyphID firstGlyphID,
18 SkGlyphID lastGlyphID);
19
20// Exposed for unit testing.
21void SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode,
22 const SkPDFGlyphUse* subset,
24 bool multiByteGlyphs,
25 SkGlyphID firstGlyphID,
26 SkGlyphID lastGlyphID);
27
28#endif // SkPDFMakeToUnicodeCmap_DEFINED
std::unique_ptr< SkStreamAsset > SkPDFMakeToUnicodeCmap(const SkUnichar *glyphToUnicode, const SkPDFGlyphUse *subset, bool multiByteGlyphs, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID)
void SkPDFAppendCmapSections(const SkUnichar *glyphToUnicode, const SkPDFGlyphUse *subset, SkDynamicMemoryWStream *cmap, bool multiByteGlyphs, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID)
int32_t SkUnichar
Definition SkTypes.h:175
uint16_t SkGlyphID
Definition SkTypes.h:179