docs-desktop icon indicating copy to clipboard operation
docs-desktop copied to clipboard

Code listing won't work

Open tom-clik opened this issue 4 years ago • 1 comments

This code listing wont' work. There is actually no reference to the Private font collection after you've added the font and you'll just get a generic font.

Not only does the listing not work but it's not obvious how to use a Private font collection after you have added it.

As far as I can tell you have to loop over the families and match the name.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

tom-clik avatar Mar 22 '21 11:03 tom-clik

Hello. Thank you for pointing this out. It's definitely not a great way to showcase private collections with fonts not installed by the system. It should be using new Font(fontFamilies[j], 16, FontStyle.Bold, GraphicsUnit.Pixel); to create each font.

adegeo avatar Mar 22 '21 16:03 adegeo