equal
deleted
inserted
replaced
38 public: |
38 public: |
39 |
39 |
40 HbTypefaceInfo(QObject *parent = 0); |
40 HbTypefaceInfo(QObject *parent = 0); |
41 ~HbTypefaceInfo(); |
41 ~HbTypefaceInfo(); |
42 |
42 |
43 void roleToTypeface(HbFontSpec::Role role, QString &typefaceFamily, int &weight) const; |
43 void roleToTypeface(HbFontSpec::Role role, QString &typefaceFamily, int &weight) const; |
44 int textHeightToSizeInPixels(const QString &typefaceFamily, int weight, qreal textHeight) const; |
44 int textHeightToSizeInPixels(const QString &typefaceFamily, int weight, qreal textHeight) const; |
45 bool tryGetFamilyFromAliasName(const QString &aliasFamily, QString &typefaceFamily, int &weight) const; |
45 bool tryGetFamilyFromAliasName(const QString &aliasFamily, QString &typefaceFamily, int &weight) const; |
46 bool containsFamily(const QString& typefaceFamily) const; |
46 bool containsFamily(const QString& typefaceFamily) const; |
47 int getWeight(const QString& typefaceFamily) const; |
47 int getWeight(const QString& typefaceFamily) const; |
48 |
48 |
49 private: |
49 private: |
50 mutable HbTypefaceInfoPrivate *d; |
50 mutable HbTypefaceInfoPrivate *d; |
51 }; |
51 }; |
52 |
52 |