Changeset - r28724:2e561fc3f30f
[Not reviewed]
master
0 1 0
Peter Nelson - 10 months ago 2024-02-09 20:36:13
peter1138@openttd.org
Fix #12037: Blurry OpenTTD font on Mac OS. (#12047)
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/os/macosx/font_osx.cpp
Show inline comments
 
@@ -263,8 +263,7 @@ const Sprite *CoreTextFontCache::Interna
 
		CGContextSetAllowsFontSubpixelQuantization(context.get(), !use_aa);
 
		CGContextSetShouldSmoothFonts(context.get(), false);
 

	
 
		float offset = 0.5f; // CoreText uses 0.5 as pixel centers. We want pixel alignment.
 
		CGPoint pos{offset - bounds.origin.x, offset - bounds.origin.y};
 
		CGPoint pos{-bounds.origin.x, -bounds.origin.y};
 
		CTFontDrawGlyphs(this->font.get(), &glyph, &pos, 1, context.get());
 

	
 
		/* Draw shadow for medium size. */
0 comments (0 inline, 0 general)