s[sz_]:="\!\(\*StyleBox[\"\\\"\:1234\\\"\", "<>ToString[sz]<>", Rule[FontFamily, \"DejaVu Sans\"], Rule[FontWeight, Plain], Rule[StripOnInput, False]]\)\!\(\*StyleBox[\"\\\"\:2245\\\"\", "<>ToString[sz]<>", Rule[FontFamily, \"FjallaOne\"], Rule[FontWeight, Plain], Rule[StripOnInput, False]]\)"

then s[1100] evaluate with no problem. However s[1200] makes the frontend allocate 100% RAM and and 10000 GDIs. I guess that's reasonable since the latter character doesn't fit within a line, so it keeps newlining hoping that the next will be sufficiently wide.

However, the problem remains when writing Pane[s[1200], {10000, 10000}]. Why does the proble persist even when making the linewidth sufficiently big? Also with Pane I need to known the required line width beforehand.

What is an alternative to
Rasterize[Pane[s[1200], {10000, 10000}], "Image"]
that doesn't require guessing the size and doesn't need 10000 GDIs?

My max resolution is 1366x768. I guess the problem won't happen with full HD.

  • $\begingroup$ At least in version 11.3 for macOS, it works without any problems. $\endgroup$ – Henrik Schumacher Aug 6 '18 at 6:36
  • $\begingroup$ Works fine with Windows 10 and MM11.3. tried up to s[3000] $\endgroup$ – Lou Aug 7 '18 at 8:40

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.