Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
54
third-party/vendor/ttf-parser/testing-tools/font-view/mainwindow.h
vendored
Normal file
54
third-party/vendor/ttf-parser/testing-tools/font-view/mainwindow.h
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
#pragma once
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#ifdef WITH_FREETYPE
|
||||
#include "freetypefont.h"
|
||||
#endif
|
||||
|
||||
#ifdef WITH_FREETYPE
|
||||
#include "harfbuzzfont.h"
|
||||
#endif
|
||||
|
||||
#include "ttfparserfont.h"
|
||||
|
||||
namespace Ui { class MainWindow; }
|
||||
|
||||
class QSlider;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
void loadFont(const QString &path);
|
||||
void reloadGlyphs();
|
||||
void onVariationChanged();
|
||||
|
||||
private slots:
|
||||
void on_chBoxDrawBboxes_stateChanged(int flag);
|
||||
void on_chBoxDrawTtfParser_stateChanged(int flag);
|
||||
void on_chBoxDrawFreeType_stateChanged(int flag);
|
||||
void on_chBoxDrawHarfBuzz_stateChanged(int flag);
|
||||
|
||||
private:
|
||||
struct VariationSlider
|
||||
{
|
||||
QSlider *slider;
|
||||
Tag tag;
|
||||
};
|
||||
|
||||
Ui::MainWindow * const ui;
|
||||
QVector<VariationSlider> m_variationSliders;
|
||||
TtfParserFont m_ttfpFont;
|
||||
#ifdef WITH_FREETYPE
|
||||
FreeTypeFont m_ftFont;
|
||||
#endif
|
||||
#ifdef WITH_HARFBUZZ
|
||||
HarfBuzzFont m_hbFont;
|
||||
#endif
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue