0

Like monospace fonts(looks uniform), i have used below font-family

font-family: "Helvetica Neue", Helvetica, Arial, sans-serif

I don't want to change fonts, anyway to achieve same width for font using css?

EMR
  • 63
  • 4
  • I don't think it is possible. Monospaced fonts take the same space for each letter i.e. i and w use the same width. Where as other fonts only use the amount of space required ( i will take less space than a w). –  Jul 31 '13 at 07:23
  • @ted no i use rails truncate method, anyway to customize fonts using css – EMR Jul 31 '13 at 07:32
  • I see, just take in mind that with 'css truncate' you are able to truncate by width(i.e. 100px) while Rails truncation, most likely, truncates by the string.length(e.g. < 15 chars) – ted Jul 31 '13 at 07:35
  • Ehm... you want every character to take up the same width, whether the font is proportional or not? – Mr Lister Jul 31 '13 at 09:18
  • @MrLister fonts are proportional – EMR Jul 31 '13 at 09:32
  • I don't think I know what you want. – Mr Lister Jul 31 '13 at 10:05

0 Answers0