halcanary | 86b6eab | 2016-08-17 07:57:27 -0700 | [diff] [blame] | 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 SkPDFMakeCIDGlyphWidthsArray_DEFINED |
| 8 | #define SkPDFMakeCIDGlyphWidthsArray_DEFINED |
| 9 | |
| 10 | #include "SkPDFTypes.h" |
| 11 | |
Herb Derby | 5fd955e | 2019-01-16 11:23:29 -0500 | [diff] [blame] | 12 | class SkStrike; |
Hal Canary | 3135598 | 2018-10-19 12:21:41 -0400 | [diff] [blame] | 13 | class SkPDFGlyphUse; |
halcanary | 86b6eab | 2016-08-17 07:57:27 -0700 | [diff] [blame] | 14 | |
Hal Canary | 55325b7 | 2017-01-03 10:36:17 -0500 | [diff] [blame] | 15 | /* PDF 32000-1:2008, page 270: "The array's elements have a variable |
halcanary | 86b6eab | 2016-08-17 07:57:27 -0700 | [diff] [blame] | 16 | format that can specify individual widths for consecutive CIDs or |
| 17 | one width for a range of CIDs". */ |
Herb Derby | 5fd955e | 2019-01-16 11:23:29 -0500 | [diff] [blame] | 18 | std::unique_ptr<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkStrike* cache, |
Hal Canary | 7480158 | 2018-12-18 16:30:41 -0500 | [diff] [blame] | 19 | const SkPDFGlyphUse* subset, |
| 20 | uint16_t emSize, |
| 21 | int16_t* defaultWidth); |
halcanary | 86b6eab | 2016-08-17 07:57:27 -0700 | [diff] [blame] | 22 | |
| 23 | #endif // SkPDFMakeCIDGlyphWidthsArray_DEFINED |