INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: padding spaces in file names (renaming) with variable width font consideration  (Read 1140 times)

ShayB

  • Junior Woodchuck
  • **
  • Posts: 97

hi,

Can MC calculate (based on the internal font) what would be the actual (not length() ) width of a string
(it can be based on the MC currently used font)?

I want to align my files in my directories with space padding but I need a clever way of knowing how many spaces to use (each string has different actual width based on its characters and the sum of them)

for example a "space" is about half width of any other character.
Logged
Pages: [1]   Go Up