|
@@ -682,7 +682,9 @@ void InitWindow(int width, int height, const char *title)
|
|
// Load default font
|
|
// Load default font
|
|
// NOTE: External functions (defined in module: text)
|
|
// NOTE: External functions (defined in module: text)
|
|
LoadFontDefault();
|
|
LoadFontDefault();
|
|
- SetShapesTexture(GetFontDefault().texture, GetFontDefault().recs[95]);
|
|
|
|
|
|
+ Rectangle rec = GetFontDefault().recs[95];
|
|
|
|
+ // NOTE: We setup a 1px padding on char rectangle to avoid pixel bleeding on MSAA filtering
|
|
|
|
+ SetShapesTexture(GetFontDefault().texture, (Rectangle){ rec.x + 1, rec.y + 1, rec.width - 2, rec.height - 2 });
|
|
#endif
|
|
#endif
|
|
#if defined(PLATFORM_DESKTOP) && defined(SUPPORT_HIGH_DPI)
|
|
#if defined(PLATFORM_DESKTOP) && defined(SUPPORT_HIGH_DPI)
|
|
// Set default font texture filter for HighDPI (blurry)
|
|
// Set default font texture filter for HighDPI (blurry)
|
|
@@ -4136,7 +4138,9 @@ static void AndroidCommandCallback(struct android_app *app, int32_t cmd)
|
|
// Load default font
|
|
// Load default font
|
|
// NOTE: External function (defined in module: text)
|
|
// NOTE: External function (defined in module: text)
|
|
LoadFontDefault();
|
|
LoadFontDefault();
|
|
- SetShapesTexture(GetFontDefault().texture, GetFontDefault().recs[95]);
|
|
|
|
|
|
+ Rectangle rec = GetFontDefault().recs[95];
|
|
|
|
+ // NOTE: We setup a 1px padding on char rectangle to avoid pixel bleeding on MSAA filtering
|
|
|
|
+ SetShapesTexture(GetFontDefault().texture, (Rectangle){ rec.x + 1, rec.y + 1, rec.width - 2, rec.height - 2 });
|
|
#endif
|
|
#endif
|
|
|
|
|
|
// TODO: GPU assets reload in case of lost focus (lost context)
|
|
// TODO: GPU assets reload in case of lost focus (lost context)
|