MCPcopy Create free account
hub / github.com/Norbyte/bg3se / GetFont

Method GetFont

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:1971–1984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969}
1970
1971IMGUIManager::FontData* IMGUIManager::GetFont(FixedString const& name)
1972{
1973 if (reducedFontAtlas_) {
1974 if (name == GFS.strTiny || GFS.strSmall) {
1975 return fonts_.try_get(GFS.strMedium);
1976 }
1977
1978 if (name == GFS.strLarge) {
1979 return fonts_.try_get(GFS.strBig);
1980 }
1981 }
1982
1983 return fonts_.try_get(name);
1984}
1985
1986void IMGUIManager::SetScale(float scale)
1987{

Callers 1

Calls 1

try_getMethod · 0.45

Tested by

no test coverage detected