{"id":367,"date":"2008-12-29T20:56:06","date_gmt":"2008-12-29T10:56:06","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=367"},"modified":"2008-12-29T20:56:06","modified_gmt":"2008-12-29T10:56:06","slug":"an-update-on-bitmap-fonts","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2008\/12\/29\/an-update-on-bitmap-fonts\/","title":{"rendered":"An update on bitmap fonts"},"content":{"rendered":"
Just a few quick notes;\u00a0 I’ve fixed bitmap fonts to word wrap properly in VectorStorm, if a maximum width is passed into the CreateString() or CreateStringInDisplayList() functions.<\/p>\n
Additionally, I’ve fixed the autogeneration of bitmap fonts from TrueType fonts such that they’re scaled to the largest glyph actually incorporated into the bitmap font, instead of according to the largest glyph in the TrueType font.\u00a0 This means that if you draw a font with a size of 20, then the tallest glyph in the font (usually an exclamation point or a capital letter) will draw upward twenty units from the baseline.\u00a0 Descenders (such as the bottom of a lower-case ‘g’ or ‘y’) are not counted<\/em>.\u00a0 So when drawing a string, be sure that you’ve positioned the string such that there’s space for any descenders to extend downward.\u00a0 (This isn’t an issue for the vsBuiltInFont class, as its glyphs have no descenders)<\/p>\n","protected":false},"excerpt":{"rendered":" Just a few quick notes;\u00a0 I’ve fixed bitmap fonts to word wrap properly in VectorStorm, if a maximum width is passed into the CreateString() or CreateStringInDisplayList() functions. Additionally, I’ve fixed the autogeneration of bitmap fonts from TrueType fonts such that they’re scaled to the largest glyph actually incorporated into the bitmap font, instead of according…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-5V","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/367"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=367"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/367\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}