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

GPII-1716: Windows font-size #506

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

GPII-1716: Windows font-size #506

wants to merge 20 commits into from

Conversation

stegru
Copy link
Member

@stegru stegru commented Mar 9, 2017

Windows font-size support (via SPI, not the nicer DPI method).

FYI @javihernandez: If this is applied, it might change the way HST appears, because "sammy" increases the fontSize.

Windows portion: GPII/windows#115

@gpii-bot
Copy link

gpii-bot commented Mar 9, 2017

CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details.

@stegru
Copy link
Member Author

stegru commented Jun 14, 2017

ok to test

"type": "struct",
"name": "NONCLIENTMETRICS"
},
"fWinIni": "SPIF_UPDATEINIFILE|SPIF_SENDCHANGE", // It won't update if these flags aren't set.
Copy link
Member

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!

"name": "NONCLIENTMETRICS"
},
"fWinIni": "SPIF_UPDATEINIFILE|SPIF_SENDCHANGE", // It won't update if these flags aren't set.
"verifySettings": false // The next GET will be different to the last SET.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why will the next GET be different to the last SET?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated comment..
// The next GET will be different to the last SET, because the value of lfHeight sets the character // height (negated), but receives it as the cell height.

LOGFONT: https://msdn.microsoft.com/library/dd145037

Not only is the value different, it also uses the sign to specify if you're talking about the character height (-) or cell height (+).

More info: https://support.microsoft.com/en-us/help/32667/info-font-metrics-and-the-use-of-negative-lfheight

So why not just specify the cell height? The preference is already the character height, and calculating the cell height requires knowing the DPI, which is a run-time value.

I think the LOGFONT structure is from when raster fonts where common.

@gpii-bot
Copy link

CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details.

@amb26
Copy link
Member

amb26 commented Jun 21, 2017

Is there an acceptance test profile that exercises this solution?

@stegru
Copy link
Member Author

stegru commented Jun 21, 2017

not ok 17 Firefox 50.0 - GPII OAuth2 Component Tests
Earlier today this failed for me locally (on a different branch), but CI passed it.

@amb26
Copy link
Member

amb26 commented Jun 21, 2017

That one is being tracked as https://issues.gpii.net/browse/GPII-2456

@gpii-bot
Copy link

CI job passed.

@gpii-bot
Copy link

gpii-bot commented Aug 7, 2017

CI job passed.

@gpii-bot
Copy link

gpii-bot commented Sep 8, 2017

CI job passed: https://ci.gpii.net/job/universal-tests/473/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/526/

@kaspermarkus
Copy link
Member

bump

Copy link
Member

@javihernandez javihernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @stegru,

first, I'd say that we need a few things before merging this into master:

},
// The pixel heights will grow, but will not shrink back, so set the value to something so it will
// be restored.
"CaptionHeight": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why all these last transformations don't have mappings to common terms?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values set the height of the element - they're listed here so they are set back to the same value.

Without them, a larger font will make the height grow, but restoring a smaller font doesn't make the height shrink back down.

@stegru
Copy link
Member Author

stegru commented Apr 5, 2018

  • Implemented acceptance test
  • Added description
  • User is gert, who already exists.

@gpii-bot
Copy link

gpii-bot commented Apr 5, 2018

CI job failed: https://ci.gpii.net/job/universal-tests/809/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/814/

# Conflicts:
#	testData/deviceReporter/acceptanceTests/win7_builtIn.json
@gpii-bot
Copy link

gpii-bot commented May 7, 2018

CI job passed: https://ci.gpii.net/job/universal-tests/837/

@gpii-bot
Copy link

CI job failed: https://ci.gpii.net/job/universal-tests/907/

@gpii-bot
Copy link

CI job failed: https://ci.gpii.net/job/universal-tests/913/

@gpii-bot
Copy link

CI job failed: https://ci.gpii.net/job/universal-tests/914/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/916/

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

Successfully merging this pull request may close these issues.

5 participants