Post Reply 

Bitmap font generator script

Feb 4, 2012, 14:50
Post: #1
Bitmap font generator script
I have searched this forum but cannot find something related to my problem.

I found some Python script plugin witch generates "Bitmap font texture".
Here is a script.

The problem is when i generate it adds some offset on Y axis and its not starting from X=0, Y=0:
Plugin options:
[Image: pluginoptions.jpg]
Texture generated:
[Image: fontgenerated.jpg]

Text is cut off. By browsing this script i didn't find nothing that could add this offset except Gimp it self.
I need precise placement of each char/glyph. Any solutions?
Find all posts by this user
Quote this message in a reply
Feb 4, 2012, 17:54
Post: #2
RE: Bitmap font generator script
Thanks for answering.

Can you clear something to me please:
When i choose 16 as font "size", is that value in pixel units?
Is it precisely 16 when asked or it depends on font and chooses by it self the nearest size it have to 16?
If largest height of glyph is 16 pixels there should not be cutoff like in my image above 1520 x 16?
Can you tell me how can i obtain width of some glyph? Does "font" variable has some attrribute for "widest" glyph width?
I want each cell/box for a glyph to be:
char_begin = 32
char_end = 127
cell.w = widest_glyph.width
cell.h = largest_glyph.height
image_w = (char_end - char_begin) * cell.w
image_h = cell.h

Thanks for your time.
Find all posts by this user
Quote this message in a reply
Feb 7, 2012, 15:39
Post: #3
RE: Bitmap font generator script
This is one and only which I was looking for, Same problem I were facing. So its my pleasure to have this thread. Thanks for sharing...
Find all posts by this user
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Problems with a bat script :( ThaUnknown_ 1 323 Mar 26, 2018 21:14
Last Post: paynekj
  Script-fu ordered file list vnicent 1 169 Mar 19, 2018 17:33
Last Post: paynekj
  script-fu argument/parameter formats dhugg 2 270 Mar 13, 2018 00:50
Last Post: dhugg
  Request for script chlebna 1 450 Sep 13, 2017 09:35
Last Post: ythgilb
  Request for script - Guillotine + Watermark sunslick 1 503 Sep 4, 2017 08:51
Last Post: ythgilb

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS