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 "src/pdf/SkPDFTypes.h" 11 12 class SkStrike; 13 class SkPDFGlyphUse; 14 class SkTypeface; 15 16 /* PDF 32000-1:2008, page 270: "The array's elements have a variable 17 format that can specify individual widths for consecutive CIDs or 18 one width for a range of CIDs". */ 19 std::unique_ptr<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(const SkTypeface& typeface, 20 const SkPDFGlyphUse* subset, 21 SkScalar* defaultAdvance); 22 23 #endif // SkPDFMakeCIDGlyphWidthsArray_DEFINED 24