added some kbm stuff

This commit is contained in:
2026-09-13 19:41:44 -07:00
parent 82e802873f
commit 5023e0a8d6
217 changed files with 3744 additions and 235 deletions
@@ -324,7 +324,17 @@ rrbool UIBitmapFont::GetGlyphBitmap(S32 glyph,F32 pixel_scale,IggyBitmapCharacte
bitmap->top_left_y = -((S32) m_cFontData->getFontData()->m_uiGlyphHeight) * m_cFontData->getFontData()->m_fAscent;
bitmap->oversample = 0;
#ifdef _WINDOWS64
{
float frac = targetPixelScale - floorf(targetPixelScale);
if (frac < 0.0f) frac = 0.0f;
if (frac > 1.0f) frac = 1.0f;
float distToInt = (frac < 0.5f) ? frac : (1.0f - frac);
bitmap->point_sample = (distToInt < 0.03f);
}
#else
bitmap->point_sample = true;
#endif
// 4J-JEV:
// pixel_scale == font size chosen in flash.