View Single Post
  #4  
Old 03-05-2012, 02:30 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by DustyPorViva View Post
http://forums.graalonline.com/forums...hp?t=134258865

It depends on how complex you want this to be. For my thread above(using state.png) it's fairly simple because you assume every character is the same width. However if you start rendering letters using a nonfixed-width font image then things get more complex as you need to start taking in to consideration kerning and spacing. This requires you to build an array of each character width, and to keep track of the last letter placement + width before placing the next character.
Yes, using state.png. I understand how the width's can give difficulties if not positioned right.. I was only asking is this good to show alot of images like this or would there be easier method, like TTF's..

Quote:
Originally Posted by cbk1994 View Post
It would probably be easier to just make your image into a TTF file, upload it to the server, and use it as a font (e.g. "fontFace = \"myfont.ttf\"").
Was what I was thinking. I only ask this question because of having to show alot of images as numbers..
Reply With Quote