rdiankov / openrave

Open Robotics Automation Virtual Environment: An environment for testing, developing, and deploying robotics motion planning algorithms.
http://www.openrave.org
Other
684 stars 339 forks source link

Add SetTextSize viewer function for adjusting HUD text size #1366

Closed Hsifnus closed 3 months ago

Hsifnus commented 3 months ago

This PR adds a SetTextSize viewer function accessible in Python for changing the HUD text size, which before was fixed at a font size of 18 units for qtosgrave and 10 units for qtcoinrave.

qtosgrave screenshots

In this screenshot, the text size is the default value of 18 units Screenshot from 2024-03-13 13-26-02

Here, the text size is adjusted to 12 units Screenshot from 2024-03-13 13-34-19

Here, the text size is adjusted to 24 units Screenshot from 2024-03-13 13-34-40

qtcoinrave screenshots

In this screenshot, the text size is the default value of 10 units Screenshot from 2024-03-14 09-43-27

Here, the text size is adjusted to 14 units Screenshot from 2024-03-14 09-44-00

Here, the text size is adjusted to 18 units Screenshot from 2024-03-14 09-45-03

Here, the text size is adjusted to 26 units Screenshot from 2024-03-14 09-45-32

rdiankov commented 3 months ago

thanks~