source-code-pro icon indicating copy to clipboard operation
source-code-pro copied to clipboard

Visual Studio 2015 (maybe <2015 also), hyphen problem

Open zePanzerfaust opened this issue 9 years ago • 0 comments

There seems to be an issue with the hyphen when using Source Code Pro with Visual Studio. Attached screenshots show the problem.

When using SCP at 10pt with several hyphens placed next to each other, an error adds up. Near the end the error is too big and a hyphen is missing. Even though it is the same amount of characters.

The contrary is the case, when using the font at 11pt. Then the hyphen and the asterisk are overlapping.

With 12pt everything seems to be fine.

Source Code Pro 10pt at 100%: scp-10pt-100percent

Source Code Pro 11pt at 100%: scp-11pt-100percent

Source Code Pro 12pt at 100%: scp-12pt-100percent

The answer in this (http://stackoverflow.com/questions/18146680/how-to-get-visual-studio-2012-to-render-monospaced-fonts-correctly) post on SO talks about something similar. Some calculation done from pt to px and possible rounding error?

Now I am not sure if this is a problem with the font and/or VS. There are other fonts that do not show this behavior (Consolas, Fira Mono). On the other hand I could not reproduce this problem in other editors (gVim, Eclipse) with SCP.

(On Windows 7 and using the ttf version of the font) Screenshots taken with version "source-code-pro-2.010R-ro-1.030R-it". Just built from source (hash 4e56f851), still occuring.

(Thanks for making this nice font <3)

zePanzerfaust avatar Jun 12 '16 18:06 zePanzerfaust