question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarify difference between TextMeasurer.Measure() and TextMeasurer.MeasureBounds()

See original GitHub issue

Could someone clarify exact difference between these two methods? Documentation says they both Measures the text., but in fact they return different result for same text.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JimBobSquarePantscommented, Jan 22, 2019

The question was not about return type, but about different result. Could you read questions more closely in future?

Question on Gitter Channel please. Our issues template clearly says so. Don’t be rude.

0reactions
mogikanincommented, Jan 22, 2019

@JimBobSquarePants please re-open issue, or explain why width\height is different.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Difference between MeasureString in System.Drawing and ...
I have two Methods to return width of string: The first method is using System.Drawing : public static float GetTextWidth(string fontFace, ...
Read more >
Class TextMeasurer
Measures the advance (line-height and horizontal/vertical advance) of each character of the text in pixel units. Declaration. public static bool ...
Read more >
TextMeasurer | Android Developers
TextMeasurer is responsible for measuring a text in its entirety so that it's ready to be drawn. ... constraints: Constraints = Constraints(),
Read more >
Jetpack Compose TextMeasurer issue : r/androiddev
This is what I'm doing to calculate the text size. the `layoutSize` comes from a `Box` surrounding the `Text` and takes full size.Even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found