- Font(const std::string& file, const std::string& shadowfile,
- int w, int h, int shadowsize = 2);
+ enum GlyphWidth {
+ FIXED,
+ VARIABLE
+ };
+
+ /** Construct a fixed-width font
+ *
+ * @param glyph_width VARIABLE for proportional fonts, VARIABLE for monospace ones
+ * @param filename image file containing the characters
+ * @param shadowfile image file containing the characters shadows
+ * @param char_width width of a character
+ * @param char_height height of a character
+ */
+ Font(GlyphWidth glyph_width,
+ const std::string& filename, const std::string& shadowfile,
+ int char_width, int char_height, int shadowsize = 2);