Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
34
third-party/vendor/ttf-parser-0.15.2/testing-tools/font-view/harfbuzzfont.h
vendored
Normal file
34
third-party/vendor/ttf-parser-0.15.2/testing-tools/font-view/harfbuzzfont.h
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
#include "glyph.h"
|
||||
|
||||
struct hb_blob_t;
|
||||
struct hb_face_t;
|
||||
struct hb_font_t;
|
||||
struct hb_draw_funcs_t;
|
||||
|
||||
class HarfBuzzFont
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(HarfBuzzFont)
|
||||
|
||||
public:
|
||||
HarfBuzzFont();
|
||||
~HarfBuzzFont();
|
||||
|
||||
void open(const QString &path, const quint32 index = 0);
|
||||
bool isOpen() const;
|
||||
|
||||
Glyph outline(const quint16 gid) const;
|
||||
|
||||
void setVariations(const QVector<Variation> &variations);
|
||||
|
||||
private:
|
||||
void reset();
|
||||
|
||||
private:
|
||||
hb_blob_t *m_blob = nullptr;
|
||||
hb_face_t *m_face = nullptr;
|
||||
hb_font_t *m_font = nullptr;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue