PTShapedText
@interface PTShapedText : NSObjectThe class ShapedText. A sequence of positioned glyphs – the visual representation of a given text string
- 
                  
                  Scaling factor of this shaped text relative to the em size. A scaling factor of 1 means that all units are relative to the em size. PDF scaling is typically 1000 units per em. DeclarationObjective-C - (double)GetScale;Swift func getScale() -> DoubleReturn Valuereturns the scaling factor for the glyph positions. 
- 
                  
                  Get the state of the shaping operation. Even if the shaping did not fully succeed, this object can be added to an elementbuilder, and will fallback to placing unshped text. See GetFailureReason() in the case this method returns something other than FullShaping. DeclarationObjective-C - (PTShapingStatus)GetShapingStatus;Swift func getShapingStatus() -> PTShapingStatusReturn Value. 
- 
                  
                  In the case where GetShapingStatus() returns something other than FullShaping, this method will return a more detailed reason behind the failure. DeclarationObjective-C - (PTShapingFailureReason)GetFailureReason;Swift func getFailureReason() -> PTShapingFailureReasonReturn Value. 
- 
                  
                  The original source text string. DeclarationObjective-C - (NSString *)GetText;Swift func getText() -> String!Return Valuereturns the source text string. 
- 
                  
                  Number of glyphs present in the shaped text. Might be different from the . DeclarationObjective-C - (int)GetNumGlyphs;Swift func getNumGlyphs() -> Int32Return Valuereturns the number of utf32 codepoints in this shaped text. 
- 
                  
                  Get the glyph ID at the indicated place in the shaped sequence. This number is specific to the font file used to generate the shaping results, and does not always have a clean mapping to a particular Unicode codepoint in the original string. DeclarationObjective-C - (unsigned int)GetGlyph:(unsigned int)index;Swift func getGlyph(_ index: UInt32) -> UInt32Parametersindex– the index of the glyph to be retrieved. Must be less than GetNumGlyphs(). Return Valuereturns the glyph ID for the indicated place in the shaped result. 
- 
                  
                  The X position of the glyph at the requested index. This number has been scaled by GetScale(). DeclarationObjective-C - (double)GetGlyphXPos:(unsigned int)index;Swift func getGlyphXPos(_ index: UInt32) -> DoubleParametersindex– the index of the glyph position to be retrieved. Must be less than GetNumGlyphs(). Return Valuereturns the X position for the glyph at the specified index. 
- 
                  
                  The Y position of the glyph at the requested index. This number has been scaled by GetScale(). DeclarationObjective-C - (double)GetGlyphYPos:(unsigned int)index;Swift func getGlyphYPos(_ index: UInt32) -> DoubleParametersindex– the index of the glyph position to be retrieved. Must be less than GetNumGlyphs(). Return Valuereturns the Y position for the glyph at the specified index. 
- 
                  
                  Undocumented DeclarationObjective-C - (instancetype)init;Swift init!()
 PTShapedText Class Reference
        PTShapedText Class Reference