mono / libgdiplus

C-based implementation of the GDI+ API
http://www.mono-project.com/
MIT License
329 stars 171 forks source link

Fix text centering for multi-line buttons including breaking long words. #746

Open kriskazmar opened 1 month ago

kriskazmar commented 1 month ago

The modification at lines 794 thru 824 fixes the issue of centering the text for the 2nd line of a button that has 2 lines of text. The modification at lines 595 thru 607 fixes the issue of breaking and centering a long word to fit on a 2 line button. This happens commonly with Japanese character strings, where the string contains no spaces.

kriskazmar commented 1 month ago

@dotnet-policy-service agree company="Technotects, Inc."