13

I am using JMeter with 2.13 version.
I want to increase font size for JMeter.

I have tried following question jmeter test plan navigation pane font size. However for 2.13 version doesn't have src folder.

Here is a picture, how it looks now:

enter image description here

How to change font size for JMeter test plan section.

Community
  • 1
  • 1
catch23
  • 17,519
  • 42
  • 144
  • 217

6 Answers6

12

Since JMeter 3.2, use Menu:

Options > Zoom In

Options > Zoom Out

See this:

JMeter 3.0 (released 2 weeks ago) has improved regarding the icons and tables but does not yet support full HiDPI mode:

See this particular bug:

To set properties, see:

Now for fonts, you can use Swing mechanism. To do that, add to jmeter.sh or jmeter.bat the JVM System property:

-Dswing.plaf.metal.controlFont=Dialog-20

And ensure you use the Cross Platform LAF

Community
  • 1
  • 1
UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
5

JMeter 4.0 update :

Before any update of Jmeter setting

Before any update of Jmeter setting

After the update of Jmeter setting

enter image description here JMeter 4.0 update using Windows 10 :

1. Go here : C:\apache-jmeter-4.0\bin 
2. Open to edit this : jmeter.properties 
3. Over here you need to update all required fields for you 

This is what I changed and it looks good to me :

jmeter.loggerpanel.display=true
jmeter.loggerpanel.enable_when_closed=true
jmeter.loggerpanel.maxlength=1000
jmeter.gui.refresh_period=500
jmeter.hidpi.mode=true
jmeter.hidpi.scale.factor=2.0
jmeter.toolbar.icons=org/apache/jmeter/images/toolbar/icons-toolbar.properties
jmeter.toolbar=new,open,close,save,save_as_testplan,|,cut,copy,paste,|,expand,collapse,toggle,|,test_start,test_stop,test_shutdown,|,test_start_remote_all,test_stop_remote_all,test_shutdown_remote_all,|,test_clear,test_clear_all,|,search,search_reset,|,function_helper,help
jmeter.toolbar.icons.size=48x48
jmeter.icons=org/apache/jmeter/images/icon_1.properties
jmeter.tree.icons.size=48x48
save_automatically_before_run=true


onload.expandtree=true
jsyntaxtextarea.wrapstyleword=true

jsyntaxtextarea.linewrap=true

jsyntaxtextarea.codefolding=true
jsyntaxtextarea.maxundos=50
jsyntaxtextarea.font.family=Hack

jsyntaxtextarea.font.size=28
loggerpanel.usejsyntaxtext=true
view.results.tree.max_size=10485760


please refer : https://jmeter.apache.org/usermanual/hints_and_tips.html
Mike ASP
  • 2,013
  • 2
  • 17
  • 24
  • May you show some image with how it was before properties update and after? It will help a lot of. – catch23 Jun 20 '18 at 12:23
  • @nazar_art , once you download Jmeter you will see default settings and most of settings are commented out. And when you open to jmeter.bat or jmeter.jar you will see small icons all over on Jmeter UI. To fix that issue you just need to follow my instructions. I don't think you need images for that. Even after this you are facing some struggle than let me know. – Mike ASP Jun 20 '18 at 15:41
  • 1
    When I wrote about some image, I meant about Jmeter UI screenshots. Snippets with `jmeter.properties` are obvious. – catch23 Jun 20 '18 at 20:04
  • Nice solution, but the elements of the test tree have the text trimmed on top and at the bottom. The height of tree elements is not large enough. Any thoughts on how to get around this? – scharette Aug 28 '18 at 17:50
  • I have seen this type issue when I drag and drop Jmeter from my laptop to different resolution monitor. But I am good for with over all UI. I can tell you one trick-- can you please try to open/close multiple times ? pleas share pics of your issue ..let me see what I can do. – Mike ASP Aug 28 '18 at 20:08
3
  1. In order to get src folder you need to download JMeter source code separately, i.e. from here. Unpack the folder and make required changes
  2. You will need Apache Ant to build JMeter. Install it and make sure that %ANT_HOME%/bin folder is added to your system PATH variable
  3. Build JMeter using next 2 commands:

    • ant download_jars
    • ant package
  4. Now your should be able to run JMeter with increased font from apache-jmeter-2.13/bin folder like:

    jmeter -Djmeter.dialog.font=20 .....
    

    or ir you want to make font size change permanent add the next line to system.properties file (located in JMeter's "bin" folder)

    jmeter.dialog.font=20
    

    JMeter restart will be required to pick the property up. See Apache JMeter Properties Customization Guide for more information regarding JMeter properties usage.


If you trust me and Bitbucket hosting you can take the risk and get compiled binary with aforementioned change from

https://bitbucket.org/glinius/jmeter-font-increase/downloads/ApacheJMeter_core.jar

and dropping it to /lib/ext folder of your JMeter installation, however downloading binaries of unknown origin is not recommended (your PC can become a member of a botnet or someone's bitcoin mining farm) so it's better to take above 4 steps.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
2

Using Jmeter 3.2

Options > Zoom In

Zoomed some panes but not others. However modifying apache-jmeter-3.2\bin\jmeter.properties works. Tested with Win 10.

#jmeter.hidpi.mode=false
# To enable pseudo-hidpi mode change to true
jmeter.hidpi.mode=true
# HiDPI scale factor
#jmeter.hidpi.scale.factor=1.0
# Suggested value for HiDPI
jmeter.hidpi.scale.factor=2.0
allap
  • 666
  • 6
  • 6
2

In Jmeter 3.1 and 3.2, uncomment below lines in jmeter.properties file, and restart the Jmeter. It worked and the font size increased for all the icons and components

jmeter.hidpi.mode=true

jmeter.hidpi.scale.factor=2.0

Alex Martian
  • 3,423
  • 7
  • 36
  • 71
Raja VinaySai
  • 35
  • 1
  • 6
  • Thanks that was really useful since I get tired of Option -> Zoom in. I also prefer and set the jmeter.hidpi.scale.factor to 1.5 since 2.0 was a bit too much for me :) – Rain9333 Jan 10 '20 at 09:57
1

After setting the following properties in bin\jmeter.properties it looks better

jmeter.hidpi.mode=true
jmeter.hidpi.scale.factor=2.0
jmeter.toolbar.icons.size=32x32
jmeter.tree.icons.size=24x24
jsyntaxtextarea.font.family=Hack 
jsyntaxtextarea.font.size=28

ref: https://jmeter.apache.org/usermanual/hints_and_tips.html