Bug 251016

Summary: setting font to "Bitstream Vera Sans Mono" in kompare: "load glyph failed err=6 face=0x9745e0, glyph=320" "QFontEngine: Glyph neither outline nor bitmap format=0"
Product: [Applications] kompare Reporter: esigra
Component: viewpartAssignee: Kompare developers <kompare-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: esigra, toralf.foerster
Priority: NOR    
Version: 4.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description esigra 2010-09-12 22:14:32 UTC
Version:           4.0.0 (using KDE 4.5.1) 
OS:                Linux

hen font is set to "Bitstream Vera Sans Mono" in Kompare 4.0.0 (KDE 4.5.1, Qt 4.6.3), the following 2 lines appear several times in Konsole (where Kompare was started):
load glyph failed err=6 face=0x9745e0, glyph=320
QFontEngine: Glyph neither outline nor bitmap format=0

Reproducible: Always

Steps to Reproduce:
1. Start Konsole.
2. Create a directory and cd into it.
3. Create the empty file empty.cc
4. Create the file prov.cc with some content like this:
float calculate_something(float const a, float const b, float const c) {
   return
      calculate_something(1.7, calculate_something(8.9, 19.51, 33.0), a) +
      calculate_something(c, 18.8, calculate_something(7.5, b, a));
}
5. Execute "diff -u empty.cc prov.cc|kompare -".
6. Open the settings dialog and set the font to "Bitstream Vera Sans Mono".
7. Confirm the change and close the settings dialog.
8. Make Kompare redraw the main view (if it did not already).

Actual Results:  
The 2 lines are printed to the terminal (repeated). Altering the file prov.cc indicates that the lines are printed once for every line in prov.cc that has at least 2 characters (not counting the newline). It does not seem to matter which characters (space, letter, number, symbol).
Comment 1 Toralf Förster 2010-11-30 10:16:51 UTC
same here at an almost stable Gentoo with KDE 4.4.5 and a slightly different message :

load glyph failed err=6 face=0x9db7e38, glyph=384
QFontEngine: Glyph neither outline nor bitmap format=0
Comment 2 esigra 2011-01-09 14:59:11 UTC
No longer reproducible with:
Qt: 4.7.1
KDE Development Platform: 4.5.4 (KDE 4.5.4)
Kompare: 4.0.0