jingwood / d2dlib

A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
MIT License
234 stars 40 forks source link

DrawText aspect ratio problem #68

Closed channel11 closed 1 year ago

channel11 commented 2 years ago

When the Direct2D control height is small, the drawn font is squeezed, and the top part cut off.

g.DrawText("Hello World \nsecond line", D2DColor.Black, font, 100, 200);

squeeze
jingwood commented 2 years ago

Hi, Can you tell me what font you are using? Because in my environment there seems no problems to me. And your windows environment information such as scale (DPI), resolution. Thanks.

jingwood commented 1 year ago

Close this issue, if you still have problem please reopen or create a new.