blob: ee1e0b01024fa46f3fcb2e68eeb319f31507c703 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FXGE_CTTFONTDESC_H_
#define CORE_FXGE_CTTFONTDESC_H_
#include "core/fxcrt/fx_system.h"
#include "core/fxge/fx_font.h"
class CTTFontDesc {
public:
CTTFontDesc() : m_Type(0), m_pFontData(nullptr), m_RefCount(0) {}
~CTTFontDesc();
// ret < 0, releaseface not appropriate for this object.
// ret == 0, object released
// ret > 0, object still alive, other referrers.
int ReleaseFace(FXFT_Face face);
int m_Type;
union {
FXFT_Face m_SingleFace;
FXFT_Face m_TTCFaces[16];
};
uint8_t* m_pFontData;
int m_RefCount;
};
#endif // CORE_FXGE_CTTFONTDESC_H_
|