Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2176
Closed
Open
Issue created Aug 05, 2019 by Administrator@rootContributor

CommonHTML fails to use local bold fonts on Chrome

Created by: yutak

OS: Linux Chrome: 77.0.3865.10 (Official Build) Dev channel

I have MathJax fonts locally installed on my system (under /usr/share/fonts/mathjax/), and on that condition, CommonHTML seems to fail to use bold or italic fonts.

For instance, this:

<!DOCTYPE html>
<html>
<head>
<title>MathJax CHTML bold font test</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_CHTML"></script>
</head>
<body>
<h1>MathJax CHTML bold font test</h1>
<p><code>\mathbf{ABCabc}</code> \( \mathbf{ABCabc} \)</p>
<p><code>\mathit{ABCabc}</code> \( \mathit{ABCabc} \)</p>
<p><code>\textbf{ABCabc}</code> \( \textbf{ABCabc} \)</p>
<p><code>\textit{ABCabc}</code> \( \textit{ABCabc} \)</p>
<p><code>\boldsymbol{ABCabc}</code> \( \boldsymbol{ABCabc} \)</p>
</body>
</html>

is rendered like this (see no bold or italic is applied):

MathJax CHTML bold font test - Google Chrome_020

Firefox renders this fine. HTML-CSS mode on Chrome is OK, too.

This seems to have something to do with a @font-face rule for a local font that has font-weight: bold; (or font-style: italic). This may be Chrome's regression.

Assignee
Assign to
Time tracking