mirror of https://github.com/procxx/kepka.git
Remove test code for other emoji font.
This commit is contained in:
parent
77058b84cd
commit
65242a503b
|
@ -13,7 +13,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include <QtGui/QGuiApplication>
|
#include <QtGui/QGuiApplication>
|
||||||
#include <QtGui/QImage>
|
#include <QtGui/QImage>
|
||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
#include <QtCore/QStandardPaths>
|
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
|
|
||||||
#ifdef SUPPORT_IMAGE_GENERATION
|
#ifdef SUPPORT_IMAGE_GENERATION
|
||||||
|
@ -220,17 +219,6 @@ QImage Generator::generateImage(int imageIndex) {
|
||||||
|
|
||||||
auto sourceSize = kScaleFromLarge ? kLargeEmojiSize : kEmojiSize;
|
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();
|
auto font = QGuiApplication::font();
|
||||||
font.setFamily(QStringLiteral("Apple Color Emoji"));
|
font.setFamily(QStringLiteral("Apple Color Emoji"));
|
||||||
font.setPixelSize(kScaleFromLarge ? kLargeEmojiFontSize : kEmojiFontSize);
|
font.setPixelSize(kScaleFromLarge ? kLargeEmojiFontSize : kEmojiFontSize);
|
||||||
|
|
Loading…
Reference in New Issue