Bug 1756752

Summary: geany doesn't show written underscores
Product: [Fedora] Fedora Reporter: sixpack13 <sixpack13>
Component: geanyAssignee: Dominic Hopf <dmaphy>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: dmaphy, dreua, egolov, josef, nicolas.vieville, oliver, pingou, sixpack13
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-18 19:45:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sixpack13 2019-09-29 16:10:29 UTC
Description of problem:
in geany written underscores are NOT shown anymore.

Version-Release number of selected component (if applicable):

geany-libgeany-1.35-2.fc31.x86_64
geany-1.35-2.fc31.x86_64

and

geany-libgeany-1.36-1.fc31.x86_64
geany-1.36-1.fc31.x86_64


How reproducible:

Steps to Reproduce:
1. write with geany in an text file for example a underscore, a word and a underscore again 
2. you should see "_word_" (without the '"')
3. but you only see " word " (without the '"')
4. open the text file with vi => all underscorses are shown.

Actual results:
underscores are NOT shown


Additional info:

a reset of all geany settings (rm -rfv ~/.config/geany/) doesn't fix the problem


update to geany-1.36-1.fc31.x86_64 does not fix the problem
I'm running F30 with X, not wayland.

I'm not sure, but I guess problem occurs since an update of other packages (sudo dnf upgrade --refresh) during last week.

Comment 1 sixpack13 2019-10-07 22:33:42 UTC
s/I'm running F30/I'm running F31/g

Comment 2 nicolas.vieville 2019-11-03 16:02:07 UTC
Hello,

Encountered this issue too.

Switching font to "Liberation Mono Regular" in Geany Preferences/Interface
brings back underscore character.

Hope this will help.

Cordially,


-- 
NVieville

Comment 3 sixpack13 2019-11-03 18:24:20 UTC
thanks @NVieville

your hope became true: the hint fixes my bug !
:-)

Comment 4 David Auer 2019-12-26 15:17:33 UTC
Triggered by F30 -> F31 upgrade, workaround works. Is it possible to fix this in a way that not everyone needs to find and apply the workaround?

Comment 5 Dominic Hopf 2020-05-18 19:45:51 UTC
None that I know of, unfortunately. This has been discussed upstream in several issues:

* https://github.com/geany/geany/issues/2502
* https://github.com/geany/geany/issues/2386
* https://github.com/geany/geany/issues/2353
* https://github.com/geany/geany/issues/2287
* https://github.com/geany/geany/issues/1387


The thing is, it isn't a bug in Geany itself, it's rather a bug in several fonts.
Even when we wanted to work around it in the software, we still wouldn't have to change
Geany, but we'd have to change the rendering engine which displays the code,
it's named Scintilla - you'll figure this out when reading on in the
mentioned upstream issues. The issue is known at Scintilla as well, of course.

I'm afraid I can not do anything in the Fedora package for Geany at this time
but recommending you these workarounds also mentioned upstream:

* either change the font (Liberation Mono works quite well according to my experiences)
* or adjust the line_height in your filetypes.common as mentioned in the issues above:

line_height=0;2;