Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » URGENT need help font problem

This thread is locked; no one can reply to it. rss feed Print
URGENT need help font problem
duncan perham
Member #15,403
November 2013

Sorry for double post, but I really need some help in sorting out this font issue. On some machines all the fonts are missing some characters.
However on over a dozen machines winxp, win 7 win8 and win 10, the problem is not present.

I am not sure of exact cause as I have tried numerous graphic cards and every OS, its works perfect on every machine i have.

The game lauches on steam in 7 hours, quite a lot of people may be affected by this.

jmasterx
Member #11,410
October 2009

Have you tried explicitly using the GL backend?

duncan perham
Member #15,403
November 2013

How do you do that?

jmasterx
Member #11,410
October 2009

Just bitwise OR ALLEGRO_OPENGL to your new display flags:

    int flags = ALLEGRO_GENERATE_EXPOSE_EVENTS;
    if(!disableShaders)
      flags |= ALLEGRO_PROGRAMMABLE_PIPELINE;
    if(usingGL)
      flags |=  ALLEGRO_OPENGL;
    if(fullscreen)
      flags |= ALLEGRO_FULLSCREEN_WINDOW;
    al_set_new_display_flags(flags);

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

SiegeLord
Member #7,827
October 2006
avatar

I've implemented a workabout for a missing characters in a TTF font issue (possibly same issue as yours) in this pull request: https://github.com/liballeg/allegro5/pull/562

To use it, you'll obviously have to rebuild Allegro (I can help you out with that if you need help), and then add this to your code before you load TTF fonts:

al_set_config_value(al_get_system_config(), "ttf", "lock_whole_page", "true");

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

duncan perham
Member #15,403
November 2013

Thanks for the response, I will look into those things. Big problem at the moment is I cant find a computer that I can test it on where the text is missing. So its a bit difficult to know if Ive fixed it or not.

First thing I will do is try to get it updated as much as possible.

Go to: