MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / set_data

Method set_data

modules/gui/gui/src/backend/text_server/font.cpp:1588–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1586}
1587
1588void FontFile::set_data(const PackedByteArray& p_data)
1589{
1590 data = p_data;
1591 data_ptr = data.ptr();
1592 data_size = data.size();
1593
1594 for (int i = 0; i < cache.size(); i++)
1595 {
1596 if (cache[i].is_valid())
1597 {
1598 TS->font_set_data_ptr(cache[i], data_ptr, data_size);
1599 }
1600 }
1601}
1602
1603PackedByteArray FontFile::get_data() const
1604{

Callers 2

createMethod · 0.45
_init_fontFunction · 0.45

Calls 3

ptrMethod · 0.45
sizeMethod · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected