kueblc / LDT

Lightweight in browser syntax highlighting
https://kueblc.github.io/LDT/
159 stars 17 forks source link

How do I use a nicer font? #14

Open IngwiePhoenix opened 8 years ago

IngwiePhoenix commented 8 years ago

Monospace is nice for coding, but for my usage of LDT, I want to use a pretty text. So I'd like to use something like Arial or Verdana instead of a monospace font, simply because monospace does not look all too nice.

But using any other font than a monospaced one will cause the letters to be shifted. The letters in the textarea have a wider spacing than in the pre.

Why is that?

IngwiePhoenix commented 8 years ago

I figured out that it was based on the font-weight property. I am playing with this now, maybe I actually get it to work. The bottleneck is bold text but that should have a fix somewhere.