mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-27 21:24:48 +01:00
Fixed font properties search order
This commit is contained in:
parent
4462c89b05
commit
678439cf52
10
src/font.cpp
10
src/font.cpp
@ -14,8 +14,8 @@ static QList<QPair<QString, QFont::Weight> > weights()
|
|||||||
list.append(QPair<QString, QFont::Weight>("Regular", QFont::Normal));
|
list.append(QPair<QString, QFont::Weight>("Regular", QFont::Normal));
|
||||||
list.append(QPair<QString, QFont::Weight>("Medium", QFont::Medium));
|
list.append(QPair<QString, QFont::Weight>("Medium", QFont::Medium));
|
||||||
list.append(QPair<QString, QFont::Weight>("Demi Bold", QFont::DemiBold));
|
list.append(QPair<QString, QFont::Weight>("Demi Bold", QFont::DemiBold));
|
||||||
list.append(QPair<QString, QFont::Weight>("Bold", QFont::Bold));
|
|
||||||
list.append(QPair<QString, QFont::Weight>("Extra Bold", QFont::ExtraBold));
|
list.append(QPair<QString, QFont::Weight>("Extra Bold", QFont::ExtraBold));
|
||||||
|
list.append(QPair<QString, QFont::Weight>("Bold", QFont::Bold));
|
||||||
list.append(QPair<QString, QFont::Weight>("Black", QFont::Black));
|
list.append(QPair<QString, QFont::Weight>("Black", QFont::Black));
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
@ -29,16 +29,16 @@ static QList<QPair<QString, QFont::Stretch> > stretches()
|
|||||||
QFont::UltraCondensed));
|
QFont::UltraCondensed));
|
||||||
list.append(QPair<QString, QFont::Stretch>("Extra Condensed",
|
list.append(QPair<QString, QFont::Stretch>("Extra Condensed",
|
||||||
QFont::ExtraCondensed));
|
QFont::ExtraCondensed));
|
||||||
list.append(QPair<QString, QFont::Stretch>("Condensed",
|
|
||||||
QFont::Condensed));
|
|
||||||
list.append(QPair<QString, QFont::Stretch>("Semi Expanded",
|
list.append(QPair<QString, QFont::Stretch>("Semi Expanded",
|
||||||
QFont::SemiExpanded));
|
QFont::SemiExpanded));
|
||||||
list.append(QPair<QString, QFont::Stretch>("Expanded",
|
|
||||||
QFont::Expanded));
|
|
||||||
list.append(QPair<QString, QFont::Stretch>("Extra Expanded",
|
list.append(QPair<QString, QFont::Stretch>("Extra Expanded",
|
||||||
QFont::ExtraExpanded));
|
QFont::ExtraExpanded));
|
||||||
list.append(QPair<QString, QFont::Stretch>("Ultra Expanded",
|
list.append(QPair<QString, QFont::Stretch>("Ultra Expanded",
|
||||||
QFont::UltraExpanded));
|
QFont::UltraExpanded));
|
||||||
|
list.append(QPair<QString, QFont::Stretch>("Condensed",
|
||||||
|
QFont::Condensed));
|
||||||
|
list.append(QPair<QString, QFont::Stretch>("Expanded",
|
||||||
|
QFont::Expanded));
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user