■ 클래스 라이브러리 프로젝트에 폰트를 추가하고 해당 폰트를 리소스 폰트 라이브러리로 사용하는 방법을 보여준다.
[TestProject 프로젝트]
▶ MainWindow.xaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<Window x:Class="TestProject.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="800" Height="600" Title="TestProject" FontFamily="나눔고딕코딩" FontSize="16"> <Grid> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="/TestLibrary;Component/#독립서체 윤봉길 GS" FontSize="48"> 테스트 문자열 입니다. </TextBlock> </Grid> </Window> |