X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontInfo.h;h=ba856eb19cecf175d0621e98fdfd9b0bc4ed4e37;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=338733eea23b0e92ae24f5762c93fac95a725034;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/FontInfo.h b/src/FontInfo.h index 338733eea2..ba856eb19c 100644 --- a/src/FontInfo.h +++ b/src/FontInfo.h @@ -30,7 +30,7 @@ public: FontInfo() { init(); } /// - FontInfo(LString const & pat) + FontInfo(string const & pat) : pattern(pat) { init(); } /// Destructor @@ -49,23 +49,23 @@ public: } /// Get existing pattern - LString getPattern() const { return pattern; } + string getPattern() const { return pattern; } /// Set new pattern - void setPattern(LString const & pat); + void setPattern(string const & pat); /** Return full name of font close to this size. If impossible, result is the empty string */ - LString getFontname(int size); + string getFontname(int size); private: /// Font pattern (with wildcard for size) - LString pattern; + string pattern; /// Available size list int * sizes; /// Corresponding name list - LString * strings; + string * strings; /// Number of matches int matches; @@ -97,6 +97,6 @@ private: void query(); /// Build newly sized font string - LString resize(LString const &, int size) const; + string resize(string const &, int size) const; }; #endif