C# Drawstring Letter Spacing

后端 未结 4 1904
说谎
说谎 2020-12-20 12:26

Is is somehow possible to control letter spacing when using Graphics.DrawString? I cannot find any overload to DrawString or Font that would allow me to do so.



        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 13:08

    That's not supported out of the box. You'll either have to draw each letter individually (hard to get that right) or insert spaces in the string yourself. You can stretch the letters by using Graphics.ScaleTransform() but that looks fugly.

提交回复
热议问题