Centering an individual character with DrawString

后端 未结 3 1902
离开以前
离开以前 2021-01-13 08:04

I have tried all of the suggested ways to center text, but I can\'t seem to get the results I want while centering an individual character.

I have a rectangle. In t

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-13 08:13

    if you use

    StringFormat stringFormat = new StringFormat(StringFormat.GenericTypographic);
    

    you got

    enter image description here

    instead

    enter image description here

    hope this helps

提交回复
热议问题