IGraphicsPort::xshow method not working in InDesign
Hello Everyone,
My Requirement is i want to draw string in table cell in the c++.I am referring cellPanel InDesign SDK sample.
when i am using IGraphicsPort::show method its working fine.But i want to use IGraphicsPort::xshow method using this method i am not able to draw string in table cell.
Syntax: virtual void show ( const PMReal & x, const PMReal & y, uint32 numUTF16s, const textchar * text,bool16 verticalGlyphs = kFalse,bool16 wmodePositioning = kFalse)
Example: grPort->show(ix + 2, iy + fCellHeight - 2, s.NumUTF16TextChars(), s.GrabUTF16Buffer(nil)); //working fine
Syntax: virtual void xshow ( const PMReal & x,const PMReal & y,uint32 numGlyphs,const int32 * glyphArray,const float * widths, const float * yoffsets = nil, TextGraphicsFlags graphicsflags = kFillText, bool16 verticalGlyphs = kFalse, bool16 wmodePositioning = kFalse, uint32 numChars = 0, const textchar * text = nil, K2Vector< OneOTFeature > * otFeatureArray = nil)
Example:grPort->xshow(ix + 2, iy + fCellHeight - 2, 0, glyphArray, widths, offset, IGraphicsPort::TextGraphicsFlags::kClipText, kFalse, kFalse, 1, s.GrabUTF16Buffer(nil), nil); //not working
Please help me on this.
Thanks,
Yogita
