Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>By default the text is centered (horizontally and vertically) at a point, and the fonts have characters of different heights, resulting in shifted text. For example compare the following:</p> <pre><code>Graphics[{Opacity[ 0.1], {Text[ Style["agÄ", FontFamily -&gt; "Helvetica", 240, Background -&gt; RGBColor[0.8, 0, 0, 0.2]]], Text[Style["agÄ", FontFamily -&gt; "Arial", 240, Background -&gt; RGBColor[0, 0, 0.8, 0.2]]]} }] Graphics[{Opacity[ 0.1], {Text[ Style["agA", FontFamily -&gt; "Helvetica", 240, Background -&gt; RGBColor[0.8, 0, 0, 0.2]]], Text[Style["agA", FontFamily -&gt; "Arial", 240, Background -&gt; RGBColor[0, 0, 0.8, 0.2]]]} }] </code></pre> <p><img src="https://i.stack.imgur.com/LusNq.png" alt="enter image description here"></p> <p>If you position the text along an edge, it might work better for you, although it's by no means guaranteed:</p> <pre><code>Graphics[{Opacity[ 0.1], {Text[ Style["a", FontFamily -&gt; "Helvetica", 240], {0, 0}, {Center, Bottom}], Text[Style["a", FontFamily -&gt; "Arial", 240], {0, 0}, {Center, Bottom}]}}] </code></pre> <p><img src="https://i.stack.imgur.com/3U6np.png" alt="enter image description here"></p> <p><strong>Edit</strong> Using <code>Baseline</code> as suggested by Heike:</p> <pre><code>Graphics[{Opacity[ 0.1], {Text[ Style["a", FontFamily -&gt; "Helvetica", 240], {0, 0}, {Center, Baseline}], Text[Style["a", FontFamily -&gt; "Arial", 240], {0, 0}, {Center, Baseline}]}}] </code></pre> <p><img src="https://i.stack.imgur.com/FxvJY.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload