Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

Bitmap Font Creator issues with line height

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Ogli   Members   

144
Like
0Likes
Like

Posted 19 November 2013 - 03:17 PM

Not sure if this really is a bug, but ...

 

When I select a 24 px Size and combine it with [x] "Render from TrueType outline", Then I get 50 times out of 20000 chars an entry of height=25 and 6 times out of 20000 chars an entry of height=26 in the corresponding .fnt file.

 

However, when I deactivate the [ ] "Render from True Type outline" option, all generated entries in the .fnt have <= 24 height.

 

Is this the expected behavior or a bug?



#2 Andreas Jonsson   Moderators   

4626
Like
0Likes
Like

Posted 19 November 2013 - 05:04 PM

Rendering from the TrueType outline uses a different technique to rasterize the characters (I retrieve the outline and render the glyphs as polygons). I implemented this option after seeing that Windows ordinary GDI functions for rasterizing text sometimes cropped the glyphs if they were higher or lower than the cell height.

 

So, yes, you can expect difference in the height and width and sometimes characters that are larger than the cell height.

 

Did you check the actually glyphs that were rasterized in these cases? Do they look OK when writing text?


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#3 Ogli   Members   

144
Like
0Likes
Like

Posted 19 November 2013 - 06:13 PM

No, I didn't check them. To be onest, at the moment I do not really care about this obscure thing.

One of the signs was under the first 127, so I guess it might become an issue later.

I used the Batang font that Windows 7 provides with the said 24 px.

 

I just found that this render option looks sharper than the supersample option.

Maybe I'm incorrect here. Didn't make a visual check when both options are on.






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.