Ogre Version: :1.10.7:
Operating System: :windows7:
Render System: :OpenGL:
When I set font size to 48, the program stop at the begin page with no more log. I followed debug mode try to find where it stop and found the code above.
If I change the font size down to 20, my program is fine to work. I have a guess is that when ogre load a big size of font, it was too slow to load all of it and the initialize just go to next step.
But actually I have no idea what happened there.
Is anyone have any ideas?
edit: All right, I found the problem what happened here. It is too big for my program to read all font with a big font size in the beginning.
So is there any way to load font dynamic?
By the way, my font file is simhei.ttf, which is Chinese letter.
Thanks,
Richard
[SOLVED] crash when set a big font size
-
- Halfling
- Posts: 77
- Joined: Wed Feb 01, 2017 4:02 pm
- x 1
[SOLVED] crash when set a big font size
Last edited by Whisperd130 on Thu Sep 13, 2018 8:06 am, edited 1 time in total.
-
- OGRE Team Member
- Posts: 1995
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1075
- Contact:
Re: [1.10.7] crash when set a big font size
fonts are ordinary resources and thus also follow the resource lazy loading rules:
https://ogrecave.github.io/ogre/api/lat ... ml#details
https://ogrecave.github.io/ogre/api/lat ... ml#details
-
- Halfling
- Posts: 77
- Joined: Wed Feb 01, 2017 4:02 pm
- x 1
Re: [1.10.7] crash when set a big font size
Actually, it was too big for my program to initialize all the font in the beginning.