<div dir="ltr"><div>Thank you, Robert!</div><div><br></div><div>freetype solved it.<br></div><br>On Tuesday, May 19, 2020 at 10:15:25 AM UTC-3, OpenSceneGraph Users wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>Hi Rodrigo,</div><div><br></div><div>From the looks of it you are using the osgText's default font that really is just there as a fallback, it's not intended for normal application usage.  The OSG has support for using true type fronts, this support is provided by the freetype plugin, make sure this is being built (requires the freetype library to be installed) and assign a font to the Text.  See the osgtext example so see how different fonts are set.</div><div><br></div><div>Cheers,</div><div>Robert.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 19 May 2020 at 08:53, OpenSceneGraph Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="d_Jgyyj2AQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@lists.<wbr>openscenegraph.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm creating text objects that lie over the map, indicating the name of some cities. Pure white text was hard to read (the background represents vegetation, so it's colored, but some parts are white). Adding an outline solved that, but on close up, the outline looks pixelated and ugly. Using a drop_shadow also looks fine from a distance, but strange from a small distance, since the black shadow doesn't touch the white text. Is there something I can do to improve the appearance of the outline from close up, or to reduce the distance between the shadow and the text?</div><div><br></div><div>osg::Node* createLabel(const osg::Vec3& pos, float size, const std::string& label, osgText::Text::AxisAlignment axisAlignment)<br>{<br>    osg::Geode* geode = new osg::Geode();<br>    {<br>        osgText::Text* text = new osgText::Text;<br>        geode->addDrawable( text );<br>        text->setPosition(pos);<br>        text->setCharacterSize(size);<br>        text->setAxisAlignment(<wbr>axisAlignment);<br>        text->setAlignment(osgText::<wbr>Text::CENTER_CENTER);<br>        text->setBackdropType(osgText:<wbr>:Text::OUTLINE); // DROP_SHADOW_BOTTOM_RIGHT<br>        text->setBackdropColor(osg::<wbr>Vec4(0.0f, 0.0f, 0.0f, 0.5f));<br>        std::string dest = desaxUTF8( label );<br>        text->setText( dest );<br>    }<br>    return geode;<br>}<br></div><div><br></div><div></div><div>Thanks,</div><div><br></div><div>Rodrigo.</div><div><br></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="d_Jgyyj2AQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@<wbr>googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/82ad1cc1-ec3d-4397-96d3-4bd4dc907c05%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/osg-users/82ad1cc1-ec3d-4397-96d3-4bd4dc907c05%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/osg-users/82ad1cc1-ec3d-4397-96d3-4bd4dc907c05%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">https://groups.google.com/d/<wbr>msgid/osg-users/82ad1cc1-ec3d-<wbr>4397-96d3-4bd4dc907c05%<wbr>40googlegroups.com</a>.<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="d_Jgyyj2AQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</blockquote></div>
</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/a3f52b15-fb8c-4a3d-8064-fcd864a966dc%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/a3f52b15-fb8c-4a3d-8064-fcd864a966dc%40googlegroups.com</a>.<br />