Skip to content

pretendard 가변 다이나믹 서브셋 사용방법 #148

Answered by kms0219kms
pubaooooo asked this question in Q&A
Discussion options

You must be logged in to vote

font-family로 지정하시면 됩니다. 가변 다이나믹 서브셋은 자동적으로 해당 폰트가 적용된 글자만큼만 폰트를 로딩하고 있습니다.

font-family: "Pretendard Variable", ...;

이런 식의 코드를 해당 폰트를 적용하고자 하는 element나 글자별로 적용을 원하시면 글자별로 element를 상위에 두어 css에 설정해 주시면 됩니다.

Example)

<!DOCHTML HTML>
<html>
     <head>
          <meta charset="UTF-8">

          <!-- S: Optional - Preload -->
          <link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin="anonymous">
          <link rel="preload" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.css" />
          <!-- E: Optional - Preload -->

          <link rel="stylesheet" as="style" crossorigin href="htt…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@orioncactus
Comment options

Answer selected by orioncactus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants