Jump to content
  • 0

How to use alternative font for intermission text screen?


antares031

Question

When I replaced the original STCFN Smallfont to the custom font, which has two letters with different size/color than the others, any ZDoom-related source ports automatically changed the color of the entire STCFN font to much darker one than originally designed. To avoid this issue, while I preserved the new STCFN lumps, I decided to use FONTDEFS to define the other font, designed to be used with ZDoom. I also defined the secondary font, in order to use the two letters I mentioned. So the FONTDEFS is now looks like this:

 

Quote

Smallfont
{
    Template DNSMR%03d
}

Secondfont
{
    A DAISY091
    B DAISY093
    DONTTRANSLATE
}

 

 

The problem is that I can't use the "Secondfont" for the intermission text screen with ZMAPINFO. AFAIK, there are no commands to change the font of text screen from either ZMAPINFO or LANGUAGE. I looked around, and found the tutorial that uses ACS to demonstrate the text screen with custom font: 

 

Quote

#include "zcommon.acs"

script 1 (void)

{
    delay (35);
    SetFont ("Secondfont");
    SetHudSize (640,480,0);
    
    HudMessageBold (s:"AAABBB";
        HUDMSG_PLAIN,5,CR_UNTRANSLATED,320,240,10);
    
    delay(35*3);
    Exit_Normal(0);
}

 

Still, even after putting ACS file in the wad, it doesn't work at all, despite I followed the tutorial as written. The game doesn't execute the ACS, after I exit the level, and shows the other text message, which was defined with dehacked. Keep in mind that I have zero experience with writing ACS, so there must be something that I've been missing. If there's much better way to use alternative font for intermission text screen, please let me know. :(

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

When you talk about text on the intermission screen, you mean the map name, kills, secrets, items, etc? I know that everything other than the numbers is actually just a static bitmap (or GFX file more accurately) that can be altered to look however you like. Even the numbers are all just bitmaps as well, but if you're using that specific font elsewhere in the WAD, the font will be changed there too. AFAIK though, those numbers are only used on the intermission screen, so each one can be modified and that modification won't affect anything but the text on the intermission screen.

 

I hope I've kinda-sorta explained this clearly.. Basically, it's just a bunch of images that need to be edited and replaced with the new letters/font that you want to incorporate. The HUD uses different images for it's numbers so it won't be affected.

 

EDIT: I'm a moron, just realized you're referring to the actual text readouts.

Edited by Doomkid

Share this post


Link to post
  • 0
1 hour ago, Doomkid said:

just realized you're referring to the actual text readouts.

 

Yeah, I meant the intermission text screen, which appears after you beat specific levels, such as MAP07, MAP11, and MAP20, and uses Smallfont to print the texts. I should have mentioned about it more clear. ^_^;;

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...