Bitcoin Forum

Other => Meta => Topic started by: apoorvlathey on October 13, 2016, 05:03:25 PM



Title: Problems with BBCode
Post by: apoorvlathey on October 13, 2016, 05:03:25 PM
Following are some of the problems i usually encounter while making BBCode signatures :

In Notepad :

https://i.imgur.com/inEnNK0.png

In Post input box on forum:

https://i.imgur.com/4j4mdMx.png

In Preview output of forum :

https://i.imgur.com/v4BOCmm.png

Preview with design within code :

https://i.imgur.com/WHlkslb.png


I want to ask why is the spacing different in the above different cases ?

BTW, if the size is reduced to 2px, then the design looks perfect. : https://i.imgur.com/qb4F8RY.png but again gets distorted at 3px.


Title: Re: Problems with BBCode
Post by: Foxpup on October 14, 2016, 02:49:14 AM
Because with a proportional font, different characters have different widths (and not even consistently different, as you've seen). You need a monospaced font, which in BBCode is achieved with the [tt] tag.

█▀▄       ▄▀█
█  ▀▀▀▀▀▀▀  █
▀▄ ▄▀▄ ▄▀▄ ▄▀
 ▀▄       ▄▀
 █▄▄     ▄▄█
    █ ▄ █
     ▀▀▀