Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: Bryan See on June 07, 2017, 10:59:14 am

Title: Fonts.tbl TrueType support upon startup
Post by: Bryan See on June 07, 2017, 10:59:14 am
I'm trying out with a fonts.tbl file with three TrueType fonts and zero VFNT type fonts. However, when starting up, I get this message:

Code: [Select]
Error: At least three fonts have to be loaded but only 0 valid entries were found!
File: font.cpp
Line: 367

ntdll.dll! ZwWaitForSingleObject + 20 bytes
KERNELBASE.dll! WaitForSingleObjectEx + 159 bytes
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
USER32.dll! CallWindowProcW + 1232 bytes
USER32.dll! CallWindowProcW + 460 bytes
USER32.dll! SetRect + 188 bytes
ntdll.dll! KiUserCallbackDispatcher + 36 bytes
win32u.dll! NtUserCreateWindowEx + 20 bytes
USER32.dll! CreateWindowExW + 2474 bytes
USER32.dll! CreateWindowExW + 577 bytes
USER32.dll! CreateWindowExA + 130 bytes
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
USER32.dll! CallWindowProcW + 1232 bytes
USER32.dll! CallWindowProcW + 460 bytes
USER32.dll! SetRect + 188 bytes
ntdll.dll! KiUserCallbackDispatcher + 36 bytes
win32u.dll! NtUserCreateWindowEx + 20 bytes
USER32.dll! CreateWindowExW + 2474 bytes
USER32.dll! CreateWindowExW + 577 bytes
USER32.dll! CreateWindowExA + 130 bytes
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
fred2_open_3_7_5_20170606_43a4664_x64_SSE2.exe! <no symbol>
KERNEL32.DLL! BaseThreadInitThunk + 20 bytes
ntdll.dll! RtlUserThreadStart + 33 bytes

It appears that at least three VF fonts to be defined, not TrueType ones. The engine did not recognize these TrueType fonts upon startup. The solution is at least three fonts of either VF and TrueType must be loaded, so the TrueType fonts must be recognized first.
Title: Re: Fonts.tbl TrueType support upon startup
Post by: The E on June 07, 2017, 11:16:10 am
Please post your fonts.tbl.
Title: Re: Fonts.tbl TrueType support upon startup
Post by: Bryan See on June 07, 2017, 11:24:35 am
Code: [Select]
#Fonts

$TrueType: arial.TTF
 +Name: Arial
 +Size: 12

$TrueType: comicsans.TTF
 +Name: Comic Sans
 +Size: 12

$TrueType: Times.TTF
 +Name: Times New Roman
 +Size: 12

#End

Code: [Select]
#Fonts

$TrueType: arial.TTF
 +Name: Arial
 +Size: 12

$Font: font01.vf
$Font: font02.vf

#End
Title: Re: Fonts.tbl TrueType support upon startup
Post by: AdmiralRalwood on June 07, 2017, 12:16:49 pm
Could not reproduce; only way I get that error is if those fonts couldn't actually be found.

...You do understand that the .ttf files need to be in the /data/fonts/ folder, right?
Title: Re: Fonts.tbl TrueType support upon startup
Post by: LaineyBugsDaddy on June 08, 2017, 04:47:25 pm
He probably thought that as long as they were in his system fonts, he'd be fine. All hail the "visionary modder and coder."  :rolleyes:
Title: Re: Fonts.tbl TrueType support upon startup
Post by: Bryan See on June 10, 2017, 12:34:39 pm
Could not reproduce; only way I get that error is if those fonts couldn't actually be found.

...You do understand that the .ttf files need to be in the /data/fonts/ folder, right?
Yes. Why cannot rename the folder that contains the .ttf files to "fonts" if the name is not?
Title: Re: Fonts.tbl TrueType support upon startup
Post by: AdmiralRalwood on June 10, 2017, 12:41:50 pm
Could not reproduce; only way I get that error is if those fonts couldn't actually be found.

...You do understand that the .ttf files need to be in the /data/fonts/ folder, right?
Yes. Why cannot rename the folder that contains the .ttf files to "fonts" if the name is not?
...What? :wtf: What's stopping you from renaming your folders, exactly?
Title: Re: Fonts.tbl TrueType support upon startup
Post by: z64555 on June 13, 2017, 01:59:07 pm
There may already be a folder named "fonts"?

That would prevent you from renaming another folder to "fonts."
Title: Re: Fonts.tbl TrueType support upon startup
Post by: Bryan See on June 21, 2017, 12:12:08 pm
There may already be a folder named "fonts"?

That would prevent you from renaming another folder to "fonts."

Yes, I did. I think the engine should rename the folder to fonts if it hadn't already.
Title: Re: Fonts.tbl TrueType support upon startup
Post by: The E on June 21, 2017, 01:16:44 pm
The engine will not rename any folders. The folder structure that you have to follow in order for data to get loaded is fixed (and can be seen on the wiki), and we will not add code to correct stupid mistakes modders make because they don't feel like following it.
Title: Re: Fonts.tbl TrueType support upon startup
Post by: Bryan See on June 21, 2017, 01:43:17 pm
I get it.
Title: Re: Fonts.tbl TrueType support upon startup
Post by: Bryan See on June 27, 2017, 04:07:17 am
I think you are referring to this. Woutersmits has encountered it while working on a TC mod.
Code: [Select]
Assert: "fontData != nullptr"
File: NVGFont.cpp
Line: 105
Invalid font data pointer passed!

ntdll.dll! ZwWaitForSingleObject + 20 bytes
KERNELBASE.dll! WaitForSingleObjectEx + 159 bytes
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
KERNEL32.DLL! BaseThreadInitThunk + 20 bytes
ntdll.dll! RtlUserThreadStart + 33 bytes

[ This info is in the clipboard so you can paste it somewhere now ]


Use Debug to break into Debugger, Exit will close the application.

ntdll.dll! ZwWaitForSingleObject + 20 bytes
KERNELBASE.dll! WaitForSingleObjectEx + 159 bytes
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
fs2_open_3_7_5_20170625_a769a7e_x64_SSE2-FASTDBG.exe! <no symbol>
KERNEL32.DLL! BaseThreadInitThunk + 20 bytes
ntdll.dll! RtlUserThreadStart + 33 bytes
Title: Re: Fonts.tbl TrueType support upon startup
Post by: m!m on June 27, 2017, 04:47:03 am
Do you have the font file "font01.vf" in your mod? That is required at the moment if you don't specify +Special Character Font:.
Title: Re: Fonts.tbl TrueType support upon startup
Post by: Bryan See on June 28, 2017, 02:48:58 pm
I instead specified a TrueType font.