2012-08-27 3 views
2

구경 프로젝트에서 ebook-convert을 사용하여 글꼴이 포함 된 EPUB 파일을 생성 중입니다. 나는 HTML에서 여러 글꼴 얼굴을 선언 할 때, 그것을 잘 작동합니다 :epub에서 여러 @ font-face가 무시되었습니다.

fonts in HTML

을하지만 EPUB으로 변환 할 때, 난 단지 전체 문서에 대한 첫 번째 글꼴을 얻을 :

<html> 
<head> 
<style type="text/css"> 
@font-face{ 
font-family: "test"; 
font-style: normal; 
font-weight: normal; 
font-variant: normal; 
src: url(fonts/EBGaramond12-Regular.otf); 
} 
@font-face{ 
font-family: "test"; 
font-style: italic; 
font-weight: normal; 
font-variant: normal; 
src: url(fonts/EBGaramond12-Italic.otf); 
} 
body{ 
font-family: "test"; 
} 
</style> 
</head> 
<body> 
This is a test with <i>italic</i>. 
</body> 
</html> 

가 생산 :

same code in the EPUB

은 내가 EPUB를 확인했습니다. 글꼴이 제대로 포함되어 있으며 CSS가 포함되어 있습니다. 글꼴을 식별하는 문자열로 "test"를 사용했기 때문에 시스템 글꼴과 충돌 할 수 없습니다.

EPUB의 문제점은 무엇입니까? 글꼴을 틀리게 선언 했습니까?

답변

2

blog post about epub fonts이 도움이 될 수 있습니다.

+0

감사합니다. 참으로 유일한 해결책 인 것 같습니다. –