Ligatures appear in monospaced text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Binary package hint: gedit
If I am editing code with gedit, and I type the sequences of characters "fi" or "fl", then they will be replaced by a ligature and visually crammed into the width of a single character.
The two characters can still be selected and edited separately, so the bug is only visual and is not actually being introduced into the code. However, this is still bad for many reasons:
- Ligatures are not designed for monospaced text, so they don't look right
- The sudden replacement of two characters with a ligature is visually jarring
- Because the text now takes up a different amount of horizontal space, it can cause text that was meant to align with the text above and below to become misaligned
- Ligatures in plain text sometimes appear as the result of copying text from a PDF into LaTeX, in which case they are a bug that needs to be fixed before the document will be typeset properly. gedit makes it look like my LaTeX source has this bug when it doesn't.
How to reproduce: Type the word "final" in gedit.
Expected behavior: The result should appear 5 characters wide, made of the glyphs "f", "i", "n", "a", and "l".
Actual behavior: The result appears 4 characters wide, made of the glyphs "fi", "n", "a", and "l".
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gedit 2.30.3-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Oct 29 17:15:54 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gedit
I've found a workaround, which is to switch to a font that does not contain ligatures.
The font "Mensch", which I was using, has single characters for ligatures in it, and gedit was using them. "Monospace" does not, so its text displays correctly.