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 font ratio option #686

Closed
xarkes opened this issue Sep 7, 2018 · 8 comments
Closed

Add font ratio option #686

xarkes opened this issue Sep 7, 2018 · 8 comments
Labels
good first issue Easy issues for new comers. UI

Comments

@xarkes
Copy link
Member

xarkes commented Sep 7, 2018

Allow to increase/decrease global font size (not only disasm)

@xarkes xarkes added the good first issue Easy issues for new comers. label Sep 7, 2018
@xarkes
Copy link
Member Author

xarkes commented Sep 7, 2018

Qt doesn't recommand overwritting default font.
The best is to use environment variables like QT_SCALE_FACTOR.
Feel free to reopen.

@xarkes xarkes closed this as completed Sep 7, 2018
@xarkes
Copy link
Member Author

xarkes commented Sep 8, 2018

Reopening because I think it's still useful anyway. People don't have to do hack through the command lines.

@xarkes xarkes reopened this Sep 8, 2018
@jamie-cyc
Copy link

This would be good for my poor vision (#675). Are you saying that I can 'hack' this manually by setting the QA_SCALE_FACTOR envvar in bash and then opening Cutter?

@xarkes
Copy link
Member Author

xarkes commented Sep 17, 2018

Exactly, or directly in command line:
QT_SCALE_FACTOR=2.0 ./Cutter

@jamie-cyc
Copy link

Ah interesting, that might help me. Is there an equivalent for Windows 10?

If not, I guess you could just compile Cutter in Cygwin and launch it that way with the scaling.

@xarkes
Copy link
Member Author

xarkes commented Sep 17, 2018

You can do the same in the cmd prompt:

set QT_SCALE_FACTOR=2.0
Cutter.exe

@jamie-cyc
Copy link

Ah right, that's actually really helped. I guess the default value is 1.0?

It's just issue #675 causing issues now.

Thank you.

@karliss
Copy link
Member

karliss commented Mar 14, 2020

I am closing this. There is no need to "hack through the command lines". Every sane operating system has display scaling factor configuration and Qt respects that.

Situation was a bit worse 2 years ago using an older Qt version and older desktop environment versions. Using latest Qt everything is mostly working. Most of the remaining tasks are linked in high dpi project https://github.com/radareorg/cutter/projects/16 and also my attempt updating Qt #1868 (5.14 has better fractional scaling support on Windows).

@karliss karliss closed this as completed Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Easy issues for new comers. UI
Projects
None yet
Development

No branches or pull requests

3 participants