Author Topic: Need help with fiction viewer  (Read 1547 times)

0 Members and 1 Guest are viewing this topic.

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Need help with fiction viewer
Hey all! I need a little help with the fiction viewer.

I'm using a custom font; how do I make the text larger?

And how do I get the text to wrap properly instead of being one big block? Am I able to change that by editing the formatting in the .txt file?

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Need help with fiction viewer
Addendum: my custom font does not seem to be working. It's in .otf format.

 
Re: Need help with fiction viewer
Hey all! I need a little help with the fiction viewer.

I'm using a custom font; how do I make the text larger?

And how do I get the text to wrap properly instead of being one big block? Am I able to change that by editing the formatting in the .txt file?

I don't know about the first question, but for the second I can tell you that you can work with the .txt file very well. Look into the attachment, there's one of my fiction viewer entries. It has many blocks and different colours just to give you an example. Hope this helps.

[attachment stolen by Russian hackers]

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Need help with fiction viewer
Hey all! I need a little help with the fiction viewer.

I'm using a custom font; how do I make the text larger?

And how do I get the text to wrap properly instead of being one big block? Am I able to change that by editing the formatting in the .txt file?

I don't know about the first question, but for the second I can tell you that you can work with the .txt file very well. Look into the attachment, there's one of my fiction viewer entries. It has many blocks and different colours just to give you an example. Hope this helps.

Very nice, thanks!

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Re: Need help with fiction viewer
FSO only supports .vf and .ttf files AFAIK. You can convert your font to .ttf with a tool like Fontforge.

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Need help with fiction viewer
Wait, do I need a fonts.tbl set up as well as just having the font file in the "fonts" folder?

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Need help with fiction viewer
Wait, do I need a fonts.tbl set up as well as just having the font file in the "fonts" folder?
Yes; FSO doesn't know what to do with font files until you tell it.
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 HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Need help with fiction viewer
Wait, do I need a fonts.tbl set up as well as just having the font file in the "fonts" folder?
Yes; FSO doesn't know what to do with font files until you tell it.

Aha, should have known. Thanks! But do you know how to change a font display size?

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Re: Need help with fiction viewer
You can set the display size with +Size: for TrueType fonts in the fonts.tbl.

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Need help with fiction viewer
Aha, thanks. Hm, I need to research a bit before I ask. :P