This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Okular menu font size too small

Tags: None
(comma "," separated)
fanoflinux
Registered Member
Posts
8
Karma
0

Okular menu font size too small

Tue Dec 10, 2019 10:32 pm
Hi All:

I have Linux Mint 19.2 .
Okular's menu font size is way too small.
As far as I can determine, there is no provision to change the menu's
font size using tools under the Settings drop down menu.
The same microscopic problem also happens to the toolbar font size!
I do not have same problem with other pdf reader.

Please advice.
Thank you.
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS

Re: Okular menu font size too small

Wed Dec 11, 2019 8:27 am
Okular follows the global font settings from KDE, which you can see/change with kcmshell5 fonts. You can increase the font size separately for menu and toolbar there.
fanoflinux
Registered Member
Posts
8
Karma
0

Re: Okular menu font size too small

Wed Dec 11, 2019 3:44 pm
Hi:

Thank you for your assistance.
Linux Mint uses Cinnamon for desktop environment.

Okular follows the global font settings from KDE, which you can see/change with kcmshell5 fonts.
You can increase the font size separately for menu and toolbar there.


I did this:
Code: Select all
$ kcmshell5 --list
qt5ct: using qt5ct plugin
The following modules are available:
cache        - Configure web cache settings
cookies      - Configure the way cookies work
filetypes    - Configure file associations
netpref      - Configure generic network preferences, like timeout values
proxy        - Configure the proxy servers used
smb          - Credentials used to access SMB shares
useragent    - Configure the User Agent exposed by the HTTP kioslave
webshortcuts - Configure web shortcuts


$ kcmshell5 fonts
qt5ct: using qt5ct plugin
Could not find module 'fonts'. See kcmshell5 --list for the full list of modules.


What did I missed?
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS

Re: Okular menu font size too small

Wed Dec 11, 2019 4:01 pm
Unfortunately i don't know a package name which contains the kcmshell5 module for font settings, but you can check, if you have file ~/.config/kdeglobals with following content:
Code: Select all
[General]
[...]
fixed=Hack,9,-1,5,50,0,0,0,0,0
font=Noto Sans,9,-1,5,50,0,0,0,0,0
menuFont=Noto Sans,9,-1,5,50,0,0,0,0,0
smallestReadableFont=Noto Sans,7,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,7,-1,5,50,0,0,0,0,0
This is the place, where fonts for the various parts of kde applications are defined.
fanoflinux
Registered Member
Posts
8
Karma
0

Re: Okular menu font size too small

Wed Dec 11, 2019 4:16 pm
Hi

Code: Select all
~/.config$ ls -l | grep kdeglobals


did not produce anything.

Same goes for this:
Code: Select all
~/.config$ locate kdeglobals


Is this because Linux Mint use Cinnamon desktop?
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS

Re: Okular menu font size too small

Wed Dec 11, 2019 4:28 pm
If the file is not there, just create one and paste the content from my previous post. Use font names of your choice (and installed on your box)
fanoflinux
Registered Member
Posts
8
Karma
0

Re: Okular menu font size too small

Wed Dec 11, 2019 4:54 pm
Thank you.

Here is what I did:
Code: Select all
~/.config$ cat kdeglobals
fixed=Hack,12,-1,5,50,0,0,0,0,0
font=Noto Sans,12,-1,5,50,0,0,0,0,0
menuFont=Noto Sans,12,-1,5,50,0,0,0,0,0
smallestReadableFont=Noto Sans,12,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,12,-1,5,50,0,0,0,0,0


is the above correct?

Not knowing the arguments after the font declaration in above kdeglobals file,
I assumed the first argument is the font size.
i changed it all to 12.

Do you know what are the arguments for the font are?
I ran Okular, but the font size in toolbar and menu are still microscopic.
What to do?
Thanks again.
fanoflinux
Registered Member
Posts
8
Karma
0

Re: Okular menu font size too small

Wed Dec 11, 2019 5:33 pm
Here are additional changes:

