Columns misaligned with fixed width font due to artificial bold
Submitted by Evert Verhellen
Link to original bug (#349846)
Description
Description: Syntax highlighting in gedit can cause columns to get misaligned when using a fixed width font that doesn't have native bold. This is annoying when coding. E.g.:
- Start gedit.
- In the Preferences dialog, select "Lucida Console" as the editor font.
- Type in the following 2 lines:
[Desktop Entry] Encoding=UTF-8
-
[Shift]+[Ctrl]+[S] and save the file as "foo.desktop".
Syntax highlighting gets triggered automatically.
Actual results: The number "8" of the text "UTF-8" is supposed to be aligned with the letter "y" from "Entry". However, the are clearly misaligned due to the fact that the artificially bolded characters are wider than regular text.
Expected results: All columns should be properly aligned with any fixed width font.
Additional information: Verified behaviour against Fedora Core 5 and SLED 10 so I guess this isn't anything vendor-specific.
Version details (on Fedora Core 5): gedit 2.14.3 gtksourceview 1.6.1 freetype 2.1.10 fontconfig 2.3.94