2014-07-14 3 views

답변

2

먼저 글꼴을 찾고 다운로드하십시오 (예 : http://font.ubuntu.com/ 또는 http://www.dafont.com/). 닷넷에서 쉽게 사용할 수 있습니다.

샘플 윈폼 응용 프로그램 :

Font CreateFont(string fontFile,float size,FontStyle style) 
{ 
    using (var pfc = new PrivateFontCollection()) 
    { 
     pfc.AddFontFile(fontFile); 
     using (var fontFamily = new FontFamily(pfc.Families[0].Name, pfc)) 
     { 
      return new Font(fontFamily, size, style); 
     } 
    } 
} 

someControl.Font = CreateFont("UbuntuMono-R.ttf", 20, FontStyle.Regular);