xref: /aosp_15_r20/external/pdfium/core/fpdfapi/render/charposlist.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2016 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FPDFAPI_RENDER_CHARPOSLIST_H_
8 #define CORE_FPDFAPI_RENDER_CHARPOSLIST_H_
9 
10 #include <stdint.h>
11 
12 #include <vector>
13 
14 #include "third_party/base/containers/span.h"
15 
16 class CPDF_Font;
17 class TextCharPos;
18 
19 std::vector<TextCharPos> GetCharPosList(pdfium::span<const uint32_t> char_codes,
20                                         pdfium::span<const float> char_pos,
21                                         CPDF_Font* font,
22                                         float font_size);
23 
24 #endif  // CORE_FPDFAPI_RENDER_CHARPOSLIST_H_
25