6 #include "rs_blocklist.h"
9 * Class for representing a font. This is implemented as a Drawing
10 * with a name (the font name) and several blocks, one for each letter
13 * @author Andrew Mustun
17 friend class RS_FontList;
20 RS_Font(const QString & name, bool owner = true);
21 //RS_Font(const char* name);
23 QString getFileName() const;
24 QString getEncoding() const;
25 const QStringList & getNames() const;
26 const QStringList & getAuthors() const;
27 double getLetterSpacing();
28 double getWordSpacing();
29 double getLineSpacingFactor();
32 // Wrappers for block list (letters) functions
33 RS_BlockList * getLetterList();
34 RS_Block * findLetter(const QString & name);
36 RS_Block * letterAt(uint i);
38 friend std::ostream & operator<<(std::ostream & os, const RS_Font & l);
41 //! block list (letters)
42 RS_BlockList letterList;
45 //! Font encoding (see docu for QTextCodec)
51 //! Is this font currently loaded into memory?
53 //! Default letter spacing for this font
55 //! Default word spacing for this font
57 //! Default line spacing factor for this font
58 double lineSpacingFactor;