X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLength.cpp;h=a4d77f34ed041cbb049a20c858e2cddde8c94f25;hb=38c2cde0d8695ac5287bae218c4a33a2acf18ef8;hp=42188d8929e444387efbaec46668283ee49fbad7;hpb=4183a9f4dc9bc0893fc59cd7e31db9bc7e52eea9;p=lyx.git diff --git a/src/Length.cpp b/src/Length.cpp index 42188d8929..a4d77f34ed 100644 --- a/src/Length.cpp +++ b/src/Length.cpp @@ -17,9 +17,6 @@ #include "Length.h" #include "LyXRC.h" -#include "MetricsInfo.h" - -#include "frontends/FontMetrics.h" #include "support/debug.h" #include "support/docstream.h" @@ -309,19 +306,6 @@ double Length::inInch(double text_width, double em_width) const } -int Length::inPixels(MetricsBase const & base) const -{ - FontInfo fi = base.font; - if (unit_ == Length::MU) - // mu is 1/18th of an em in the math symbol font - fi.setFamily(SYMBOL_FAMILY); - else - // Math style is only taken into account in the case of mu - fi.setStyle(LM_ST_TEXT); - return inPixels(base.textwidth, theFontMetrics(fi).em()); -} - - int Length::inBP() const { // return any Length value as a one with