parent
e8382247f1
commit
24fabdf8c4
|
|
@ -499,7 +499,9 @@ static bool ImGui_ImplFreeType_FontBakedLoadGlyph(ImFontAtlas* atlas, ImFontConf
|
|||
const float rasterizer_density = src->RasterizerDensity * baked->RasterizerDensity;
|
||||
|
||||
// Load metrics only mode
|
||||
const float advance_x = (slot->advance.x / FT_SCALEFACTOR) / rasterizer_density;
|
||||
// tildearrow: this fixes blurry text.
|
||||
const float advance_x = (float)FT_CEIL(slot->advance.x-((src->FontLoaderFlags&ImGuiFreeTypeLoaderFlags_NoHinting)?31:0));
|
||||
//const float advance_x = (slot->advance.x / FT_SCALEFACTOR) / rasterizer_density;
|
||||
if (out_advance_x != NULL)
|
||||
{
|
||||
IM_ASSERT(out_glyph == NULL);
|
||||
|
|
|
|||
|
|
@ -6607,6 +6607,11 @@ void FurnaceGUI::applyUISettings(bool updateFonts) {
|
|||
//fontConf.RasterizerMultiply=1.5;
|
||||
//fontConfP.RasterizerMultiply=1.5;
|
||||
|
||||
fontConf.PixelSnapH=0;
|
||||
fontConfP.PixelSnapH=0;
|
||||
fontConfB.PixelSnapH=0;
|
||||
fontConfH.PixelSnapH=0;
|
||||
|
||||
if (settings.mainFont<0 || settings.mainFont>6) settings.mainFont=0;
|
||||
if (settings.headFont<0 || settings.headFont>6) settings.headFont=0;
|
||||
if (settings.patFont<0 || settings.patFont>6) settings.patFont=0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue