It was an error using an absolute size instead of one relative to the
size of the used font. It was requiring using the physical dpi of the
screen and caused #12222. Now everything is computed with respect to
the metrics of the font and should be automatically correct.
Fixes #12222.
// needs to be done before reading lyxrc
QWidget w;
- lyxrc.dpi = (w.physicalDpiX() + w.physicalDpiY()) / 2;
+ lyxrc.dpi = (w.logicalDpiX() + w.logicalDpiY()) / 2;
guiApp = this;
cell(0).metrics(mi, dim);
int const l1 = mi.base.bv->zoomedPixels(1);
- int const l2 = 4 * l1;
- int const l3 = 4 * l1;
+ int const l2 = mathed_char_width(mi.base.font, 'x') - l1;
+ int const l3 = l2;
dh_ = l2; //mathed_char_height(LM_TC_VAR, mi, 'I', ascent_, descent_);
dw_ = l3; //mathed_char_width(LM_TC_VAR, mi, 'x');