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

fix TextMetrics type to include alphabeticBaseline, emHeightAscent, and emHeightDescent properties #2394

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

musou1500
Copy link
Contributor

Thanks for contributing!

  • Have you updated CHANGELOG.md?

@musou1500 musou1500 changed the title fix TextMetrics type to include actualBoundingBoxLeft, actualBoundingBoxRight, fontBoundingBoxAscent, and fontBoundingBoxDescent properties fix TextMetrics type to include alphabeticBaseline, emHeightAscent, and emHeightDescent properties Jul 9, 2024
@musou1500
Copy link
Contributor Author

musou1500 commented Jul 9, 2024

fontBoundingBoxAscent and fontBoundingBoxDescent is not implemented but listed in TextMetrics interface.
Should I include fix in this PR?
#2364

@chearon
Copy link
Collaborator

chearon commented Aug 11, 2024

Looks good, thanks. I'm going to squash the commits and then move the changelog item to 3.0.0 since we haven't released it yet. Edit: and fix conflicts

fontBoundingBoxAscent and fontBoundingBoxDescent is not implemented but listed in TextMetrics interface.
Should I include fix in this PR?

I don't think Pango exposes what we'd need for those 2 properties. You'd need to know the first font that matched based on the PangoFontDescription and also that font's ascender and descender. I'm happy to review if you can figure that out, though.

@chearon chearon force-pushed the add-text-metrics-props branch from 5902a57 to 45feb57 Compare August 11, 2024 20:05
@chearon chearon force-pushed the add-text-metrics-props branch from 45feb57 to 0d39df5 Compare August 11, 2024 20:06
update CHANGELOG
fix changelog
@chearon chearon force-pushed the add-text-metrics-props branch from 0d39df5 to e96b4eb Compare August 11, 2024 20:07
@chearon chearon merged commit 7dfeb04 into Automattic:master Aug 11, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants