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
  • #2124
Closed
Open
Issue created Feb 26, 2019 by Peter Krautzberger@pkraContributor

mglyph in scripts

If an mglyph's dimensions are given in relative units (e.g., em), the mglyph's dimensions are not affected by scriptlevels, e.g.,

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">  <mi>x</mi>     <mglyph src="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI1MCIvPgo8L3N2Zz4=" width="1em" height="1em" valign="-0.33em"></mglyph></math>

and

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">   <msub>     <mi>x</mi>     <mglyph src="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI1MCIvPgo8L3N2Zz4=" width="1em" height="1em" valign="-0.33em"></mglyph>   </msub> </math>

both give identically sized circles.

This seems counterintuitive if mglyph's are thought of as non-Unicode glyphs (which is where we ran into this).

Assignee
Assign to
Time tracking