c# - What's the difference between Registry font list and .NET FontFamily class Families property? -
i'm trying create instance of fontfamily class , pass argument names registry:
registrykey keysystemlink = registry.localmachine.opensubkey(@"software\microsoft\windows nt\currentversion\fontlink\systemlink"); foreach (string fontname in keysystemlink.getvaluenames()) { var fontfamily = new fontfamily(fontname); <...> }
but fontfamily constructor doesn't these names @ , throws argumentexception. wrong way? , why so?
Comments
Post a Comment