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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -