-
Notifications
You must be signed in to change notification settings - Fork 629
Open
Labels
Description
Firstly, thanks for such awesome tool!
I plugged libfreetype and successfully loaded Fira Code font, but fonts are still blurry on 4k, i tried to adjust fringeScale, but it didn't made any sharpness, only overall scale, that can be also achieved with glfw window flags.
I see a lot of commented code related to fringeScale in your recent commits (Blueprints example), but can't spot the place where do i need to start my further investigation.
I know that the issue more likely must be submitted directly to imgui project, but there is custom/modified version of imgui in your project (especially with fringeScale).
Can you suggest the direction for further issue solving ?
Fonts are loaded in a such way:
ImGuiIO& io = ImGui::GetIO();
ImFontConfig font_config = ImFontConfig();
font_config.OversampleH = 7;
font_config.OversampleV = 5;
io.Fonts->AddFontFromFileTTF("../FiraCode-Regular.ttf", 16.0f, &font_config);
unsigned int flags = ImGuiFreeType::ForceAutoHint;
ImGuiFreeType::BuildFontAtlas(io.Fonts, flags);
unsigned char* out_pixels;
int out_width;
int out_height;
io.Fonts->GetTexDataAsRGBA32(&out_pixels, &out_width, &out_height);
OS: Ubuntu 19.10, libfreetype 2.10.1