- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ShapedText.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 // !Warning! This file is autogenerated, modify the .codegen file, not this one
6 // (any changes here will be wiped out during the autogen process)
7
8 #ifndef PDFTRON_H_CPPPDFShapedText
9 #define PDFTRON_H_CPPPDFShapedText
10 #include <C/PDF/TRN_ShapedText.h>
11
12 #include <Common/BasicTypes.h>
13 #include <Common/UString.h>
14
15 namespace pdftron { namespace PDF {
16 class Font;
17
23 class ShapedText
24 {
25 public:
26 //enums:
27 enum ShapingStatus {
28 e_FullShaping = 0,
29 e_PartialShaping = 1,
30 e_NoShaping = 2
31 };
32 enum FailureReason {
33 e_NoFailure = 0,
34 e_UnsupportedFontType = 1,
35 e_NotIndexEncoded = 2,
36 e_FontDataNotFound = 3
37 };
38 ShapedText();
39 ShapedText(const ShapedText& other);
40 ShapedText(TRN_ShapedText impl);
41 ShapedText& operator= (const ShapedText& other);
42 ~ShapedText();
43
44 void Destroy();
45
46 //methods:
47
53 double GetScale() const;
54
60 ShapingStatus GetShapingStatus() const;
61
67 FailureReason GetFailureReason() const;
68
74 UString GetText() const;
75
81 int GetNumGlyphs() const;
82
89 UInt32 GetGlyph(UInt32 index) const;
90
97 double GetGlyphXPos(UInt32 index) const;
98
105 double GetGlyphYPos(UInt32 index) const;
106
107 #ifndef SWIGHIDDEN
108 TRN_ShapedText m_impl;
109 #endif
110
111 private:
112
113 #ifndef SWIGHIDDEN
114 mutable bool m_owner;
115 #endif
116 };
117
118 #include <Impl/ShapedText.inl>
119 } //end pdftron
120 } //end PDF
121
122
123 #endif //PDFTRON_H_CPPPDFShapedText
pdftron::PDF::ShapedText
Definition: ShapedText.h:23
pdftron::PDF::ShapedText::e_PartialShaping
Definition: ShapedText.h:29
pdftron::PDF::ShapedText::e_UnsupportedFontType
Definition: ShapedText.h:34
pdftron::PDF::ShapedText::~ShapedText
~ShapedText()
pdftron::PDF::ShapedText::e_NotIndexEncoded
Definition: ShapedText.h:35
pdftron::PDF::ShapedText::e_FullShaping
Definition: ShapedText.h:28
UString.h
pdftron::PDF::ShapedText::GetGlyphXPos
double GetGlyphXPos(UInt32 index) const
pdftron::PDF::ShapedText::GetGlyph
UInt32 GetGlyph(UInt32 index) const
pdftron::PDF::ShapedText::Destroy
void Destroy()
pdftron::PDF::ShapedText::GetScale
double GetScale() const
pdftron::UInt32
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
pdftron::PDF::ShapedText::operator=
ShapedText & operator=(const ShapedText &other)
pdftron::PDF::ShapedText::e_NoFailure
Definition: ShapedText.h:33
pdftron::PDF::ShapedText::GetShapingStatus
ShapingStatus GetShapingStatus() const
pdftron::PDF::ShapedText::GetFailureReason
FailureReason GetFailureReason() const
BasicTypes.h
pdftron::PDF::ShapedText::GetGlyphYPos
double GetGlyphYPos(UInt32 index) const
pdftron::PDF::ShapedText::ShapingStatus
ShapingStatus
Definition: ShapedText.h:27
pdftron::PDF::ShapedText::FailureReason
FailureReason
Definition: ShapedText.h:32
pdftron::PDF::ShapedText::e_NoShaping
Definition: ShapedText.h:30
pdftron::PDF::ShapedText::GetText
UString GetText() const
pdftron::PDF::ShapedText::GetNumGlyphs
int GetNumGlyphs() const
pdftron::PDF::ShapedText::e_FontDataNotFound
Definition: ShapedText.h:36
pdftron::UString
Definition: UString.h:27
pdftron::PDF::ShapedText::ShapedText
ShapedText()
pdftron::PDF::ShapedText::m_impl
TRN_ShapedText m_impl
Definition: ShapedText.h:108