Author Topic: Another Sprite Tool - but it's mine :] for custom fonts, and image processing...  (Read 1802 times)

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 366
    • View Profile
    • my personal website
Hi,
I needed some simple app to change transparent color on sprites and prepare font file, but I have some problems with ImageMagic and I don't know Gimp or other graphic editor scripts so I decided to make my own program. :]
And here it is, it basic function are: auto-cropping images, changing selected base color into final requested color, searching for sprites on image (returning their rect/positions) - and possibility to create glBasic ready to use bitmap font from selected file - there is an attached sample font bitmap made in Gimp.. (for it use rect spacing x=6, y=20)
More info and instructions, examples of code in glB are also included.
:]

It's win32 bin, but should work also on wine in Linux..

[attachment deleted by admin]
Check my source code editor for GLBasic - link Update: 20.04.2020

MrTAToad

  • Guest
I notice that the resulting font file isn't quite correct - the first few characters are duplicated.

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 366
    • View Profile
    • my personal website
For this included font You need to set 'max space between merged rects (X Y)' to 6 (X - first textbox) and 20 (for second)...
Also 'base color' must be set to rgb(0,0,0) - black, because bitmap have such background.
Check my source code editor for GLBasic - link Update: 20.04.2020