阅读背景:

在.NET DrawString中包装行时禁用断字

来源:互联网 

I am using .NET to draw a string into a limited space. I want the string to be as big as possible. I have no problem in the string breaking up into more lines (if it stays inside the rectangle). Now the problem: I don't want .NET to break the string in different lines in the middle of a word. For example string "Test" prints on a single line in a big font. String "Testing" should print on a single line in a smaller font (and not "Testi" on one line and "ng" on another) and string "Test Test" should print on two lines in a fairly large font.I am using .NET to draw a string into a limited




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: