MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / load

Method load

Source/Engine/Render2D/FontAsset.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35Asset::LoadResult FontAsset::load()
36{
37 // Load font data
38 auto chunk0 = GetChunk(0);
39 if (chunk0 == nullptr || chunk0->IsMissing())
40 return LoadResult::MissingDataChunk;
41 _fontFile.Swap(chunk0->Data);
42
43 // Create font face
44 return Init() ? LoadResult::Failed : LoadResult::Ok;
45}
46
47void FontAsset::unload(bool isReloading)
48{

Callers

nothing calls this directly

Calls 4

GetChunkFunction · 0.85
IsMissingMethod · 0.80
InitFunction · 0.50
SwapMethod · 0.45

Tested by

no test coverage detected