Author Topic: Fonttool  (Read 5414 times)

0 Members and 1 Guest are viewing this topic.

Offline penguin

  • Eudyptes codus
  • 28
  • Still alive.
Quote
Originally posted by wojta
Why Volition didn't use a truetype font instead of creating the font from bitmaps ? It's my idea of improving FS2_OPEN.
It's all about speed, dude ;)

Seriously, there's no need for scalable, hinted, grayscale fonts in a game like FS2 -- since the type is only going to be displayed in one or two pixel sizes ever, rendering bitmap fonts is going to be much faster and simpler.

However, if you wanted to rewrite fonttool -- maybe using the FreeType engine to accept TrueType fonts and generate FS font files -- that would be OK too :D

But I see little reason to incorporate a full TrueType rasterizer within the game...
your source code slave

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
-C

 

Offline wojta

  • 25
    • http://fsworld.wz.cz
Thanks.

Quote
However, if you wanted to rewrite fonttool -- maybe using the FreeType engine to accept TrueType fonts and generate FS font files -- that would be OK too


Really not now. I'm beginner in C/C++. :(

  

Offline wojta

  • 25
    • http://fsworld.wz.cz
I have downloaded and tried it. It doesn't work.
The main screen appears but it doesn't respond on the keyboard nor the mouse.  

This is dumped from the debug window:
Code: [Select]

Cannot get handle to monochrome driver.
GR_CPU: Family 6, MMX=Yes
D3D Device 0: Direct 3D - Primary Display Driver
Using one that matched Direct3D registry value 'Direct 3D - Primary Display Driver (640x480)'.
Window in debugging mode... mouse clicking may cause problems!
RGB, 5:5:5
ARGB, 1:5:5:5
ARGB, 4:4:4:4
RGB, 5:6:5
RGB, 8:8:8
ARGB, 8:8:8:8
Palettized 8 bpp
Alpha texture format = ARGB, 4:4:4:4
Non-alpha texture format = ARGB, 1:5:5:5
Screen format = RGB, 5:6:5
Direct3D Initialized OK!
TEXTURE RAM: 90860787 bytes (86 MB) available, size divisor = 4
Woohoo! Driver doesn't need square textures!
Textures must be power of 2.
Doesn't support wide surfaces. Bashing max down to 512
Large textures enabled!
Detecting uv type...
Trial #1
Trial #2
Pixel 1 = ef7d , 0
Pixel 2 = ef7d , 0
Rendition uvs: 0
Detecting line offset...
Trial #1
Trial #2
Pixel 1 = 0 , 0
Pixel 2 = 0 , 0
Line offset: 0.0
ANI cursorweb with size 24x24 (25.0% wasted)
No cached palette file
Loading code\fonttool\FontTool.pcx for the first time.
Loading code\fonttool\FontTool.pcx (640x480x16x--)
Error locking surface for bitmap_ex, Access to this surface is being refused because the surface memory is gone. The DirectDraw
Surface object representing this surface should have Restore called on it.
Couldn't get read-only lock to backbuffer for d3d mouse save
Direct3D activate: 0
Direct3D activate: 0
Direct3D activate: 1
Direct3D activate: 1
Couldn't get read-only lock to backbuffer for d3d mouse save
Direct3D activate: 0
Direct3D activate: 0