fix path to fonts
This commit is contained in:
parent
a1b905d40d
commit
60f263f57e
@ -12,7 +12,7 @@ namespace try_engine::style::fonts
|
||||
|
||||
// HERE
|
||||
// эту порнографию с путями нужно решить
|
||||
inline const std::string PATH = "/mnt/develop/projects/cpp/fonmix/emuse.v.2.0.0/src/core/internal/";
|
||||
inline const std::string PATH = "/mnt/develop/projects/cpp/try_engine/src/try_engine/internal";
|
||||
|
||||
inline void init()
|
||||
{
|
||||
@ -20,7 +20,7 @@ namespace try_engine::style::fonts
|
||||
float size_pixels = 16.0f;
|
||||
static const ImWchar icon_ranges[] = { ICON_MIN_FK, ICON_MAX_FK, 0 };
|
||||
|
||||
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Monserrat/static/Montserrat-Italic.ttf")).c_str(), size_pixels, NULL, io.Fonts->GetGlyphRangesCyrillic());
|
||||
io.Fonts->AddFontFromFileTTF((PATH + std::string("/fonts/Montserrat/static/Montserrat-Italic.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());
|
||||
|
Reference in New Issue
Block a user