Font Array

MaXyM

Hello
Recently I need help with custom fonts (for ADL in cockpit). I decided to make new font array with better resolution (greater dimensions of bitmap) to get quality of numbers on ADL

I managed to have array with frames and special markers. The markers should limit width of each character separately. And there is a problem.
If I save bitmap as tga - rFactor doesn't limit width of characters (see picture).
If I save it as BMP - rFactor goes down with CDT.

Anyone could help me?

adl_font_problem.jpg


Here is TGA file for checking/testing: http://maxym.simracing.pl/temp/FONTLCD.tga
 
This forum board is really forgotten by devs, would be nice to hear something from them.
 
Really no one did custom fonts for rF? Even ISI doesn't remember how to work with it?
Someone recently said that ISI provides amazing support.
 
Sorry, I saw this Q a while back but was too busy at the time to reply, then I forgot about it.

ISI have infact given clear documentation on how to do this. You need to read the notes in the data files.
Most functions have it noted what the function does.

'Hammer_cockpitinfo.ini'
~
////////////DIGITAL GAUGES/////////////////////

RPMLED=Ham_rTECH

GearsFont=Hammer_digiFONT.bmp
GearsBackground=hamgearsbk // default is "READOUT.BMP"
GearsScale=(2.5, 2.5) // how big to draw the font onto the background
 
Thanks but it's not about that. It's about markers on the font texture, which (we think) tell rFactor where each font ends. Based on that, rF can calculate width of each font. On the picture in first post, you can see that there is too much space between zeroes. That's the problem Maxym is talking about.
 
The red marker is where the next letter/digit starts, they need to be in the blue boxes, it needs to be bmp and the mesh needs to be set to render target.
 
I know what red marker is intended for - I did official localization for GTR1 and GTR2 in our country. But it doesn't work in rF for me.
From description of cocpit_info.ini file, It must not be only o bmp. It may be a tga also and it works for me excepting described issue.

I included example of tga. Please try to make it working (in any way, may be in BMP) because it doesn't work for me. I will be thankful.
Note it has as twice resolution as original font. So you have to change Scale in cockpitinfo.ini file.
 
Last edited:
I got a doubled resolution font.tga working some time ago, and I remember it was quite troublesome. I don't have a clue about what could be the problem but the main differences between your texture and mine is that there's some colour variation in the blue character frames, and it's 402 pixels width instead of 401. Just if you want to check these out.
 

Back
Top