~ubuntu-branches/debian/sid/librecad/sid

« back to all changes in this revision

Viewing changes to src/lib/engine/rs_font.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-12-17 20:08:57 UTC
  • mfrom: (0.2.4)
  • Revision ID: package-import@ubuntu.com-20111217200857-r9wmynaloj230qm1
Tags: 1.0.0+nolibs-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include <iostream>
32
32
#include <QStringList>
 
33
#include <QMap>
33
34
#include "rs_blocklist.h"
34
35
 
35
36
/**
91
92
 
92
93
    bool loadFont();
93
94
 
 
95
    void generateAllFonts();
 
96
 
94
97
        // Wrappers for block list (letters) functions
95
98
        RS_BlockList* getLetterList() {
96
99
                return &letterList;
97
100
        }
98
 
    RS_Block* findLetter(const QString& name) {
99
 
                return letterList.find(name);
100
 
        }
 
101
    RS_Block* findLetter(const QString& name);
 
102
//    RS_Block* findLetter(const QString& name) {
 
103
//              return letterList.find(name);
 
104
//      }
101
105
    uint countLetters() {
102
106
        return letterList.count();
103
107
    }
112
116
private:
113
117
    void readCXF(QString path);
114
118
    void readLFF(QString path);
 
119
    RS_Block* generateLffFont(const QString& ch);
115
120
 
116
121
private:
117
 
        //! block list (letters)
118
 
        RS_BlockList letterList;
 
122
    //raw lff font file list, not processed into blocks yet
 
123
    QMap<QString, QStringList> rawLffFontList;
 
124
 
 
125
        //! block list (letters)
 
126
        RS_BlockList letterList;
119
127
 
120
128
    //! Font file name
121
129
    QString fileName;