MathJax를 사용하여 렌더링되는 일부 수학 함수로 HTML 파일을 만들려고합니다. 그러나 수학 표현식은 Google 글꼴 (내 경우에는 Lusitana)을 사용할 때 잘못 크기가 지정됩니다. 컴퓨터 또는 일부 다른 Google 글꼴에 설치된 일반 글꼴을 사용할 때 올바르게 나타납니다. 나는 정말로 루시 타나를 사용하고 싶습니다 - 이것이 작동하도록하는 어떤 방법이 있습니까?MathJax : 특정 Google 글꼴을 사용할 때 표현의 크기가 잘못 지정되었습니다.
편집 1 : 내 플랫폼은 Ubuntu 16.04, Chrome 62입니다. Firefox에서는 문제가 발생하지 않습니다. 여기
소스의 렌더링은 아래의 글꼴 루시와 함께 모습입니다 : https://imgur.com/a/OiBmr는
문제를 생산하는 HTML 소스는 다음과 같습니다
<html>
<head>
<style>
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
@import url('https://fonts.googleapis.com/css?family=Lato');
@import url('https://fonts.googleapis.com/css?family=Lusitana');
body {
font-family: "Lusitana", Garamond, Baskerville, "Times New Roman", serif;
/* font-family: "Open Sans", Garamond, Baskerville, "Times New Roman", serif; */
}
p {
font-size: 20px;
}
</style>
<script type="text/javascript">
window.MathJax = {
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
},
};
</script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
</head>
<body>
<p>
The roots of a quadratic equation, $ax^2 + bx + c = 0$ are given by, $$x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ The expression $\sqrt{b^2 - 4ac}$ is called the discriminant of the equation. If its value is $0$, then the roots are equal, otherwise the roots are distinct. Furthermore, if the discriminant is positive, the roots are real, and if negative, the roots are complex.
</p>
</body>
</html>