-
Notifications
You must be signed in to change notification settings - Fork 419
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
Implement CSS-style font size algorithm #5123
base: master
Are you sure you want to change the base?
Commits on Apr 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3ac831a - Browse repository at this point
Copy the full SHA 3ac831aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd7ff8 - Browse repository at this point
Copy the full SHA 9bd7ff8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c43cdf - Browse repository at this point
Copy the full SHA 9c43cdfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8806ca - Browse repository at this point
Copy the full SHA a8806caView commit details -
Update
getGlyphHeight
to take post-scaling glyph size insteadAlso renames the field to become `useFullGlyphHeight` to better reflect what it actually does here, also matches with `SpriteText.UseFullGlyphHeight`. If I understand this properly, when setting this to false, it should take the glyph's texture height instead so that text get properly centered, but for some reason it's still including `YOffset` which could leave an empty area at the top of the text.
Configuration menu - View commit details
-
Copy full SHA for 4748535 - Browse repository at this point
Copy the full SHA 4748535View commit details -
Update
AddNewLine
to insert post-scaling glyph height on empty lineThis one required a bit more work as CSS usually takes the "glyph scale" of the font specified in the `font-family` as far as my manual testing went. I think it should be fine to create a `GetFont` method returning `IGlyphStore`s for that purpose, as it's also required in visual testing to visualise the baseline position in a sprite text.
Configuration menu - View commit details
-
Copy full SHA for f59391e - Browse repository at this point
Copy the full SHA f59391eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d194b8d - Browse repository at this point
Copy the full SHA d194b8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07cef08 - Browse repository at this point
Copy the full SHA 07cef08View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2370e5 - Browse repository at this point
Copy the full SHA b2370e5View commit details -
Fix wrong font metrics for test "Noto" font
This doesn't affect the test scene since the scaling is based on the name of the font specified for the `SpriteText`. Same for CSS as far as I've tested.
Configuration menu - View commit details
-
Copy full SHA for 78d32b6 - Browse repository at this point
Copy the full SHA 78d32b6View commit details -
Reference computation of "height of each individual glyph"
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 914f81b - Browse repository at this point
Copy the full SHA 914f81bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c6ec9e - Browse repository at this point
Copy the full SHA 6c6ec9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6113bb3 - Browse repository at this point
Copy the full SHA 6113bb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82ca32d - Browse repository at this point
Copy the full SHA 82ca32dView commit details
Commits on Apr 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2f01659 - Browse repository at this point
Copy the full SHA 2f01659View commit details
Commits on May 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 252a680 - Browse repository at this point
Copy the full SHA 252a680View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cdf9a0 - Browse repository at this point
Copy the full SHA 4cdf9a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for aaca14b - Browse repository at this point
Copy the full SHA aaca14bView commit details
Commits on May 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9aa1c7e - Browse repository at this point
Copy the full SHA 9aa1c7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf7a7f6 - Browse repository at this point
Copy the full SHA cf7a7f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e34c364 - Browse repository at this point
Copy the full SHA e34c364View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa38a93 - Browse repository at this point
Copy the full SHA aa38a93View commit details -
Configuration menu - View commit details
-
Copy full SHA for f06c141 - Browse repository at this point
Copy the full SHA f06c141View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6a41bf - Browse repository at this point
Copy the full SHA a6a41bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for fecd0ee - Browse repository at this point
Copy the full SHA fecd0eeView commit details