Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shape.h
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
6
7#include <cstddef>
8#include <vector>
9
10namespace SkPlainTextEditor {
11
14 std::vector<std::size_t> lineBreakOffsets;
15 std::vector<SkRect> glyphBounds;
16 std::vector<bool> wordBreaks;
18};
19
20ShapeResult Shape(const char* ut8text,
21 size_t textByteLen,
22 const SkFont& font,
24 const char* locale,
25 float width);
26
27} // namespace SkPlainTextEditor
Shape
sk_sp< SkFontMgr > fontMgr
Definition examples.cpp:32
int32_t width
std::vector< bool > wordBreaks
Definition shape.h:16
std::vector< SkRect > glyphBounds
Definition shape.h:15
sk_sp< SkTextBlob > blob
Definition shape.h:13
std::vector< std::size_t > lineBreakOffsets
Definition shape.h:14