Remove test code for other emoji font.

This commit is contained in:
John Preston 2018-12-07 18:40:27 +04:00
parent 77058b84cd
commit 65242a503b
1 changed files with 0 additions and 12 deletions

View File

@ -13,7 +13,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtGui/QGuiApplication>
#include <QtGui/QImage>
#include <QtGui/QPainter>
#include <QtCore/QStandardPaths>
#include <QtCore/QDir>
#ifdef SUPPORT_IMAGE_GENERATION
@ -220,17 +219,6 @@ QImage Generator::generateImage(int imageIndex) {
auto sourceSize = kScaleFromLarge ? kLargeEmojiSize : kEmojiSize;
const auto fontPath = QStandardPaths::writableLocation(
QStandardPaths::DownloadLocation)
+ "/NotoColorEmoji.ttf";
const auto regularId = QFontDatabase::addApplicationFont(fontPath);
if (regularId < 0) {
return QImage();
}
for (const auto &family : QFontDatabase::applicationFontFamilies(regularId)) {
std::cout << family.toStdString() << std::endl;
};
auto font = QGuiApplication::font();
font.setFamily(QStringLiteral("Apple Color Emoji"));
font.setPixelSize(kScaleFromLarge ? kLargeEmojiFontSize : kEmojiFontSize);