FOnline Development > General Discussion
FOnline UI font?
(1/1)
PennVault:
Hello all. I was wondering if anyone's made a .ttf version of the interface font for FOnline yet. I'm developing a Fallout sprite comic series at the moment and this would be really handy as a resource.
Wipe:
If that's about messagebox font, check jh_fallout-webfont.*, originally used on ServerBoy by CptRookie.
As for other fonts FOnline uses, i don't think there are .ttf versions - at least i couldn't find any which will be exactly same as ingame. If you're fine about generating images with your text, i wrote small php class for automating the process. It can read any .fofnt file [version 2] as well as colorize the output.
--- Code: (php) ---$font = new FOnlineFont( 'path/to/file.fofnt' );
$image = $font->TextToImage( "Hello world!" );
$image_color = $font->TextToImage( "Hello world!", 255, 51, 153 ); // Wild Strawberry
--- End code ---
Note that FOnlineFont class is extremly paranoid and will die() on first spotted error; if you're not sure if given font contains all letters in your string, validate it first.
--- Code: (php) ---$text = "Hello world!";
$font = new FOnlineFont( 'path/to/file.fofnt' );
$image = NULL;
if( $font->TextValid($text) )
$image = $font->TextToImage( $text );
else
$image = your_function_to_generate_error_image();
--- End code ---
PennVault:
Thanks for the quick reply. :) Unfortunately JH_Fallout distorts when typed at a face small enough to match the default font size in FOnline or even classic Fallout. I might just have to generate the text. :-/
Since I've never used PHP before, could you please tell me what I'll need?
Wipe:
Umm you sure about that? Font looks fine for me, at least here [below logo] :-\
PennVault:
It's the lowercase A. The A starts to look exactly like the O when used at a small enough font level in PhotoShop and anything else with a word processor on my machine.
Navigation
[0] Message Index
Go to full version