Flutter Engine
The Flutter Engine
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
Definition: SkFont.h:35
sk_sp< SkFontMgr > fontMgr
Definition: examples.cpp:32
ShapeResult Shape(const char *ut8text, size_t textByteLen, const SkFont &font, sk_sp< SkFontMgr > fontMgr, const char *locale, float width)
Definition: shape.cpp:301
font
Font Metadata and Metrics.
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