I have been struggling a lot with drawing strings that are only formatted on one specific part. Everything I have tried to do, including using Graphics.MeasureString, has resulted with something misaligned, especially when spaces are present.
I need to draw strings with special formatting in the middle (such as differently colored words) that seamlessly fit with the rest of the unformatted text onto a Graphics object. It will be procedural, so I can't manually measure out the values. The part of the string that is formatted may change so I can't even have one pixel off.