I can't believe the tools exists without this feature. I don't know why people are using this tool. This is very powerful tool but I didn't hear from an expert to use this tool. Yes, I'm taking about the line height issue in XD.
Browers generally render the box height for texts as their line height value. For example font size of 14px with line height 21px will have a height of 21px in height. But XD renders it as 17px box height.
Why? I mean WTF. The way XD calculates the height of the box is way different than the industry.
My whole design breas after getting into production. I can't even imagine why people are paying for this useless tool. I'm really disappointed by XD.
I won't recommend XD to anybody. Othertools are really really good.
Thanks for your response Atul but the article you referred doesn't seems to be a correct solution for my issue. I use XD to preview my designs but after developement the end result is very different. This issue exists for many years and the team isn't taking it seriously. Although I'm shifted to Figma now. No longer want to use XD. Accept it XD is far behind than Figma.