How to increase font size in pgAdmin 4 on Windows

New version of pgAdmin 4 is based on QT5. When you install pgAdmin 4 on Windows computer with a high-density display you may see that letters are too small.

Solution is to send one parameter to QT engine. It will handle DPI in different way.

Open PowerShell and go to directory with pgAdmin. Then launch application with parameter:

cd "c:\Program Files\PostgreSQL\9.6\pgAdmin 4\bin"
.\pgAdmin4.exe -platform windows:dpiawareness=0

You can persist the configuration by creating qt.conf. Start PowerShell as Administrator.

Click Windows Start menu and type: powershell. Then right-click and select the option: Run as Administrator.

Go to directory with pgAdmin and create the file:

cd "c:\Program Files\PostgreSQL\9.6\pgAdmin 4\bin"
notepad qt.conf

Write there following content:

[Platforms]
WindowsArguments = dpiawareness=0

Save the file and start pgAdmin 4 and enjoy new font size.

Note: make sure that the file name is just qt.conf. Notepad could add .txt file extension when saving the file directly from Notepad.

2. March 2017 at 22:26 - Software engineering (Tags: , , , ). Both comments and pings are currently closed.

0 0 votes
Article Rating
10 Comments
Inline Feedbacks
View all comments
Bayu Angkasa
7 years ago

thank you … you have just saved my life !!!

7 years ago
Reply to  Bayu Angkasa

I’m glad that the article helped you.

Chris Barr
6 years ago

Thank you! This really worked… Initially i accidentally saved it with a .txt extension and it didn’t work. Once I realized my mistake and rebooted PGAdmin it worked like a charm.

6 years ago
Reply to  Chris Barr

@christopherbarriteau:disqus Thank you very much for pointing out the problem with .txt. I’ve added info to the article.

Lily
6 years ago

Please HELP!!

Thank you for sharing this….I’m in the last step to get it done. When I was trying to save the notepad file in the folder:c:Program FilesPostgreSQL9.6pgAdmin 4bin, it gave me the message of “you don’t have permission to save file in this folder, contact admin to get the permission”. Is there any way to fix this issue? Thank you!

Lily
6 years ago
Reply to  Lily

Issue solved… I still can’t save to the above folder. So I save it to my desktop first and then move it to the designated folder. Just in case anyone has the same issues

6 years ago
Reply to  Lily

Hi Lily. It is necessary to start PowerShell or Notepad as Administrator. You can achieve this by clicking Windows Start menu and typing: notepad (or powershell). Then right-click and select the option: Run as Administrator. I’ll update the article with screenshot. Thank you for your feedback.

Lily
6 years ago

Got it!! Thank you for clarification, that’s really helpful!

6 years ago
Reply to  Lily

Thank you for your feedback. The article was updated. I admit that it is not very obvious in Windows and many people have a problem with it.

Jia
6 years ago

Thanks. It works!