Hello all, I've been using OpenSCAD for about a year and new to the list.
Hoping someone can help with the text command and unicode characters.
I'm trying to insert an "upwards black arrow" (unicode \u2B06) symbol but
this code always gives the generic rectangle in OpenSCAD. Tried different
fonts, on OSX Sierra and Windows 7, no difference. If I use another
program (LibreOffice Writer for example) and type the code in manually, it
works, so the installed fonts seem to have this glyph. Oddly "black
up-pointing triangle" (\u25B2) works but not "upwards black arrow."
Example code:
labelSize = 4;
// this works:
text("\u25B2", font="Arial:style=Regular", direction="ltr",
halign="center", valign="center", size=labelSize);
//this doesn't
text("\u2B06", font="Arial:style=Regular", direction="ltr",
halign="center", valign="center", size=labelSize);
Any ideas?
Thanks, Russell
On 07/10/2017 06:18 PM, Russell Salerno wrote:
I'm trying to insert an "upwards black arrow" (unicode \u2B06) symbol but
this code always gives the generic rectangle in OpenSCAD.
Programs like LibreOffice use automatic glyph substitution to fetch missing
glyphs from other fonts. OpenSCAD does not do that but really just uses the
font that is reported by font-config.
On Linux, I don't get the upwards arrow with the default font either, but
gucharmap reports it in "DejaVu Sans" which then also works in OpenSCAD.
ciao,
Torsten.
Thanks Torsten. On the Mac I found one in "GungSeo." Much appreciated!
On Mon, Jul 10, 2017 at 1:19 PM, Torsten Paul Torsten.Paul@gmx.de wrote:
On 07/10/2017 06:18 PM, Russell Salerno wrote:
I'm trying to insert an "upwards black arrow" (unicode \u2B06) symbol but
this code always gives the generic rectangle in OpenSCAD.
Programs like LibreOffice use automatic glyph substitution to fetch missing
glyphs from other fonts. OpenSCAD does not do that but really just uses the
font that is reported by font-config.
On Linux, I don't get the upwards arrow with the default font either, but
gucharmap reports it in "DejaVu Sans" which then also works in OpenSCAD.
ciao,
Torsten.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org