]> git.lyx.org Git - lyx.git/blobdiff - src/FontInfo.h
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / FontInfo.h
index 49fbbfe299eb52e0d44dab429bbbc811d82218e0..3bc79d913599721eb1a2b16d3060c0e832ad5338 100644 (file)
 #include "LString.h"
 
 /** This class manages a font.
-The idea is to create a FontInfo object with a font name pattern with a 
-wildcard at the size field. Then this object can host request for font-
-instances of any given size. If no exact match is found, the closest size
-is chosen instead. If the font is scalable, the flag lyxrc.use_scalable_fonts
-determines whether to allow scalable fonts to give an exact match. */
+    The idea is to create a FontInfo object with a font name pattern with a 
+    wildcard at the size field. Then this object can host request for font-
+    instances of any given size. If no exact match is found, the closest size
+    is chosen instead. If the font is scalable, the flag
+    lyxrc.use_scalable_fonts determines whether to allow scalable fonts to
+    give an exact match.
+*/
 class FontInfo {
 public:
        ///
@@ -49,14 +51,14 @@ public:
        }
 
        /// Get existing pattern
-       string getPattern() const { return pattern; }
+       string const getPattern() const { return pattern; }
 
        /// Set new pattern
        void setPattern(string const & pat);
 
        /** Return full name of font close to this size.
          If impossible, result is the empty string */
-       string getFontname(int size);
+       string const getFontname(int size);
 private:
        /// Font pattern (with wildcard for size)
        string pattern;
@@ -89,6 +91,6 @@ private:
        void query();
 
        /// Build newly sized font string 
-       string resize(string const &, int size) const;
+       string const resize(string const &, int size) const;
 };
 #endif