Graphics.MeasureString is incorrect when PrivateFontCollection is used under Window 8.1 and newer - by Petar R. Raykov

Status : 


Sign in
to vote
ID 3119802 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/27/2017 3:25:23 AM
Access Restriction Public


If you order the fonts in the PrivateFontCollection first regular then bold and Graphics.MeasureString with the font bold style. The string size is incorrect and different from the one reported when Windows 7 is used.
Sign in to post a comment.
Posted by Microsoft on 2/9/2017 at 11:19 PM
Thank you for your feedback. We were able to reproduce this issue in native applications, thus it is external to Visual Studio or Dot Net Framework, this seems to be an issue in the GDI+ API. Please visit Windows 7 or 8 support forums ( Microsoft support professionals monitor these forums for suggestions and bugs.
If this issue is blocking your development and requires a hot fix, then follow the process of opening a support case, see "Business IT & developer" section here: or call phone number is available here:

Thank you.
Posted by v-fini on 1/27/2017 at 7:07 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted.

Microsoft Visual Studio Connect Support Team