lejeffe / MonsterHP

Show the current monster hp based on either percentage remaining or current hp
BSD 2-Clause "Simplified" License
0 stars 10 forks source link

Disable anti-aliasing for small custom fonts #27

Closed logarrhythmic closed 8 months ago

logarrhythmic commented 9 months ago

I want to have the overlay font size really small, but anti-aliasing is always turned on for custom fonts currently. Looking at the code, anti-aliasing is turned off if a custom font is not used. There are really small pixel fonts that I would like to use without antialiasing, like Teeny Tiny Pixls, only 5 pixels high compared to the 12 pixels of the "Small" default font and still readable. There's also a 3x3 font I found, which is not enough to fully render numbers, but the vague shapes would still technically work.

I think there are two ways this could be improved: you could either

lejeffe commented 9 months ago

As far as i can see now, the AA is only use on the default runescape font. This shouldn't be enabled on others. Correct me if wrong

logarrhythmic commented 9 months ago

image Custom font off on the left, on (roboto) on the right, 16px

logarrhythmic commented 9 months ago

I think it might depend on the font since it's not explicitly set, Courier doesn't get anti-aliased for me.