나는 내 CSS에 대한 다음과 같은 구조를 가지고 :기울임 꼴 "g"문자 오른쪽 잘라지고
index.html
css
--fonts
----roboto
------roboto-italic-demo.html
------roboto-italic-webfont.woff
------roboto-italic-webfont.woff2
------stylesheet.css
--main.css
stylesheet.css
이
@font-face {
font-family: 'robotoitalic';
src: url('roboto-italic-webfont.woff2') format('woff2'),
url('roboto-italic-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
roboto-italic-demo.html
전체와 데모 페이지입니다 다음 CSS를 포함 알파벳 문자는 font-family: 'robotoitalic';
을 사용하여 표시됩니다. 여기서 g는 꼭 그래야합니다.
main.css
는 다음 CSS
@font-face {
font-family: 'roboto';
src: url('fonts/roboto/roboto-bolditalic-webfont.woff2') format('woff2'),
url('fonts/roboto/roboto-bolditalic-webfont.woff') format('woff');
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: 'robototest2';
src: url('fonts/roboto/roboto-italic-webfont.woff2') format('woff2'),
url('fonts/roboto/roboto-italic-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
index.html
main.css
스타일을 포함을 포함한다. font-family: 'roboto'; font-style: italic;
을 사용하면 g 문자의 오른쪽이 잘립니다. font-family: 'robototest2';
을 사용하면 g 문자의 오른쪽도 잘립니다. 다시 확인 실제로 사용하던를 만들기 위해
다시 다운로드
roboto-italic-webfont.woff
& &roboto-italic-webfont.woff2
가을로
내가 문제를 해결하기 위해 노력 무엇"Comic Sans MS"
을 넣어 : 여기roboto
또는robototest2
추가 된 자간
패딩
와 범위 내에서 g 문자를 배치 편집 :이 질문은 중복으로 표시되었습니다. 링크 된 질문은 컨테이너에서 튀어 나와있는 텍스트를 가리 켰습니다.이 태그는 태그 내의 위치와 상관없이 문자가 잘리는 것에 관한 것입니다.
http : // stackoverflow.com/questions/26296434/html-italic-letters-protrude-from-their-container-and-may-be-next-co – Vcasso