blob: 795d7910311ae16897f2cd4fc02ae0f29d28fb15 [file] [log] [blame]
halcanary86b6eab2016-08-17 07:57:27 -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 SkPDFMakeCIDGlyphWidthsArray_DEFINED
8#define SkPDFMakeCIDGlyphWidthsArray_DEFINED
9
10#include "SkPDFTypes.h"
11
Herb Derby5fd955e2019-01-16 11:23:29 -050012class SkStrike;
Hal Canary31355982018-10-19 12:21:41 -040013class SkPDFGlyphUse;
halcanary86b6eab2016-08-17 07:57:27 -070014
Hal Canary55325b72017-01-03 10:36:17 -050015/* PDF 32000-1:2008, page 270: "The array's elements have a variable
halcanary86b6eab2016-08-17 07:57:27 -070016 format that can specify individual widths for consecutive CIDs or
17 one width for a range of CIDs". */
Herb Derby5fd955e2019-01-16 11:23:29 -050018std::unique_ptr<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkStrike* cache,
Hal Canary74801582018-12-18 16:30:41 -050019 const SkPDFGlyphUse* subset,
20 uint16_t emSize,
21 int16_t* defaultWidth);
halcanary86b6eab2016-08-17 07:57:27 -070022
23#endif // SkPDFMakeCIDGlyphWidthsArray_DEFINED