Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add adjustable font size for HiDPI monitors for IDA plugin #2570

Open
Still34 opened this issue Jan 22, 2025 · 0 comments
Open

Add adjustable font size for HiDPI monitors for IDA plugin #2570

Still34 opened this issue Jan 22, 2025 · 0 comments

Comments

@Still34
Copy link

Still34 commented Jan 22, 2025

Summary

Add a font option similar to IDA's font adjustment menu.

Motivation

At the moment, the capa window is rendered within IDA using a fixed font size or the default QFont size (see https://github.com/mandiant/capa/blob/master/capa/ida/plugin/form.py#L421, https://github.com/mandiant/capa/blob/master/capa/ida/plugin/model.py#L137, https://github.com/mandiant/capa/blob/master/capa/ida/plugin/view.py#L185, etc.) This is fine for users on a decently sized 1080p monitors where scaling is a non-issue. However, the font becomes unreadable on higher DPI monitors where some amount of scaling is required.

Describe alternatives you've considered

At the moment, the current workaround I've been using for a few months now is to manually call QFont.setPointSize after every font declaration to a fixed value. This does not scale between resolution and is not ideal. I do not expect a feature where the font size is automatically adjusted of course, but a menu adjusting the size would be preferred at the very least.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant