<div dir="ltr">Robert,<div><br></div><div>I've been working with your new osgText implementation. The improvement in quality is great, especially with outlines and SDF!</div><div><br></div><div>I did notice something interesting however. The GREYSALE and SDF shader techniques yield different extents when you call Text::getBoundingBox(). Since I use<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> the bounding box to align elements on the screen, this became immediately obvious when switching to the new osgText code.</span></div><div><br></div><div>Here is a simple program you can use to validate: <a href="https://pastebin.com/WhFsQSMT">https://pastebin.com/WhFsQSMT</a></div><div><br></div><div>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">In the "osgtext" example, you can also see a wider margin in the alignment box when using SDF vs. GREYSCALE.</span>
<br></div><div><br></div><div>The SDF technique uses a non-zero glyph texel margin, which I believe accounts for this difference. That got me wondering whether the various AlignmentType techniques ought to be compensating for this extra margin as well. </div><div><br></div><div>Your thoughts? Should the two techniques be drawing at the same location?</div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div>
</div></div>