Bug 354839 - wrong font interpretation with oxygen-sans
Summary: wrong font interpretation with oxygen-sans
Status: RESOLVED DUPLICATE of bug 343561
Alias: None
Product: kde-gtk-config
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 5.4.2
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Manuel Tortosa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-04 15:08 UTC by Roberto Secchi
Modified: 2015-11-05 17:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Secchi 2015-11-04 15:08:31 UTC
using this module and selecting font oxygen-sans normal, there are no change made on gtk apps, that continue using the standard font ( sans-serif ).

this because the module write in this format the font code in the gtkrc file:

roberto@blackmamba:~$ cat .gtkrc-2.0
# File created by KDE Gtk Config
# Configs for GTK2 programs 

include "/usr/share/themes/Orion/gtk-2.0/gtkrc"
style "user-font" 
{
        font_name="Oxygen-Sans Sans-Book"
}
widget_class "*" style "user-font"
gtk-font-name="Oxygen-Sans Sans-Book 10"
...


editing by hand and changing to:
{
        font_name="Oxygen-Sans Sans-Book"
}
widget_class "*" style "user-font"
gtk-font-name="Oxygen-Sans normal 10"
...


everything goes correctly and gtk apps have the oxygen sans font.

This issue can reproduced with other fonts, like segoe UI. 
I haven't noticed this with arial, sans, dejavu family, droid sans and others.

thanks,
roberto
Comment 1 Aleix Pol 2015-11-05 14:46:51 UTC
It could be a bug on the font? It looks like it's doing what it's supposed to do..
Comment 2 Roberto Secchi 2015-11-05 16:41:25 UTC
Hi Aleix thank's for you reply, I think that is a bug related betweek translation and kde-gtk module.

If I use italian lenguage the font in the selaction is expressed with:
Segoe UI Normale 10
and in the gtk module, after I force the font for gtk app, writite the gtk-2.0 file in this mode:
Segoe UI Normnale 10

But the system recognize it with Segoe UI Normal 10, so all gtk app fallback to sans-serif.

Like above, the family oxygen-sans in the same way , but here the problem is agan the transcription of font:

oxygen-sans sans-book is not recognized in favour of sans serif standar font family.
If I change sans-book in "normal", all gtk app recognize it.

I think that now the problem probably is not the gtk module, but related about font, or with gtk2.0 that is not able to read sans-book, but why with segoe ui there is a translation in different lenguage ? I'm not able to debug so deeply.

If you all think that I have to submit this bug to oxygen-sans developers, sure I'll do.
Comment 3 Aleix Pol 2015-11-05 16:46:05 UTC
I'm not aware of translation issues on font names. Maybe you could investigate what's going on? Or give me something to read on the subject? I'm not sure how to proceed TBH.
Comment 4 Roberto Secchi 2015-11-05 16:50:20 UTC
I think that with segoe family is a problem related with the settings in the language of my distro, so you should not consider this.

I'll investigate on the oxygen-sans family and related.
Comment 5 Roberto Secchi 2015-11-05 16:53:10 UTC
found, this is the problem that I have, well speacked.

https://bugs.kde.org/show_bug.cgi?id=343561
Comment 6 Aleix Pol 2015-11-05 16:55:29 UTC

*** This bug has been marked as a duplicate of bug 343561 ***
Comment 7 Aleix Pol 2015-11-05 16:58:42 UTC
It doesn't really say much further...
Comment 8 Roberto Secchi 2015-11-05 17:02:39 UTC
thanks Aleix ;)