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

Method LoadFont

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:1880–1900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1878}
1879
1880bool IMGUIManager::LoadFont(FixedString const& name, char const* path, float size)
1881{
1882 auto curFont = fonts_.find(name);
1883 if (curFont != fonts_.end()
1884 && curFont->Value().Path == path
1885 && curFont->Value().SizePixels == size) {
1886 return true;
1887 }
1888
1889 FontData font{
1890 .Key = name,
1891 .Path = path,
1892 .SizePixels = size
1893 };
1894 if (LoadFont(font)) {
1895 fonts_.set(name, font);
1896 return true;
1897 } else {
1898 return false;
1899 }
1900}
1901
1902const ImWchar* GetGlyphRangesTurkish()
1903{

Callers

nothing calls this directly

Calls 10

GetGlyphRangesTurkishFunction · 0.85
LoadExternalFileFunction · 0.85
GetGlobalSwitchesMethod · 0.80
findMethod · 0.45
endMethod · 0.45
ValueMethod · 0.45
setMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected