Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Change Image Scaling Algorithm?

This thread is locked; no one can reply to it. rss feed Print
Change Image Scaling Algorithm?
kaykay
Member #23,741
February 2023

Since there are no variable text size fonts in allegro, I am trying to implement my own. I am rendering all text to a bitmap then rendering that bitmap to the screen. The only problem is that the default interpolation allegro uses to scale images makes the text look bad :'( I was wondering if there are any flags to get past this problem or how I could render text at variable sizes without it looking bad.

{"name":"uyhlN9R.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/6\/66c136bc00a38853c1031bcd78208433.png","w":1284,"h":722,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/6\/66c136bc00a38853c1031bcd78208433"}uyhlN9R.png

As you can see where it says "Scaled down text" it looks bad.

I had an idea of create a list of the same font at multiple sizes and scaling them by interpolating between them to make it look less bad, but maybe there is an easier option. ;D

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: