Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


- - - - -

Bitmap Font Creator issues with line height


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   -  Reputation: 142

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?



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3415

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   -  Reputation: 142

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.



PARTNERS