// Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "include/core/SkFont.h" #include "include/core/SkTextBlob.h" #include #include namespace SkPlainTextEditor { struct ShapeResult { sk_sp blob; std::vector lineBreakOffsets; std::vector glyphBounds; std::vector wordBreaks; int verticalAdvance; }; ShapeResult Shape(const char* ut8text, size_t textByteLen, const SkFont& font, const char* locale, float width); } // namespace SkPlainTextEditor