Acquisition system fonts method

// need to reference the namespace 
the using the System.Drawing;
 the using System.Drawing.Text; 


// Get System Font method 
public  Dynamic GetFontNames () 
{ 
     the FontFamily [] fontFamilies; 
     InstalledFontCollection InstalledFontCollection = new new InstalledFontCollection (); 
     fontFamilies = installedFontCollection.Families;
      return fontFamilies; 
}

 

Guess you like

Origin www.cnblogs.com/Loners/p/11535971.html