Skip to content

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

Open
@Still34

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions