! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Cannot change font
Status:
RESOLVED: FIXED
Product:
Mousepad
Component:
General

Comments

Description Stefan 2016-08-18 10:18:38 CEST
I am trying to change the font from the menu, but after I select the font, font size etc it just doesn't change.
I've also tried restarting Mousepad after changing the font but it didn't work.

I know I was able to change the font before and at that time I was running on the  4.3.6-1 kernel. I've noticed the change after upgrading to the 4.4.17-1 kernel.

I'm planning to upgrade to the 4.7 kernel this or next month. Please let me know if you need any logs or system info.

I'll also add a note after the upgrade
Comment 1 Stefan 2016-08-18 10:20:42 CEST
Also, I'm running Manjaro

$ cat /etc/lsb-release 
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=16.06.1
DISTRIB_CODENAME=Daniella
DISTRIB_DESCRIPTION="Manjaro Linux"
Comment 2 poma 2016-08-18 18:03:44 CEST
(In reply to Stefan from comment #0)
[...]
> I know I was able to change the font before and at that time I was running
> on the  4.3.6-1 kernel. I've noticed the change after upgrading to the
> 4.4.17-1 kernel.
> 
> I'm planning to upgrade to the 4.7 kernel this or next month. Please let me
> know if you need any logs or system info.
> 
> I'll also add a note after the upgrade


Mousepad font setup - kernel unrelated. ;)
Comment 3 poma 2016-08-18 18:05:16 CEST
Mousepad - Font setup

Font status - via CLI:
$ grep font ~/.config/Mousepad/settings.conf
font-name='Monospace 12'
use-default-monospace-font=true

Font status/change - via GUI:
-Edit
 -Preferences
  -View
   -Font
    Use system monospace font: (Un)lock

Use system font: Unlock - via CLI:
$ sed -i 's/font=true/font=false/' ~/.config/Mousepad/settings.conf

Font status/change - via GUI:
-View
 -Select Font

Select font: e.g. Monospace 24 - via CLI:
$ sed -i 's/Monospace 12/Monospace 24/' ~/.config/Mousepad/settings.conf

Font status - via CLI:
$ grep font ~/.config/Mousepad/settings.conf
font-name='Monospace 24'
use-default-monospace-font=false


$ mousepad --version | head -1
Mousepad 0.4.0git-20160727git5c90989

Build Configuration:

* D-BUS support:             yes
* Debug Support:             minimum
* Use keyfile backend:       yes
* Build with GTK+ 3:         yes
Comment 4 Igor editbugs 2017-01-16 15:18:52 CET
Have you unchecked "Use system font" under Preferences?
Comment 5 Evangelos Foutras 2017-11-11 16:36:41 CET
The need to uncheck that is counter-intuitive; when you go to "View -> Select Font" you expect the change to take effect immediately, regardless of the "use system font" setting under Preferences.

The solution to this would be to either:

1) Remove the "View -> Select Font" menu option (IMO simpler and reduces duplication).

2) Adjust "View -> Select Font" so it disables the "use system font" setting.
Comment 6 Theo Linkspfeifer editbugs 2019-04-23 16:48:21 CEST
*** Bug 15052 has been marked as a duplicate of this bug. ***
Comment 7 Theo Linkspfeifer editbugs 2019-04-23 18:06:41 CEST
Created attachment 8447 
proposed patch

I vote for implementing the second solution which was suggested by Evangelos.
Comment 8 Git Bot editbugs 2019-05-18 23:40:10 CEST
Theo Linkspfeifer referenced this bugreport in commit c4e15fdc86dbb2559f9e0d1658cca6372ec58b8d

Selecting a font via menu now disables system font (Bug #12773)

https://git.xfce.org/apps/mousepad/commit?id=c4e15fdc86dbb2559f9e0d1658cca6372ec58b8d
Comment 9 Andre Miranda editbugs 2019-05-18 23:40:51 CEST
Simple patch, thanks.

Bug #12773

Reported by:
Stefan
Reported on: 2016-08-18
Last modified on: 2019-05-18
Duplicates (1):
  • 15052 The font and size do not change!

People

Assignee:
Matthew Brush
CC List:
8 users

Version

Target Milestone:
Mousepad 0.4.x

Attachments

proposed patch (841 bytes, patch)
2019-04-23 18:06 CEST , Theo Linkspfeifer
no flags

Additional information