page 1 of 1
Comments: 2 | Views: 454

Hi,

 

I have a control that renders custom text, and I also implemented a word break algorithm. It works fine, but then of course I found that languages like Chinese and Japanese have more complex word break rules so I am looking for a way to make use of existing word break algorithms while still rendering my own text.

 

Basically, I have a long string of text, and a maximum pixel width that the text can occupy. I need to call into a method that returns the number of characters that would fit, given the font, etc.

 

Does anyone know of a way to do that using what is available in .Net 2.0?

W3bbo
W3bbo
The Master of Baiters

There's no general-solution for all the world's languages; which algorithm are you using right now?

 

Also, by "word breaking" do you mean hypthenation or just inserting newlines where there are existing whitespace?

page 1 of 1
Comments: 2 | Views: 454
Microsoft Communities