MemoryFontSource.h
1
#pragma once
2
// Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3
4
#include <system/idisposable.h>
5
#include <system/array.h>
6
#include <cstdint>
7
8
#include "Aspose.PDF.Cpp/CommonData/Text/Fonts/FontSources/FontSource.h"
9
#include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
10
11
namespace
Aspose
12
{
13
namespace
Font
14
{
15
namespace
Sources
16
{
17
class
FontDefinition;
18
}
// namespace Sources
19
}
// namespace Font
20
namespace
Pdf
21
{
22
namespace
Tests
23
{
24
namespace
Fonts
25
{
26
class
FontSourceTests;
27
}
// namespace Fonts
28
}
// namespace Tests
29
}
// namespace Pdf
30
}
// namespace Aspose
31
32
namespace
Aspose
{
33
34
namespace
Pdf
{
35
36
namespace
Text
{
37
41
class
ASPOSE_PDF_SHARED_CLASS
MemoryFontSource
final :
public
Aspose::Pdf::Text::FontSource
,
public
System::IDisposable
42
{
43
typedef
MemoryFontSource
ThisType
;
44
typedef
Aspose::Pdf::Text::FontSource
BaseType
;
45
typedef
System::IDisposable
BaseType1
;
46
47
typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
48
ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
49
50
friend
class
Aspose::Pdf::Tests::Fonts::FontSourceTests;
51
52
public
:
53
57
ASPOSE_PDF_SHARED_API
System::ArrayPtr<uint8_t>
get_FontBytes()
const
;
58
63
ASPOSE_PDF_SHARED_API
MemoryFontSource
(
System::ArrayPtr<uint8_t>
fontBytes);
64
70
ASPOSE_PDF_SHARED_API
bool
Equals(
System::SharedPtr<System::Object>
obj)
override
;
74
ASPOSE_PDF_SHARED_API
void
Dispose()
override
;
75
76
protected
:
77
78
ASPOSE_PDF_SHARED_API
System::ArrayPtr<System::SharedPtr<Aspose::Font::Sources::FontDefinition>
> GetFontDefinitions()
override
;
79
80
private
:
81
82
System::ArrayPtr<uint8_t>
fontBytes;
83
System::ArrayPtr<System::SharedPtr<Aspose::Font::Sources::FontDefinition>
> fonts;
84
85
};
86
87
}
// namespace Text
88
}
// namespace Pdf
89
}
// namespace Aspose
90
91
System::Object
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition:
object.h:64
Tests
Definition:
signed_info.h:13
System::SmartPtr
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition:
fwd.h:22
Aspose::Pdf::FieldValueType::Text
Represents a text type.
System::IDisposable
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition:
idisposable.h:29
Aspose
Definition:
AFRelationship.h:4
Aspose::Pdf::Text::FontSource
Represents a base class fot font source.
Definition:
FontSource.h:52
Aspose::Pdf::Text::MemoryFontSource
Represents single font file source.
Definition:
MemoryFontSource.h:41
Aspose::Pdf::Facades::SubmitFormFlag::Pdf
Whole PDF file will be submitted.