Squirrel SQL font size is too small

The font size for SQL input is too small. How can I increase the font size for SQL input? In the "global options" it is possible to increase the font size. But this does not affect the text size for SQL input.

+20
squirrel-sql
source share
4 answers

In SquirreL SQL Client version 3.7.1, you can increase the font size in the SQL input area.

The following is the procedure:

  • Go to File -> New Session Properties

  • Go to the SQL tab, and then below you can choose what is called the SQL Entry Area , where you can increase the font size as you needed. Click here to view a screenshot.

+17
source share

I assume that you are using Windows 8.1, like me. Some 8.1 combinations, high DPI monitors, and Swing don't seem to play well together. My fix was to edit the squirrel-sql.bat file and add the following java options right after the existing java option

-Dswing.plaf.metal.controlFont=Tahoma-18 -Dswing.plaf.metal.userFont=Tahoma-18 

For reference, the full line is as follows:

 start "SQuirreL SQL Client" /B "%LOCAL_JAVA%" -Xmx256m -Dsun.java2d.noddraw=true -Dswing.plaf.metal.controlFont=Tahoma-18 -Dswing.plaf.metal.userFont=Tahoma-18 -cp %SQUIRREL_CP% -splash:"%SQUIRREL_SQL_HOME%/icons/splash.jpg" net.sourceforge.squirrel_sql.client.Main %TMP_PARMS% 

EDIT: The above will increase the size for everything except the SQL input field. To do this, go to File-> New Session Properties-> SQL-> SQL Entry Area

+13
source share

Additional java switches in addition to those given by James will help with other sections of the user interface, which displays a fine print.

 -Dswing.plaf.metal.titleFont=Tahoma-18 -Dswing.plaf.metal.menuFont=Tahoma-18 -Dswing.plaf.metal.systemFont=Tahoma-18 -Dswing.plaf.metal.smallFont=Tahoma-18 

start.bat entry:

 start "SQuirreL SQL Client" /B "%LOCAL_JAVA%" -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.plaf.metal.controlFont=Tahoma-18 -Dswing.plaf.metal.userFont=Tahoma-18 -Dswing.plaf.metal.titleFont=Tahoma-18 -Dswing.plaf.metal.menuFont=Tahoma-18 -Dswing.plaf.metal.systemFont=Tahoma-18 -Dswing.plaf.metal.smallFont=Tahoma-18 -cp %SQUIRREL_CP% -splash:"%SQUIRREL_SQL_HOME%/icons/splash.jpg" net.sourceforge.squirrel_sql.client.Main %TMP_PARMS% 

High-resolution discussion on stackexchange

+5
source share

Here's what I got (Windows 10 64-bit, SQuirrel 3.9.1, jrw1.8.0_211)

At the bottom of C:\Program Files\squirrel-sql-3.9.1\squirrel-sql.bat I changed the start command to C:\Program Files\squirrel-sql-3.9.1\squirrel-sql.bat :

 start "SQuirreL SQL Client" /B "%LOCAL_JAVA%"^ -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true^ -Dswing.plaf.metal.controlFont=Tahoma-18^ -Dswing.plaf.metal.userFont=Tahoma-18^ -Dswing.plaf.metal.titleFont=Tahoma-18^ -Dswing.plaf.metal.menuFont=Tahoma-18^ -Dswing.plaf.metal.systemFont=Tahoma-18^ -Dswing.plaf.metal.smallFont=Tahoma-18^ -cp %CP%^ -splash:"%SQUIRREL_SQL_HOME%/icons/splash.jpg"^ net.sourceforge.squirrel_sql.client.Main %TMP_PARMS% 

Note that ^ must be at the very end of the line (no spaces after it!)

0
source share

All Articles