Profile Picture

How to MeasureText for NCanvas?

Posted By Karl Hulme 10 Years Ago

How to MeasureText for NCanvas?

Author
Message
Karl Hulme
Posted 10 Years Ago
View Quick Profile
Forum Guru

Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 6, Visits: 16
I found NFont.MeasureText but this requires that the font object be attached/associated with a document.

I'm rendering text to the canvas in PrePaint using arg.PaintVisitor.PaintString and need a way to calculate the required height given a specific width.




Similar Topics


Reading This Topic

2 active, 2 guests, 0 members, 0 anonymous.
No members currently viewing this topic!