Author Topic: Fonts.tbl TrueType support upon startup  (Read 998 times)

0 Members and 1 Guest are viewing this topic.

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Fonts.tbl TrueType support upon startup
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.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
Please post your fonts.tbl.
Let there be light
Let there be moon
Let there be stars and let there be you
Let there be monsters and let there be pain
Let us begin to feel again
--Devin Townsend, Genesis

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
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
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
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?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 
Re: Fonts.tbl TrueType support upon startup
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:
There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
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?
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
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?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: Fonts.tbl TrueType support upon startup
There may already be a folder named "fonts"?

That would prevent you from renaming another folder to "fonts."
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
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.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
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.
Let there be light
Let there be moon
Let there be stars and let there be you
Let there be monsters and let there be pain
Let us begin to feel again
--Devin Townsend, Genesis

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
I get it.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
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
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline m!m

  • 211
Re: Fonts.tbl TrueType support upon startup
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:.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Fonts.tbl TrueType support upon startup
I instead specified a TrueType font.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel