> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ko/in-depth-articles/40-step-4-how-to-configure-an-italic-variable-font-using-fontspec.md).

# 4단계: fontspec을 사용해 이탤릭체 가변 글꼴을 구성하는 방법

[소개](https://www.overleaf.com/learn/latex/Articles/How_to_use_OpenType_variable_fonts_with_LaTeX?preview=true) [1단계](https://www.overleaf.com/learn/latex/Articles/Step_1:_Setting_up_an_Overleaf_project_to_use_variable_fonts?preview=true) [2단계](https://www.overleaf.com/learn/latex/Articles/Step_2:_An_introduction_to_LaTeX_fonts?preview=true) [3단계](https://www.overleaf.com/learn/latex/Articles/Step_3:_Replacing_LaTeX’s_default_fonts_with_variable_fonts?preview=true) [4단계](https://www.overleaf.com/learn/latex/Articles/Step_4:_How_to_configure_an_italic_variable_font_using_fontspec?preview=true) [5단계](https://www.overleaf.com/learn/latex/Articles/Step_5:_LaTeX_font_weights_and_named_instances_of_variable_fonts?preview=true) [6단계](https://www.overleaf.com/learn/latex/Articles/Step_6:_Using_variable_fonts_to_add_bold_fonts_to_an_Overleaf_project?preview=true) [7단계](https://www.overleaf.com/learn/latex/Articles/Step_7:_Using_Noto_Sans_and_Roboto_Mono_variable_fonts_with_LaTeX?preview=true) [8단계](https://www.overleaf.com/learn/latex/Articles/Step_8:_How_to_create_a_simple_LaTeX_package_to_configure_your_variable_fonts?preview=true) [예제 및 프로젝트](https://www.overleaf.com/learn/latex/Articles/Overleaf_projects_showing_how_to_use_variable_fonts_with_LaTeX?preview=true)

이 단계에서는 세 개의 “정의되지 않은 모양” 경고 중 하나를 수정하기 위해 이탤릭 가변 글꼴을 구성합니다.

## 프로젝트의 “정의되지 않은 모양” 경고 요약

LaTeX는 현재 프로젝트에 세 가지 글꼴 모양이 누락되었다고 경고합니다:

![LaTeX 글꼴 누락 경고를 보여주는 이미지.](/files/e8b8a5243f4a6e44be66709fc2e5a870c9bd4155)

이것들은 아래 표에 요약되어 있지만, m은 시리즈 식별자에서 제외된다는 점을 기억하세요 *제외하고* 여기서 *둘 다* 폭과 굵기는 m(중간)입니다. 이 글에서는 중간 굵기, 중간 폭, 이탤릭 모양의 글꼴을 추가하여 두 번째 경고를 수정하는 방법을 보여드리겠습니다.

| **경고 번호** | **경고 설명**                                | **시리즈 식별자** | **굵기** | **폭** | **모양** |
| --------- | ---------------------------------------- | ----------- | ------ | ----- | ------ |
| 1         | **b**기존 굵기, **m**중간 폭 글꼴의 **n**보통(직립) 모양 | b           | b      | m     | n      |
| 2         | **m**중간 굵기, **m**중간 폭 글꼴의 **이탤**릭 모양     | m           | m      | m     | 이탤     |
| 3         | **b**기존 굵기, **m**중간 폭 글꼴의 **이탤**릭 모양     | b           | b      | m     | 이탤     |

## Noto Serif용 글꼴 파일 두 개

직립 및 이탤릭 글꼴 스타일(서체)의 디자인은 종종 너무 달라서, 가변 글꼴의 디자인 축을 통해 두 스타일 사이를 매끄럽게 전환하기 어렵습니다. 직립과 이탤릭 모양은 각각 고유한 디자인 특성을 보존하기 위해 전용 글꼴 파일이 필요합니다. 그 결과, Overleaf 튜토리얼 프로젝트에는 Noto Serif용으로 다음 파일이 포함되어 있습니다:

* 직립 모양용: `NotoSerif-VariableFont-wdth-wght.ttf`
* 이탤릭 모양용: `NotoSerif-Italic-VariableFont-wdth-wght.ttf`

## Noto Serif 이탤릭 글꼴을 추가하는 방법

문서 본문 텍스트 글꼴인 Noto Serif는 fontspec의 `\setmainfont` 명령:

```
\setmainfont{NotoSerif-VariableFont-wdth-wght.ttf}
```

다시 한 번 말씀드리면, `\setmainfont` 는 일반적인 형식이

```
\setmainfont{⟨font⟩}[⟨font features⟩]
```

선택적인 `⟨font features⟩` 을 사용해 본문 문서 글꼴에 이탤릭 모양을 활성화할 수 있습니다. `ItalicFont` 키.

### 이탤릭 가변 글꼴 구성

Noto Serif 이탤릭 가변 글꼴을 활성화(구성)하려면 다음 단계를 따르세요.

1. 3단계에서 구성한 튜토리얼 프로젝트를 열었는지 확인하세요.
2. 이 줄을

```
\setmainfont{NotoSerif-VariableFont-wdth-wght.ttf}
```

다음 내용으로

```
\setmainfont{NotoSerif-VariableFont-wdth-wght.ttf}
[
ItalicFont=NotoSerif-Italic-VariableFont-wdth-wght.ttf
]
```

6. 다시 컴파일하고 다음 사항에 주목하세요.

* 정의되지 않은 모양 경고가 두 개 있으며, 이전보다 하나 줄었습니다:

![LaTeX 글꼴 누락 경고를 보여주는 이미지.](/files/520bf04338a031f1cb29b0e08ac7951222e3877f)

이 경고는 보통(n) 및 이탤릭(it) 글꼴 모양에 대한 굵은 글꼴이 없기 때문에 발생합니다.

* 다음 경고는 더 이상 나타나지 않습니다:

``글꼴 모양 `TU/NotoSerif-VariableFont-wdth-wght.ttf(0)/m/it'이 정의되지 않았습니다``

* 이탤릭 텍스트가 다시 문서에 나타난 이유는 이제 LaTeX가 중간 굵기, 중간 폭(시리즈)의 이탤릭(모양) 글꼴에 접근할 수 있기 때문입니다. `NotoSerif-VariableFont-wdth-wght.ttf(0)` 패밀리에서.

## 다음 단계에서

5단계에서는 가변 글꼴의 굵기에 대해 배우고, 이어지는 6단계에서 가변 글꼴의 초기 구성을 마무리할 준비를 합니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ko/in-depth-articles/40-step-4-how-to-configure-an-italic-variable-font-using-fontspec.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
