Loading...
Searching...
No Matches
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
BasicTypes.h
UString.h
pdftron::PDF::Font
Definition Font.h:56
pdftron::PDF::ShapedText::GetGlyph
UInt32 GetGlyph(UInt32 index) const
pdftron::PDF::ShapedText::ShapedText
ShapedText()
pdftron::PDF::ShapedText::FailureReason
FailureReason
Definition ShapedText.h:32
pdftron::PDF::ShapedText::e_NoFailure
@ e_NoFailure
Definition ShapedText.h:33
pdftron::PDF::ShapedText::e_UnsupportedFontType
@ e_UnsupportedFontType
Definition ShapedText.h:34
pdftron::PDF::ShapedText::e_NotIndexEncoded
@ e_NotIndexEncoded
Definition ShapedText.h:35
pdftron::PDF::ShapedText::e_FontDataNotFound
@ e_FontDataNotFound
Definition ShapedText.h:36
pdftron::PDF::ShapedText::~ShapedText
~ShapedText()
pdftron::PDF::ShapedText::GetScale
double GetScale() const
pdftron::PDF::ShapedText::GetNumGlyphs
int GetNumGlyphs() const
pdftron::PDF::ShapedText::operator=
ShapedText & operator=(const ShapedText &other)
pdftron::PDF::ShapedText::ShapedText
ShapedText(TRN_ShapedText impl)
pdftron::PDF::ShapedText::GetShapingStatus
ShapingStatus GetShapingStatus() const
pdftron::PDF::ShapedText::GetGlyphXPos
double GetGlyphXPos(UInt32 index) const
pdftron::PDF::ShapedText::GetFailureReason
FailureReason GetFailureReason() const
pdftron::PDF::ShapedText::GetGlyphYPos
double GetGlyphYPos(UInt32 index) const
pdftron::PDF::ShapedText::GetText
UString GetText() const
pdftron::PDF::ShapedText::ShapingStatus
ShapingStatus
Definition ShapedText.h:27
pdftron::PDF::ShapedText::e_PartialShaping
@ e_PartialShaping
Definition ShapedText.h:29
pdftron::PDF::ShapedText::e_NoShaping
@ e_NoShaping
Definition ShapedText.h:30
pdftron::PDF::ShapedText::e_FullShaping
@ e_FullShaping
Definition ShapedText.h:28
pdftron::PDF::ShapedText::Destroy
void Destroy()
pdftron::PDF::ShapedText::m_impl
TRN_ShapedText m_impl
Definition ShapedText.h:108
pdftron::PDF::ShapedText::ShapedText
ShapedText(const ShapedText &other)
pdftron::UString
Definition UString.h:28
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10
pdftron::UInt32
TRN_UInt32 UInt32
Definition BasicTypes.h:13