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 FontList;
20 Font(const QString & name, bool owner = true);
22 QString getFileName() const;
23 QString getEncoding() const;
24 const QStringList & getNames() const;
25 const QStringList & getAuthors() const;
26 double getLetterSpacing();
27 double getWordSpacing();
28 double getLineSpacingFactor();
31 // Wrappers for block list (letters) functions
32 BlockList * getLetterList();
33 Block * findLetter(const QString & name);
35 Block * letterAt(uint i);
37 friend std::ostream & operator<<(std::ostream & os, const Font & l);
41 void ParseIdentifier(QTextStream &, QString);
42 void ParseCharacter(QTextStream &, QString);
46 //! block list (letters)
50 //! Font encoding (see docu for QTextCodec)
56 //! Is this font currently loaded into memory?
58 //! Default letter spacing for this font
60 //! Default word spacing for this font
62 //! Default line spacing factor for this font
63 double lineSpacingFactor;