2
$\begingroup$

This code works

BoundaryDiscretizeGraphics[Text@"\[WolframLanguageLogoCircle]\[WolframLanguageLogo]", _Text]

wolfs

But for more exotic characters, it produces the null rectangle in whatever font is internally used

BoundaryDiscretizeGraphics[Text@"व", _Text]

I've tried

BoundaryDiscretizeGraphics[Style[Text@"व", FontFamily -> "Times"], _Text]

but the function seems to ignore the Style wrapper. It's a kernel function, so I don't know how to probe it.

I'm aware of other methods to get the outline (Export Import tricks), but BoundaryDiscretizeGraphics would be more convenient.

$\endgroup$
5
  • $\begingroup$ Work on Win 11, mma 13.1 version. t = Text[Style["व", FontFamily -> "Times", 15]]; BoundaryDiscretizeGraphics[t, _Text, MaxCellMeasure -> 0.001] $\endgroup$
    – cvgmt
    Commented Sep 7, 2022 at 3:04
  • $\begingroup$ Currently on a Mac with 12.1, would be curious if this is a version issue or an OS/font issue. $\endgroup$
    – Adam
    Commented Sep 7, 2022 at 3:06
  • $\begingroup$ Works with v12.2 through 13.1 $\endgroup$
    – Bob Hanlon
    Commented Sep 7, 2022 at 3:16
  • $\begingroup$ On v12.2.0 Win7-x64 it draws a rectangle without the cross inside it. $\endgroup$
    – Syed
    Commented Sep 7, 2022 at 6:14
  • 1
    $\begingroup$ It is interesting that BoundaryDiscretizeGraphics[Text@"\[WolframLanguageLogoCircle]\[WolframLanguageLogo]", _Text] doesn't work properly with Mathematica 13.1.0 and 12.3.1 on Windows 10 x64, while BoundaryDiscretizeGraphics[Text@"व", _Text] works as expected: screenshot (the eye of the wolf is missing for \[WolframLanguageLogoCircle]). $\endgroup$ Commented Sep 7, 2022 at 11:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.