Skip to content

Commit

Permalink
fix #126811: Tiny characters in Special Characters window
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Oct 6, 2016
1 parent 415df4f commit de6311c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libmscore/symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ FSymbol::FSymbol(const FSymbol& s)
void FSymbol::draw(QPainter* painter) const
{
QString s;
painter->setFont(_font);
QFont f(_font);
f.setPointSizeF(f.pointSizeF() * MScore::pixelRatio);
painter->setFont(f);
if (_code & 0xffff0000) {
s = QChar(QChar::highSurrogate(_code));
s += QChar(QChar::lowSurrogate(_code));
Expand All @@ -252,7 +254,7 @@ void FSymbol::write(Xml& xml) const
{
xml.stag(name());
xml.tag("font", _font.family());
xml.tag("fontsize", _font.pixelSize());
xml.tag("fontsize", _font.pointSizeF());
xml.tag("code", _code);
BSymbol::writeProperties(xml);
xml.etag();
Expand All @@ -269,7 +271,7 @@ void FSymbol::read(XmlReader& e)
if (tag == "font")
_font.setFamily(e.readElementText());
else if (tag == "fontsize")
_font.setPointSize(e.readInt());
_font.setPointSizeF(e.readDouble());
else if (tag == "code")
_code = e.readInt();
else if (!BSymbol::readProperties(e))
Expand Down

0 comments on commit de6311c

Please sign in to comment.