How to force DPI 120 for Pale Moon

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
djgpp

How to force DPI 120 for Pale Moon

Unread post by djgpp » 2021-04-21, 12:18

Pale Moon doesn't obey the system DPI setting on my Q4OS Scorpion system. I discovered how to do this within Pale Moon itself.

On about:config, change the value of layout.css.devPixelsPerPx from -1.0 to 1.25.

How to calculate the ratio:

My system's native DPI is 96. Forced DPI is 120. So the ratio is 120/96 = 1.25

Just substitute the numbers according to the values on your system.

Good luck.

New Tobin Paradigm

Re: How to force DPI 120 for Pale Moon

Unread post by New Tobin Paradigm » 2021-04-21, 13:14

You're not helping.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35589
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: How to force DPI 120 for Pale Moon

Unread post by Moonchild » 2021-04-21, 13:23

It's still strange that your system DPI isn't picked up.
Did you set the pref layout.css.dpi by any chance?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

djgpp

Re: How to force DPI 120 for Pale Moon

Unread post by djgpp » 2021-04-21, 13:39

Moonchild wrote:
2021-04-21, 13:23
It's still strange that your system DPI isn't picked up.
Did you set the pref layout.css.dpi by any chance?
It's the default value, -1. Q4OS is a weirded setup because it uses the old KDE3 fork Trinity as it DE. I think TDE is the problem, not Pale Moon.

djgpp

Re: How to force DPI 120 for Pale Moon

Unread post by djgpp » 2021-04-21, 13:40

New Tobin Paradigm wrote:
2021-04-21, 13:14
You're not helping.
I share what I did to get my desired result. If my method was wrong, please give me the correct way to do it. Thanks.

djgpp

Re: How to force DPI 120 for Pale Moon

Unread post by djgpp » 2021-04-21, 13:42

Just tried to change layout.css.dpi to 120. It doesn't change anything (I already changed layout.css.devPixelsPerPx). So does changing layout.css.devPixelsPerPx alone is enough? Thanks.

Locked