The Burp Suite User Forum will be discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Centre. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTRE DISCORD

Create new post

Montaya APi - How do I update my views fonts?

Oussama | Last updated: Jul 23, 2024 07:04AM UTC

I would like to make my extension aware of the current font type & size. In a suite tab I use the following code: ```java @Override public void updateUI() { . . . ``` In said block I set the current font through api.userInterface().currentDisplayFont() - this works very well. When I do the same in a intercept tab, the UI totally glitches out: https://i.imgur.com/Vav8iJk.png Any hints on how to achieve this without having to reload the whole extension? Is there a callback from the API when I can change the fonts?

Oussama | Last updated: Jul 23, 2024 07:20AM UTC

Calling super.updateUI() helps - so I assume updateUI is the way to go

Hannah, PortSwigger Agent | Last updated: Jul 23, 2024 01:09PM UTC

Hi Yes, "updateUI()" would be your best option - the JWT Editor extension has some neat tricks to keep the UI consistent. You might like to check out some of the code available on that repository. - https://github.com/DolphFlynn/jwt-editor/blob/f71fcd7fb8eaa886cbae1008a1d2215347ea2c0e/src/main/java/com/blackberry/jwteditor/view/rsta/CustomizedRSyntaxTextArea.java

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.