첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
------------------------------------------------------------------------------------------------------------------------------------------------------
728x90
728x170

■ 클래스 라이브러리 프로젝트에 폰트를 추가하고 해당 폰트를 리소스 폰트 라이브러리로 사용하는 방법을 보여준다.

TestSolution.zip
2.53MB

[TestProject 프로젝트]

 

▶ MainWindow.xaml

<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>
728x90
그리드형(광고전용)
Posted by icodebroker
,