> 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/42-step-6-using-variable-fonts-to-add-bold-fonts-to-an-overleaf-project.md).

# 6단계: 가변 글꼴을 사용해 Overleaf 프로젝트에 굵은 글꼴 추가하기

[소개](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)

5단계에서 우리는 글 문서의 본문 글꼴인 Noto Serif의 중간 굵기를, 위로 세운 형태와 기울임꼴 스타일 모두에 대해 가중치 축 값 400을 사용하여 설정했습니다. 이 단계에서는 일반(위로 세운) 스타일과 기울임꼴 스타일 모두에 대해 굵은 글꼴을 제공하도록 Noto Serif를 구성하는 방법을 보여드리겠습니다.

5단계에서 구성한 튜토리얼 프로젝트를 열었는지 확인하세요.

## 정의되지 않은 굵은 글꼴에 대한 경고

현재 프로젝트를 다시 컴파일한 후, LaTeX는 다음과 같은 경고를 표시합니다:

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

이 경고들은 아래 표에 요약되어 있습니다. 시리즈 식별자에서 m이 제거된다는 점을 기억하세요 *제외하고* 여기서 *둘 다* 너비와 굵기는 m(중간)입니다.

| **경고 번호** | **경고 설명**                 | **시리즈 식별자** | **굵기** | **폭** | **모양** |
| --------- | ------------------------- | ----------- | ------ | ----- | ------ |
| 1         | 일반(위로 세운) 형태의 중간 폭, 굵기 글꼴 | b           | b      | m     | n      |
| 2         | 기울임꼴 형태의 중간 폭, 굵기 글꼴      | b           | b      | m     | 이탤     |

위로 세운(일반) 글꼴 형태와 기울임꼴 글꼴 형태에 대해 굵은 글꼴을 구성하여 이것들을 어떻게 수정하는지 보여드리겠습니다.

## 가변 글꼴의 가중치 축을 사용해 굵은 글꼴 추가하기

bold-upright 및 bold-italic 텍스트의 글꼴은 fontspec의 `FontFace` 키를 사용하여 구성할 수 있으며, 형식은

```
FontFace = {⟨series⟩}{⟨shape⟩}{Font = ⟨font name⟩, ⟨features⟩}
```

여기서

* `⟨series⟩` 는 LaTeX 시리즈 식별자입니다(섹션 링크).
* `⟨shape⟩` 는 LaTeX 형태 식별자입니다(섹션 링크).
* `⟨글꼴 이름⟩` 은 글꼴 파일의 이름 또는 글꼴의 이름입니다.
* `⟨features⟩` 위로 세운 및 기울임꼴 가변 글꼴에 대해 가중치 축의 적절한 값을 설정하는 것처럼, 우리가 가변 글꼴을 구성하는 데 사용할 설정이 포함되어 있습니다

Noto Serif의 명명된 인스턴스(LINK)에서 제안된 값을 사용하여, 일반(위로 세운) 및 기울임꼴 형태에 대한 굵은 글꼴을 구성하기 위해 가중치 축 값 600을 사용하겠습니다.

### 굵은, 중간 폭, 위로 세운 글꼴을 구성하는 방법

우리는 다음과 같은 설정으로 `FontFace` 키를 사용할 것입니다

* `⟨series⟩` = b
* `⟨shape⟩` = n
* `⟨글꼴 이름⟩` = NotoSerif-VariableFont-wdth-wght.ttf
* `⟨features⟩` = Weight=600

그 결과는

```
FontFace = {b}{n}{Font=NotoSerif-VariableFont-wdth-wght.ttf,Weight=600}
```

### 굵은, 중간 폭, 기울임꼴 글꼴을 구성하는 방법

우리는 다음과 같은 설정으로 `FontFace` 키를 사용할 것입니다

* `⟨series⟩` = b
* `⟨shape⟩` = it
* `⟨글꼴 이름⟩` = NotoSerif-Italic-VariableFont-wdth-wght.ttf
* `⟨features⟩` = Weight=600

그 결과는

```
FontFace = {b}{it}{Font=NotoSerif-Italic-VariableFont-wdth-wght.ttf,Weight=600}
```

## 모두 합치기

현재 프로젝트의 `\setmainfont` 명령을 다음 구성으로 업데이트하세요:

```latex
\setmainfont{NotoSerif-VariableFont-wdth-wght.ttf}[
Weight=400,
ItalicFont = NotoSerif-Italic-VariableFont-wdth-wght.ttf,
FontFace = {b}{n}{Font = NotoSerif-VariableFont-wdth-wght.ttf,Weight=600},
FontFace = {b}{it}{Font = NotoSerif-Italic-VariableFont-wdth-wght.ttf,Weight=600}
]
```

