CustomFontSubstitutionBase.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 
6 #include "Aspose.PDF.Cpp/CommonData/Text/Fonts/FontSubstitutions/FontSubstitution.h"
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 namespace Engine
14 {
15 namespace CommonData
16 {
17 namespace Text
18 {
19 namespace Fonts
20 {
21 namespace Substitution
22 {
23 class FontSubstitutor;
24 } // namespace Substitution
25 } // namespace Fonts
26 } // namespace Text
27 } // namespace CommonData
28 } // namespace Engine
29 namespace Text
30 {
31 class Font;
32 } // namespace Text
33 } // namespace Pdf
34 } // namespace Aspose
35 
36 namespace Aspose {
37 
38 namespace Pdf {
39 
40 namespace Text {
41 
46 {
49 
50  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
51  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
52 
53 public:
54 
63  class ASPOSE_PDF_SHARED_CLASS OriginalFontSpecification final : public System::Object
64  {
65  typedef OriginalFontSpecification ThisType;
66  typedef System::Object BaseType;
67 
68  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
69  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
70 
71  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::Substitution::FontSubstitutor;
72 
73  public:
74 
78  ASPOSE_PDF_SHARED_API System::String get_OriginalFontName() const;
82  ASPOSE_PDF_SHARED_API bool get_IsEmbedded() const;
93  ASPOSE_PDF_SHARED_API bool get_IsSubstitutionUnavoidable() const;
94 
95  protected:
96 
100  OriginalFontSpecification(System::String originalFontName, bool isEmbedded, bool isUnavoidable);
101 
102  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(OriginalFontSpecification, CODEPORTING_ARGS(System::String originalFontName, bool isEmbedded, bool isUnavoidable));
103 
104  private:
105 
106  System::String originalFontName;
107  bool isEmbedded;
108  bool isUnavoidable;
109 
110  };
111 
112 
113 public:
114 
128  virtual ASPOSE_PDF_SHARED_API bool TrySubstitute(System::SharedPtr<CustomFontSubstitutionBase::OriginalFontSpecification> originalFontSpecification, System::SharedPtr<Font>& substitutionFont);
129 
130 };
131 
132 } // namespace Text
133 } // namespace Pdf
134 } // namespace Aspose
135 
136 
Represents a base class fot font substitution strategies.
Definition: FontSubstitution.h:87
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Represents a base class for custom font substitution strategy.
Definition: CustomFontSubstitutionBase.h:45
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Represents a text type.
Represents original font specification.
Definition: CustomFontSubstitutionBase.h:63
Definition: AFRelationship.h:4
Whole PDF file will be submitted.