xref: /third_party/skia/experimental/sktext/src/LogicalRun.cpp
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/experimental/sktext/src/
1cb93a386Sopenharmony_ci// Copyright 2021 Google LLC.
2cb93a386Sopenharmony_ci
3cb93a386Sopenharmony_ci#include "experimental/sktext/src/LogicalRun.h"
4cb93a386Sopenharmony_ci
5cb93a386Sopenharmony_cinamespace skia {
6cb93a386Sopenharmony_cinamespace text {
7cb93a386Sopenharmony_ci
8cb93a386Sopenharmony_ciLogicalRun::LogicalRun(const SkShaper::RunHandler::RunInfo& info, TextIndex textStart, SkScalar glyphOffset)
9cb93a386Sopenharmony_ci    : fFont(info.fFont)
10cb93a386Sopenharmony_ci    , fTextMetrics(info.fFont)
11cb93a386Sopenharmony_ci    , fRunType(LogicalRunType::kText)
12cb93a386Sopenharmony_ci    , fAdvance(info.fAdvance)
13cb93a386Sopenharmony_ci    , fUtf8Range(info.utf8Range)
14cb93a386Sopenharmony_ci    , fRunStart(textStart)
15cb93a386Sopenharmony_ci    , fRunOffset(glyphOffset)
16cb93a386Sopenharmony_ci    , fBidiLevel(info.fBidiLevel)
17cb93a386Sopenharmony_ci{
18cb93a386Sopenharmony_ci    fGlyphs.push_back_n(info.glyphCount);
19cb93a386Sopenharmony_ci    fBounds.push_back_n(info.glyphCount);
20cb93a386Sopenharmony_ci    fPositions.push_back_n(info.glyphCount + 1);
21cb93a386Sopenharmony_ci    fOffsets.push_back_n(info.glyphCount);
22cb93a386Sopenharmony_ci    fClusters.push_back_n(info.glyphCount + 1);
23cb93a386Sopenharmony_ci}
24cb93a386Sopenharmony_ci
25cb93a386Sopenharmony_ci} // namespace text
26cb93a386Sopenharmony_ci} // namespace skia
27

Indexes created Thu Nov 07 10:32:03 CST 2024