Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FE] 프로젝트의 기본 폰트를 Spoqa Han Sans Neo로 설정 #47
[FE] 프로젝트의 기본 폰트를 Spoqa Han Sans Neo로 설정 #47
Changes from all commits
023b052
a36d133
ae3a348
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이전에 프로젝트에서 웹 폰트를 적용했을 때 저희와 같은 문제가 발생했었는데 문자열을 인식하지 못해서 생겼던 것이였군요...😭
빙봉 덕분에 꿀팁 알아갑니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Q]
제 육안상으로 확인했을 때, sans-serif를 붙였을 때와 붙이지 않았을 때의 차이가 없어 보이는데 뒤에 붙여주신 이유가 있을까요?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sans-serif
를font-family
속성에 추가한 이유는Spoqa Han Sans Neo
폰트가 로드되지 않거나 사용할 수 없는 경우를 대비한 대체 폰트로 지정하기 위함입니다.위 코드에서 브라우저는 먼저
Spoqa Han Sans Neo
폰트를 시도하고, 만약 이 폰트를 사용할 수 없다면 시스템의 기본 sans-serif 폰트를 사용합니다. 이를 통해 폰트 로딩 실패나 폰트가 없는 환경에서도 텍스트를 서비스에서 의도한대로 표시되도록 할 수 있습니다!자세한 내용은 MDN 기본적인 텍스트 및 글꼴 스타일링 문서의 '글꼴 스택' 부분을 참고하면 좋습니다😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoqa Han Sans Neo
폰트를 사용할 수 없으면, 브라우저 기본 폰트를 사용한다고 하네요 :)낙타랑 같은 의견으로
sans-serif
폰트를 명시하지 않아도 괜찮을 것 같습니다!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
브라우저에서
Spoqua Han Sans Neo
글꼴 자체가 호환되지 않을 경우를 대비해서sans-serif
를 사용하신 것으로 이해했습니다! 좋아요 👍There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사파리 브라우저의 경우 기본으로☺️

AppleMyungjo
(명조체, serif)를 사용하고 있기 때문에폰트를 설정해주지 않으면, 아래 사진처럼 보입니다.
우리 서비스에서 사용하는 폰트는
sans-serif
계열이기에sans-serif
를 명시해 두었습니다아래 글 내용이 너무 좋네요👏👏 시간 되실 때 읽어보는 거 추천합니다~~
https://velog.io/@seop/Safari사파리-에서-폰트가-이상하게-보일경우-해결법-CSS-font-family-속성-총정리