List some fonts:
Code: Select all
~/.config$ fc-list | grep ubuntu
/usr/share/fonts/truetype/ubuntu/UbuntuMono-RI.ttf: Ubuntu Mono:style=Italic
/usr/share/fonts/truetype/ubuntu/UbuntuMono-B.ttf: Ubuntu Mono:style=Bold
/usr/share/fonts/truetype/ubuntu/Ubuntu-L.ttf: Ubuntu,Ubuntu Light:style=Light,Regular
/usr/share/fonts/truetype/ubuntu/Ubuntu-BI.ttf: Ubuntu:style=Bold Italic
/usr/share/fonts/truetype/ubuntu/Ubuntu-RI.ttf: Ubuntu:style=Italic
/usr/share/fonts/truetype/ubuntu/Ubuntu-MI.ttf: Ubuntu,Ubuntu Light:style=Medium Italic,Bold Italic
/usr/share/fonts/truetype/ubuntu/UbuntuMono-BI.ttf: Ubuntu Mono:style=Bold Italic
/usr/share/fonts/truetype/ubuntu/Ubuntu-B.ttf: Ubuntu:style=Bold
/usr/share/fonts/truetype/ubuntu/UbuntuMono-R.ttf: Ubuntu Mono:style=Regular
/usr/share/fonts/truetype/ubuntu/Ubuntu-LI.ttf: Ubuntu,Ubuntu Light:style=Light Italic,Italic
/usr/share/fonts/truetype/ubuntu/Ubuntu-R.ttf: Ubuntu:style=Regular
/usr/share/fonts/truetype/ubuntu/Ubuntu-M.ttf: Ubuntu,Ubuntu Light:style=Medium,Bold
/usr/share/fonts/truetype/ubuntu/Ubuntu-C.ttf: Ubuntu Condensed:style=Regular



Here is a revised kdeglobals file where I replaced font type with Ubuntu-R:
Code: Select all
~/.config$ cat kdeglobals
fixed=Ubuntu-R,12,-1,5,50,0,0,0,0,0
font=Ubuntu-R,12,-1,5,50,0,0,0,0,0
menuFont=Ubuntu-R,12,-1,5,50,0,0,0,0,0
smallestReadableFont=Ubuntu-R,12,-1,5,50,0,0,0,0,0
toolBarFont=Ubuntu-R,12,-1,5,50,0,0,0,0,0



I still have microscopic menu and toolbar font size!
fanoflinux
Registered Member
Posts
8
Karma
0

Re: Okular menu font size too small

Wed Dec 11, 2019 7:09 pm
Added "[General]" annotation, still did not see larger fonts for Toolbar and Menu!
Code: Select all
~/.config$ cat kdeglobals
[General]
fixed=Ubuntu-R,12,-1,5,50,0,0,0,0,0
font=Ubuntu-R,12,-1,5,50,0,0,0,0,0
menuFont=Ubuntu-R,12,-1,5,50,0,0,0,0,0
smallestReadableFont=Ubuntu-R,12,-1,5,50,0,0,0,0,0
toolBarFont=Ubuntu-R,12,-1,5,50,0,0,0,0,0

User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS

Re: Okular menu font size too small

Wed Dec 11, 2019 8:36 pm
Ubuntu-R is the name of the file. The name of the font is Ubuntu. So try to use:
Code: Select all
menuFont=Ubuntu,12,-1,5,50,0,0,0,0,0

If you take '-1,5,25,0,0,0,0,0' instead of '-1,5,50,0,0,0,0,0', Ubuntu Light will be used (i changed the fonts with 'kcmshell5 fonts' an then listed ~/.config/kdeglobals).

BTW, you can write/read the entries in the (KDE) config files with the kwriteconfig5/kreadconfig from package libkf5config-bin as well:
Code: Select all
kwriteconfig5 --file ~/.config/kdeglobals --group General --key menuFont Ubuntu,10,-1,5,50,0,0,0,0,0
fanoflinux
Registered Member
Posts
8
Karma
0

Re: Okular menu font size too small

Wed Dec 11, 2019 9:46 pm
I still have tiny fonts for menu and toolbar after implemented your suggestion.
Here is the revised kdeglobals:

Code: Select all
~/.config$ cat kdeglobals
[General]
fixed=Ubuntu,12,-1,5,50,0,0,0,0,0
font=Ubuntu,12,-1,5,50,0,0,0,0,0
menuFont=Ubuntu,12,-1,5,50,0,0,0,0,0
smallestReadableFont=Ubuntu,12,-1,5,50,0,0,0,0,0
toolBarFont=Ubuntu,12,-1,5,50,0,0,0,0,0


What did I missed?
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS

Re: Okular menu font size too small

Wed Dec 11, 2019 10:31 pm
fanoflinux wrote:What did I missed?

I have no idea :|

All i wrote above works fine, if you use KDE as desktop >:D

There was another thread with font settings in dophin in a Pop-OS/GNOME3 environment, that is marked as solved. It may helps you as well.
fanoflinux
Registered Member
Posts
8
Karma
0

Re: Okular menu font size too small

Wed Dec 11, 2019 10:45 pm
Hi raphaelra:

Thanks for trying to help.
The new link did not help either.
I gave up.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]