elvirbrk / NoteHighlight2016

Source code syntax highlighting for OneNote 2016 and OneNote for O365 . NoteHighlight 2013 port for OneNote 2016 (32-bit and 64-bit)
GNU General Public License v2.0
3.79k stars 393 forks source link

LineNumber vertical position does not align with text #126

Open Thaval opened 3 years ago

Thaval commented 3 years ago

Hi,

I'm using the latest version and figured out that the linenumbers are not aligned with the actual code in height. Which means: The code in line 5 does not have the same vertical position as the linenumber, indeed, the code is aligned between line 5 and 6 which makes it pretty hard for longer code snippets to figure out the actual linenumber. Additionally, it doesn't look and feel good. Here is a small example (pay attention to line 5)

image

akshaykhadse commented 3 years ago

I am seeing the same issue for C++ code. Capture

I found out that the blank lines of code are Calibri font with size 11 whereas the code lines are Courier New font with size 10

AsherAla commented 2 years ago

我也遇见了同样问题,他是有空行的话会有错位