-
Notifications
You must be signed in to change notification settings - Fork 63
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
GPII-1716: Windows font-size #506
Open
stegru
wants to merge
20
commits into
GPII:master
Choose a base branch
from
stegru:GPII-1716
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d4d416f
GPII-1716: Added font-size support, via SPI_SETNONCLIENTMETRICS and S…
stegru 34e40f2
GPII-1716: Using the appropriate value for the font-size.
stegru 6f77671
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru 74a7630
GPII-1716: Improved comments.
stegru 02f9c4f
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru f54ebf7
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru bd67cb1
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru e261f54
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru 52f0a12
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru 0f96070
GPII-1716: Added solution description
stegru 9f67b19
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru 1ef6bab
GPII-1716: Improved comment for strange action.
stegru 50ff3f0
GPII-1716: Added fontsize test.
stegru 542ba7a
GPII-1716: Added note about the height hack for font size.
stegru eeac4eb
GPII-1716: Acceptance tests that work.
stegru 05ad1e7
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru 79fe482
Merge remote-tracking branch 'upstream/master' into GPII-1716
stegru bba86ec
GPII-1716: Fixed test fault
stegru 81da090
GPII-1716: Fixed test fault again
stegru 44308d3
GPII-1716: Fixed test fault again
stegru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
gpii/node_modules/matchMakerFramework/test/inverseCapabilities/os_win7_expected.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,10 @@ | |
|
||
{ | ||
"id": "com.microsoft.windows.typingEnhancement" | ||
}, | ||
|
||
{ | ||
"id": "com.microsoft.windows.fontSize" | ||
} | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
testData/solutions/solutionsDescription/com_microsoft_windows_fontSize.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Windows Screen Scaling | ||
|
||
## Details | ||
|
||
* __Name__: Windows Font Size | ||
* __Id__: com.microsoft.windows.fontSize | ||
* __Platform__: Windows | ||
* __Contact__: Steve Grundell <[email protected]> | ||
|
||
## Description | ||
|
||
This solution enables the resizing of the font in certain Windows components, without effecting the resolution or DPI setting. | ||
|
||
The text of the following elements are re-sized, where the native component is used: | ||
* Window title bar. | ||
* Menus. | ||
* Status bars. | ||
* Icon labels. | ||
* Tooltips. | ||
* Message boxes. | ||
|
||
See also: | ||
|
||
* [GPII-1716](https://issues.gpii.net/browse/GPII-1716) | ||
* [NONCLIENTMETRICS structure](https://msdn.microsoft.com/library/ff729175) | ||
* [screenDPI solution](com_microsoft_windows_screenDPI.md), to resize all fonts. | ||
|
||
## Integration | ||
|
||
SystemParametersInfo is called, with SPI_SETNONCLIENTMETRICS. The unit is the approximate height of the font in pixels. | ||
|
||
This solution also sets the pixel height of each display element to the its current value. This is because increasing | ||
the font size causes the heights to grow, but decreasing the font (when restoring) leaves the enlarged sizes. | ||
|
||
## Testing | ||
|
||
The user [gert](../../preferences/gert.json) can be used to test this solution. The font-size should increase. | ||
|
||
## Limitations | ||
|
||
This doesn't set the size of all text, only those listed above. Some applications may ignore this setting. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank God we now have comments!