MCPcopy Create free account
hub / github.com/aseprite/laf / commitRunBuffer

Method commitRunBuffer

examples/text_shape.cpp:49–57  ·  view source on GitHub ↗

TextBlob::RunHandler impl

Source from the content-addressed store, hash-verified

47
48 // TextBlob::RunHandler impl
49 void commitRunBuffer(TextBlob::RunInfo& info) override
50 {
51 Box box;
52 for (int i = 0; i < info.glyphCount; ++i) {
53 box.utf8Range = info.getGlyphUtf8Range(i);
54 box.bounds = info.getGlyphBounds(i);
55 m_boxes.push_back(box);
56 }
57 }
58
59 private:
60 std::vector<Box> m_boxes;

Callers

nothing calls this directly

Calls 2

getGlyphUtf8RangeMethod · 0.80
getGlyphBoundsMethod · 0.45

Tested by

no test coverage detected