Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » TTF font rasterisation inconsistent across platforms (text overflow)

Credits go to Elias for helping out!
This thread is locked; no one can reply to it. rss feed Print
TTF font rasterisation inconsistent across platforms (text overflow)
Bruce Perry
Member #270
April 2000

It's come to my attention[1] that text which fits on the screen in Windows (at least for me), overflows when run under Wine. That implies that the TTF loader is using Windows to get its font rasterisation done. Is there any scope for an 'our code only' approach to be available? Does the underlying FreeType library have this, and is it just a question of offering a flag in Allegro's API?

[EDIT]
It's possible that this issue doesn't exist and the problem was actually the whole screen overflowing off the ... screen (see later posts in the referred-to thread). Anyone know?

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Elias
Member #358
May 2000

Can you provide two screenshots, one how it looks and one how it should look?

--
"Either help out or stop whining" - Evert

Bruce Perry
Member #270
April 2000

I no longer have any reason to believe this issue exists :)

However, the following three screenshots should all be directly comparable, since the game at least thought the display size was the game's native 1920x1080 in all cases. If you want to align them and do difference tests, you can. Remember, with allegro.cc you have to Shift-click to open them at their full size.

A broken screenshot of Eric's from the attached thread:

{"name":"610359","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/4\/04f0405e5488ccaca897fe813a195a74.png","w":1600,"h":900,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/4\/04f0405e5488ccaca897fe813a195a74"}610359

A screenshot of Eric's from after he mostly fixed it (still some clipping at the top and bottom of the whole screen):

{"name":"610361","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/a\/8a263e6e16578ae7eb12a55c61987835.png","w":1600,"h":900,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/a\/8a263e6e16578ae7eb12a55c61987835"}610361

My own screenshot:

{"name":"0256c1386254ebbedb4f285c8076040c.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/2\/0256c1386254ebbedb4f285c8076040c.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/2\/0256c1386254ebbedb4f285c8076040c"}0256c1386254ebbedb4f285c8076040c.png

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Go to: