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

RFE: Windows High DPI Resolution response #20

Closed
rgleason opened this issue Jul 11, 2023 · 14 comments
Closed

RFE: Windows High DPI Resolution response #20

rgleason opened this issue Jul 11, 2023 · 14 comments

Comments

@rgleason
Copy link
Contributor

Mike, otcurrent is excellent as ever. There is just on or two things that need to be improved.
Bdbcat has some code to make the text DPI responsive for Windows. You could use that for the Tide direction and speed as shown at each arrow.

otcurrent-text-size

@Rasbats
Copy link
Owner

Rasbats commented Jul 30, 2023

Can you point me to the code needed? Thanks. Assume you have tried the option in preferences.

@rgleason
Copy link
Contributor Author

I did not see an option to change text size in prefs. Just back from cruise will check again and try to find some example code

@rgleason
Copy link
Contributor Author

rgleason commented Aug 3, 2023

Found the High Resolution button, it seems to separate the text vertically but does not increase Font size.
I also tried changing the various User Scale Factors and they do not control the text size either.

Current2

Current1

@rgleason
Copy link
Contributor Author

rgleason commented Aug 3, 2023

Mike hopefully the links in this post will help. These were used to get Dashboard working for High Resolution High DPI Displays that are more often used these days.
antipole2/JavaScript_pi#60 (comment)

DB: Preferences. Scale instr.list and +- icons #2983 6a356104a63

DB: Dialog "Add Instrument". Increase size to half Canvas hight #2983 7fd1b159543

DB: Preferences. Scale instr.list and +- icons OpenCPN/OpenCPN#2983 43a64cad1b3

DB: Win Scaled fonts and sizing eb3b73acce2

Added this reference item for examples for other plugins to follow.
OpenCPN/plugins#942

@Rasbats
Copy link
Owner

Rasbats commented Aug 19, 2023

Found Dave's correction for MSW in ocpn_draw. Alpha packages here:
https://cloudsmith.io/~opencpn/repos/otcurrent-alpha/packages/
@rgleason : Please can you test.

@rgleason
Copy link
Contributor Author

MIke, I will test, but can you point me to those corrections? I would like to bookmark them!

@Rasbats
Copy link
Owner

Rasbats commented Aug 19, 2023

1716808

@rgleason
Copy link
Contributor Author

MIke, this is considerably better. Is there a way to increase the line spacing? Also what Opencpn Options > User > Font name controls this?

@rgleason
Copy link
Contributor Author

Screenshot (1703)

@Rasbats
Copy link
Owner

Rasbats commented Aug 19, 2023

Line spacing can be increased with:
Preference/High Resolution Display

@Rasbats
Copy link
Owner

Rasbats commented Aug 19, 2023

Font size is hard-coded. OpenCPN options cannot change this.

@rgleason
Copy link
Contributor Author

What I am showing has High Res checked. Line spacing is inadequate. Also text is a little too bold IMHO

@Rasbats
Copy link
Owner

Rasbats commented Aug 19, 2023

Package build with fontweight normal and line spacing increased from 26->35.

@rgleason
Copy link
Contributor Author

Thanks MIke, much better now with High Res checked.
Screenshot (1715)

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

2 participants