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
  • #2818
Closed
Open
Issue created Jan 11, 2022 by Davide P. Cervone@dpvcContributor

CHTML doesn't scale bounding box for content in unknown fonts in script sizes.

When CHTML needs to measure content that is in a non-MathJax font (e.g., unicode characters not in its fonts, or when mtextInheritFont is used, or when an explicit font is specified in a style attribute), it fails to account for the scaling for script and script-script sizes. See this StackOverflow post for an example.

The unknownText() function needs to be passed the relative scaling factor from the element's BBox structure and compensate for that.

Assignee
Assign to
Time tracking