Page MenuHomePhabricator

The diagonal line in the letter z does not appear if z is super/sub-script during png rendering
Closed, DeclinedPublic

Description

Author: danielbachmat

Description:
In some cases the diagonal line in the letter z does not appear when z is an exponent. For example: http://en.wikipedia.org/wiki/Gamma_function (second formula).


Version: unspecified
Severity: normal

Details

Reference
bz30403

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:54 PM
bzimport added a project: Math.
bzimport set Reference to bz30403.
bzimport added a subscriber: Unknown Object (MLST).

Test cases:
<math>\frac{3}{1} 2^z</math>

<math>\frac{3}{1} 2_z</math>

(the \frac is to prevent simple html rendering and force png rendering)

Note, I could not reproduce this on local install (but could on wikipedia) so probably some sort of config issue.

danielbachmat wrote:

Note that in some cases the line does appear:
<math> \!\, f(z) = e^z = e^{(x+iy)} = e^x e^{iy} = e^x \left( \cos{y} + i \sin{y} \right)</math>

Seems to be the difference between rendering with dvipng and rendering with dvips + gs + convert.

Running a local 1.17wmf1 the fallback to dvips doesn't seem to work (while it does work on trunk w/ Math extension enabled -- and renders nice-looking small "z"s). Installing dvipng and rerendering, I get the same output we see on the live site, where the top and bottom of the "z" look kinda like little "~"s with no diagonal line.