Florin Pop
Florin Pop

Reputation: 5135

jQuery changing font - same space occupied

Is there a way that when I change the whole page font, I could keep the same design? I added an option to my website for the user to change the font of the entire website, but there is quite a bit of difference between the aspect of the website.

I have to manually change the elements when changing fonts or there is a simpler way to do that?

Upvotes: 0

Views: 38

Answers (1)

ZombieCode
ZombieCode

Reputation: 1661

You need to change the font to a comparable size (width & height) of the previous font.

For example... Arial (font size of 12px) is roughly the same as Veranda (font size of 11px) in height, but not width. Verdana is naturally a wider font. So those two wouldn't be the most compatible.

Upvotes: 1

Related Questions