prev next
File: Presentation/GeneralLayout/mfrac/mfracSfonts13.xml (mml file)
Author: Robert Miner and Jeff Schaefer, Geometry Technologies
Description: This example tests how the <i>fontsize</i>, <i>fontstyle</i> and <i>fontweight</i> attributes inherit from <mstyle> to <mfrac>. In particular, these tests show how the line thickness of the bar is affected by these attributes.
Sample Rendering:
Created by: webeq

Your browser's rendering:

1 y + 3 1 y + 3 1 y + 3


Source Code:

    <math> 
      <mrow> 
        <mstyle fontweight='bold' fontsize='7px'> 
          <mfrac> 
            <mn>1</mn> 
            <mrow> 
              <mi>y</mi> 
              <mo>+</mo> 
              <mn>3</mn> 
            </mrow> 
          </mfrac> 
        </mstyle> 
        <mstyle fontstyle='normal'> 
          <mfrac> 
            <mn>1</mn> 
            <mrow> 
              <mi>y</mi> 
              <mo>+</mo> 
              <mn>3</mn> 
            </mrow> 
          </mfrac> 
        </mstyle> 
        <mstyle fontsize='12pt'> 
          <mfrac> 
            <mn>1</mn> 
            <mrow> 
              <mi>y</mi> 
              <mo>+</mo> 
              <mn>3</mn> 
            </mrow> 
          </mfrac> 
        </mstyle> 
      </mrow> 
    </math>
  

Test Suite Home