<div dir="ltr"><div>Hi Robert,</div><div><br></div><div>Thank you for your answer.</div><div><br></div><div>I couldn't find <span style="font-family:monospace,monospace">GlyphQuads::_coords</span>, parhaps you meant <span style="font-family:monospace,monospace">TextBase::_coords</span>? If that's the case, is each character represented by a single element (<span style="font-family:monospace,monospace">Vec3</span>) in the <span style="font-family:monospace,monospace">TextBase::_coords</span> vector? (maybe the coordinates of the top-left corner?)</div><div><br></div><div>Regarding the <span style="font-family:monospace,monospace">Text::CharacterSize</span>, I understand you were referring to <span style="font-family:monospace,monospace">TextBase::getCharacterHeight</span> (as the height is what it's actually set by the <span style="font-family:monospace,monospace">TestBase::setCharacterSize</span> function). Is <span style="font-family:monospace,monospace">TextBase::getCharacterHeight</span> function equivalent to <span style="font-family:monospace,monospace">Glyph::getHeight</span> function? If not, what are the differences?</div><div><br></div><div>If I've understood correctly, I should be able to obtain the line number for a given glyph<span style="font-family:monospace,monospace"> i </span>just by <span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">dividing it's vertical coordinate </font>(*_coords)[i].y()<font face="arial,helvetica,sans-serif"> by the character/glyph height </font>_quads->_glyphs[i]->getHeight<font face="arial,helvetica,sans-serif">.</font></span> Is this correct?<span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"><font face="Arial, Helvetica, sans-serif">Thank you!,</font></span></div><div><span style="font-family:monospace,monospace"><font face="Arial, Helvetica, sans-serif">Ferran</font><br></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 25 Oct 2018 at 10:06, Robert Osfield <<a href="mailto:robert.osfield@gmail.com">robert.osfield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ferran,<br><br><div class="gmail_quote"><div dir="ltr">On Wed, 24 Oct 2018 at 18:58, Ferran Pallarès <<a href="mailto:pallares.ferran@gmail.com" target="_blank">pallares.ferran@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Any hint on how I could achieve this in the latest release?<br></div></div></div></div></blockquote><div><br></div><div>It should be possible to use GlyphQuads::_coords to work out where the glyphs are.  They will be aligned on the XY plane, and the Text::CharacterSize should enable you to work out the line number.  I don't know the exact way to do it, but this is the direction I'd look in.<br></div><div><br></div><div>Robert.<br></div><div> </div></div></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>