add new fonts size

This commit is contained in:
chatlanin 2023-03-05 13:28:50 +03:00
parent 11bd6f403e
commit 05f2c33b00

View File

@ -21,19 +21,33 @@ namespace try_engine::style::fonts
static const ImWchar icon_ranges[] = { ICON_MIN_FK, ICON_MAX_FK, 0 };
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * .25f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * .5f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * .75f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.15f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.25f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.35f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.4f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.5f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.6f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 1.75f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Regular.ttf")).c_str(), size_pixels * 2.0f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Bold.ttf")).c_str(), size_pixels, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Bold.ttf")).c_str(), size_pixels * 1.0f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Bold.ttf")).c_str(), size_pixels * 1.25f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Bold.ttf")).c_str(), size_pixels * 1.5f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Bold.ttf")).c_str(), size_pixels * 1.75f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Ruda/Ruda-Bold.ttf")).c_str(), size_pixels * 2.0f, NULL, io.Fonts->GetGlyphRangesCyrillic());
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 0.50f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 0.25f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 0.5f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 0.75f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 1.1f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 1.f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 1.25f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 1.5f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 1.65f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 1.75f, NULL, icon_ranges);
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/forkawesome-webfont.ttf")).c_str(), size_pixels * 2.0f, NULL, icon_ranges);
};