SystemFontsSubstitution.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/shared_ptr.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 Text
14 {
15 class Font;
16 } // namespace Text
17 } // namespace Pdf
18 } // namespace Aspose
19 
20 namespace Aspose {
21 
22 namespace Pdf {
23 
24 namespace Text {
25 
30 {
40 };
41 
45 class ASPOSE_PDF_SHARED_CLASS SystemFontsSubstitution final : public Aspose::Pdf::Text::FontSubstitution
46 {
49 
50  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
51  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
52 
53 public:
54 
58  ASPOSE_PDF_SHARED_API SubstitutionFontCategories get_FontCategories() const;
62  ASPOSE_PDF_SHARED_API void set_FontCategories(SubstitutionFontCategories value);
67  ASPOSE_PDF_SHARED_API System::SharedPtr<Font> get_DefaultFont();
72  ASPOSE_PDF_SHARED_API void set_DefaultFont(System::SharedPtr<Font> value);
73 
78  ASPOSE_PDF_SHARED_API SystemFontsSubstitution(SubstitutionFontCategories fontCategories);
79 
80 private:
81 
82  SubstitutionFontCategories fontCategories;
83  System::SharedPtr<Font> defaultFont;
85 
86 };
87 
88 } // namespace Text
89 } // namespace Pdf
90 } // namespace Aspose
91 
92 
Represents a base class fot font substitution strategies.
Definition: FontSubstitution.h:87
SubstitutionFontCategories
Represents font categories that can be substituted.
Definition: SystemFontsSubstitution.h:29
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
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.
Definition: AFRelationship.h:4
Represents a class for font substitution strategy that substitutes fonts with system fonts...
Definition: SystemFontsSubstitution.h:45
The fonts that are named the same as system fonts. Those fonts are mostly safe to be substituted with...
Whole PDF file will be submitted.