adobe-fonts / adobe-fonts/source-code-pro

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

未關閉
#130 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
CSS
星號
20.4k
分支
1.6k
PR 合併指標
30 天內沒有已合併 PR

描述

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](https://cloud.githubusercontent.com/assets/14841658/15993125/2d6f5d56-30dd-11e6-8709-2483b4a4638a.png)

Source Code Pro 11pt at 100%:
![scp-11pt-100percent](https://cloud.githubusercontent.com/assets/14841658/15993126/2d6f8e70-30dd-11e6-80be-6d48d7566f02.png)

Source Code Pro 12pt at 100%:
![scp-12pt-100percent](https://cloud.githubusercontent.com/assets/14841658/15993127/2d71e954-30dd-11e6-902f-524d19415e39.png)

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)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。