View Single Post
Old 10-11-2012, 06:02 PM   #7
florianix
Abandonia nerd
 
florianix's Avatar


 
Join Date: Nov 2011
Location: ,
Posts: 72
Default

Quote:
Originally Posted by Funkmaster5000 View Post
Holy...

What lines do you mean? I don't quite get it!
With "So the distance between lines and chars (in pixels) is still missing..." I wanted to say:
Even if you know that the font is 8x8 pixels per letter - you still need to know the distance (in pixels) between two consecutive letters (horizontally) and the distance between two lines (vertically) in order to calculate the total height of some ASCII art comprising more than one column or row.

If there would be no additional few pixels between two lines, the letters of them would "stick together".

=>
  • vertical ASCII art size in pixels = (vertical number of pixels per letter * vertical number of letters) + (distance in pixels between two letters * (vertical number of letters -1) )
  • horizontal ASCII art size in pixels = (horizontal number of pixels per letter * horizontal number of letters) + (distance in pixels between two lines * (horizontal number of letters -1) )
florianix is offline                         Send a private message to florianix
Reply With Quote