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

Method GetBold

Source/Engine/Render2D/FontAsset.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127FontAsset* FontAsset::GetBold()
128{
129 ScopeLock lock(Locker);
130 if (EnumHasAnyFlags(_options.Flags, FontFlags::Bold))
131 return this;
132 if (!_virtualBold)
133 {
134 _virtualBold = Content::CreateVirtualAsset<FontAsset>();
135 _virtualBold->Init(_fontFile);
136 auto options = _options;
137 options.Flags |= FontFlags::Bold;
138 _virtualBold->SetOptions(options);
139 }
140 return _virtualBold;
141}
142
143FontAsset* FontAsset::GetItalic()
144{

Callers 3

GetFontMethod · 0.45
ProcessBoldMethod · 0.45
GetFontMethod · 0.45

Calls 3

EnumHasAnyFlagsFunction · 0.85
InitMethod · 0.45
SetOptionsMethod · 0.45

Tested by

no test coverage detected