현재 프로젝트를 다시 컴파일하여 정의되지 않은 형태 경고가 더 이상 없는지 확인하세요.

## 보너스 기능: 작은 대문자가 공짜!

이 섹션에서는 뜻밖의 보너스를 언급합니다. fontspec은 작은 대문자를 지원하는 글꼴에 대해 이를 자동으로 활성화합니다.

### 작은 대문자란 무엇인가요?

작은 대문자는 소문자와 같은 높이의 대문자를 사용하는 텍스트 스타일입니다. 약어나 기술 텍스트의 키워드처럼 대문자 단어가 많이 포함된 텍스트 안에서 문체적 목적을 위해 사용됩니다.

작은 대문자를 사용한 경우와 사용하지 않은 경우를 비교하는 예제를 조판하기 위해 다음 LaTeX 텍스트를 현재 Overleaf 프로젝트에 붙여 넣으세요—반드시 붙여 넣기 *뒤에* `\begin{document}`. LaTeX의 `\textsc` 명령은 작은 대문자로 텍스트를 조판하는 데 사용됩니다.

```latex
대문자 시퀀스가 많이 있으면 조판된 텍스트가
``타이포그래피적으로 보기 좋지 않게'' 보일 수 있습니다. 그
외형은 작은 대문자를 사용하여 개선할 수 있으며, 텍스트에 더 세련되고 우아한 느낌을 줍니다.

\vskip10pt
대문자 시퀀스가 많이 있으면 \textsc{uppercase} 글자가 들어간
\textsc{typeset} 텍스트가 ``타이포그래피적으로 \textsc{unsightly}''하게 보일 수 있습니다.
그 \textsc{appearance}는 작은 대문자를 사용하여 개선할 수 있으며,
텍스트에 더 세련되고 \textsc{elegant}한 느낌을 줍니다.
```

이 예제는 다음 출력을 생성합니다:

![작은 대문자를 사용해 조판한 텍스트와 사용하지 않은 텍스트를 비교한 이미지](/files/15260fb4e850b0afe60947f192cba30824baeb17)

### 어떤 가변 글꼴에서 작은 대문자가 활성화되어 있나요?

fontspec은 지원하는 글꼴에 대해 작은 대문자를 자동으로 활성화합니다. 우리의 세 가지 가변 글꼴은 모두 작은 대문자를 제공합니다. 다음 LaTeX 텍스트를 문서에 붙여 넣어 세 가지 글꼴 패밀리 모두를 사용한 작은 대문자를 조판하세요:

```latex
\begin{itemize}
\item 본문 글꼴 패밀리(Noto Serif): \textsc{small caps}
\item 산세리프 글꼴 패밀리(Noto Sans): {\sffamily \textsc{small caps}}
\item 고정폭 글꼴 패밀리(Roboto Mono): {\ttfamily \textsc{small caps}}
\end{itemize}
```

이 예제는 다음 출력을 생성합니다:

![LaTeX에서 3개의 서로 다른 가변 글꼴을 사용해 조판한 작은 대문자를 보여주는 이미지](/files/e53e0f8aa3d2b06b1d7af15556c0563f3bd94c13)

### 굵은 및 기울임꼴 작은 대문자는 어떨까요?

Noto Serif에 대해 굵은 및 기울임꼴 글꼴을 구성했기 때문에, 이러한 스타일로 작은 대문자를 조판할 수 있습니다. Noto Serif를 사용해 작은 대문자 범위를 조판하려면 다음 코드를 최신 Overleaf 프로젝트에 붙여 넣으세요:

```latex
\begin{itemize}
\item 본문 글꼴 패밀리(Noto Serif):
\begin{itemize}
    \item \textsc{일반 스몰캡}
    \item \textit{\scshape 이탤릭 스몰캡}
    \item \textbf{\scshape 굵은 스몰캡}
    \item \textbf{\itshape\scshape 굵은 이탤릭 스몰캡}
\end{itemize}
\end{itemize}
```

이것은 다음 출력을 생성합니다:

![가변 글꼴을 사용해 LaTeX에서 조판한 굵은 및 기울임꼴 작은 대문자를 보여주는 이미지](/files/962abd2553b9c4f0972b31fd31f17e98238f5434)

## 다음 단계에서

다음 단계에서는 산세리프 글꼴 패밀리(Noto Sans)와 고정폭 글꼴 패밀리(Roboto Mono)에 대해 굵은 및 기울임꼴 글꼴 스타일을 구성하겠습니다.


---

# 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/42-step-6-using-variable-fonts-to-add-bold-fonts-to-an-overleaf-project.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.
