![]() |
|
al_load_ttf |
alaaarm
Member #1,191
April 2001
|
Hi, When I am using al_load_ttf_font. The font loads NULL (although the function al_get_font_line_height(font), seems to return the correct height), and then I get the error: The top of my file has the includes: I initialize in this order: then I call ALLEGRO_FONT *font = al_load_ttf_font(path, txt_height, 0); which returns NULL, then gives me the error: Any ideas would be appreciated. |
Matthew Leverton
Supreme Loser
January 1999
![]() |
The font is null... It hasn't been loaded. See al_get_standard_path for how to change into your resources directory prior to loading the font. |
alaaarm
Member #1,191
April 2001
|
Thanks, for some reason |
Matthew Leverton
Supreme Loser
January 1999
![]() |
You can use al_change_directory() with that cstr. Then the future loads will work like you expect. |
|