mirror of https://github.com/procxx/kepka.git
Remove test code for other emoji font.
This commit is contained in:
parent
77058b84cd
commit
65242a503b
Telegram/SourceFiles/codegen/emoji
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue