2024-08-25 04:08:24 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <QFont>
|
|
|
|
#include <QFontDatabase>
|
|
|
|
#include <QFontInfo>
|
|
|
|
#include <QList>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include "qfontdatabase.h"
|
|
|
|
#include "gen_qfontdatabase.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QFontDatabase* QFontDatabase_new() {
|
|
|
|
return new QFontDatabase();
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_StandardSizes() {
|
|
|
|
QList<int> _ret = QFontDatabase::standardSizes();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_WritingSystems(const QFontDatabase* self) {
|
|
|
|
QList<QFontDatabase::WritingSystem> _ret = self->writingSystems();
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
uintptr_t* _arr = static_cast<uintptr_t*>(malloc(sizeof(uintptr_t) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QList<QFontDatabase::WritingSystem> _ret = self->writingSystems(family_QString);
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
uintptr_t* _arr = static_cast<uintptr_t*>(malloc(sizeof(uintptr_t) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_Families(const QFontDatabase* self) {
|
|
|
|
QStringList _ret = self->families();
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QStringList from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
QString _lv_ret = _ret[i];
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
|
|
_arr[i] = miqt_strdup(_lv_b.data(), _lv_b.length());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_Styles(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QStringList _ret = self->styles(family_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QStringList from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
QString _lv_ret = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
|
|
_arr[i] = miqt_strdup(_lv_b.data(), _lv_b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_PointSizes(QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QList<int> _ret = self->pointSizes(family_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_SmoothSizes(QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
|
|
|
QList<int> _ret = self->smoothSizes(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QFontDatabase_StyleString(QFontDatabase* self, QFont* font) {
|
|
|
|
QString _ret = self->styleString(*font);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QFontDatabase_StyleStringWithFontInfo(QFontDatabase* self, QFontInfo* fontInfo) {
|
|
|
|
QString _ret = self->styleString(*fontInfo);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QFont* QFontDatabase_Font(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style, int pointSize) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
|
|
|
QFont _ret = self->font(family_QString, style_QString, static_cast<int>(pointSize));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QFont*>(new QFont(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsBitmapScalable(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isBitmapScalable(family_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsSmoothlyScalable(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isSmoothlyScalable(family_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsScalable(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isScalable(family_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsFixedPitch(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isFixedPitch(family_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_Italic(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->italic(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_Bold(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->bold(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QFontDatabase_Weight(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->weight(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_HasFamily(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->hasFamily(family_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsPrivateFamily(const QFontDatabase* self, struct miqt_string* family) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isPrivateFamily(family_QString);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QFontDatabase_WritingSystemName(uintptr_t writingSystem) {
|
|
|
|
QString _ret = QFontDatabase::writingSystemName(static_cast<QFontDatabase::WritingSystem>(writingSystem));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QFontDatabase_WritingSystemSample(uintptr_t writingSystem) {
|
|
|
|
QString _ret = QFontDatabase::writingSystemSample(static_cast<QFontDatabase::WritingSystem>(writingSystem));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QFontDatabase_AddApplicationFont(struct miqt_string* fileName) {
|
|
|
|
QString fileName_QString = QString::fromUtf8(&fileName->data, fileName->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QFontDatabase::addApplicationFont(fileName_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
int QFontDatabase_AddApplicationFontFromData(QByteArray* fontData) {
|
|
|
|
return QFontDatabase::addApplicationFontFromData(*fontData);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_ApplicationFontFamilies(int id) {
|
|
|
|
QStringList _ret = QFontDatabase::applicationFontFamilies(static_cast<int>(id));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QStringList from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
QString _lv_ret = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
|
|
_arr[i] = miqt_strdup(_lv_b.data(), _lv_b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QFontDatabase_RemoveApplicationFont(int id) {
|
|
|
|
return QFontDatabase::removeApplicationFont(static_cast<int>(id));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QFontDatabase_RemoveAllApplicationFonts() {
|
|
|
|
return QFontDatabase::removeAllApplicationFonts();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QFontDatabase_SupportsThreadedFontRendering() {
|
|
|
|
return QFontDatabase::supportsThreadedFontRendering();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QFont* QFontDatabase_SystemFont(uintptr_t typeVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QFont _ret = QFontDatabase::systemFont(static_cast<QFontDatabase::SystemFont>(typeVal));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QFont*>(new QFont(_ret));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_Families1(const QFontDatabase* self, uintptr_t writingSystem) {
|
|
|
|
QStringList _ret = self->families(static_cast<QFontDatabase::WritingSystem>(writingSystem));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QStringList from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string** _arr = static_cast<struct miqt_string**>(malloc(sizeof(struct miqt_string*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
QString _lv_ret = _ret[i];
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
|
|
|
_arr[i] = miqt_strdup(_lv_b.data(), _lv_b.length());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QFontDatabase_PointSizes2(QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
|
|
|
QList<int> _ret = self->pointSizes(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsBitmapScalable2(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isBitmapScalable(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsSmoothlyScalable2(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isSmoothlyScalable(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsScalable2(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isScalable(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QFontDatabase_IsFixedPitch2(const QFontDatabase* self, struct miqt_string* family, struct miqt_string* style) {
|
|
|
|
QString family_QString = QString::fromUtf8(&family->data, family->len);
|
|
|
|
QString style_QString = QString::fromUtf8(&style->data, style->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isFixedPitch(family_QString, style_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QFontDatabase_Delete(QFontDatabase* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|