C#의 레이블 글꼴을 사용자 지정 글꼴로 변경할 수 있습니다. 예 : 글꼴을 으로 변경해야합니다. Bookman Old Style이고 Visual Studio에는이 글꼴이 없습니다.사용자 지정 글꼴로 레이블의 글꼴 변경
가능한가요? 방법?
C#의 레이블 글꼴을 사용자 지정 글꼴로 변경할 수 있습니다. 예 : 글꼴을 으로 변경해야합니다. Bookman Old Style이고 Visual Studio에는이 글꼴이 없습니다.사용자 지정 글꼴로 레이블의 글꼴 변경
가능한가요? 방법?
글꼴을로드하려면 PrivateFontCollection을 사용하십시오 (AddFontFile
및 AddMemoryFont
참조). 그런 다음 글꼴을 레이블 컨트롤에 사용합니다.
PrivateFontCollection pfc = new PrivateFontCollection();
pfc.AddFontFile("C:\\Path To\\YourFont.ttf");
label1.Font = new Font(pfc.Families[0], 16, FontStyle.Regular);
http://stackoverflow.com/questions/13573916/using-custom-fonts-in-my-winform-labels? –
Stackoverflow가 답입니다! [라벨의 폰트] [1] [1] : http://stackoverflow.com/questions/4939255/c-sharp-how-to-change-font-of-a-label –