Oops, replace FONT-SIZE with whatever size font you want... sorry, I pasted that from code in something I'm working on!<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 3:02 PM, Clement Erik Ferguson <span dir="ltr"><<a href="mailto:clementraphael@gmail.com" target="_blank">clementraphael@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Now I'm experiencing the same problem in Ubuntu 12.10. No symbol fonts render when using text/font; I only get the latin text equivalent. I tried this using the Dingbats font built into Ubuntu along with custom symbol fonts I had downloaded. Both Dingbats and the other symbol fonts I downloaded work fine in other programs.<br>
<br>The system where this did work correctly was an Ubuntu 12.04 machine (running under a VM). The Ubuntu 12.10 machine I'm using now is a fresh OS installation using the 64-bit binary downloaded from the Racket site.<br>
<br>Is anyone else using Ubuntu 12.10? Can you try running the following code?<br><br>(require 2htdp/image)<br>(text/font "test" FONT-SIZE "black" "Dingbats" 'symbol 'normal 'normal #f)<br>
<br>This should render some triangles and a snowflake, not "test".<br><br>Thanks!<div class="HOEnZb"><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 1:54 PM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The text/font function ultimately just calls find-or-create-font with<br>
the font details and then draw-string on the dc<%> with the string, so<br>
I guess that this is either a problem at that level of the Racket GUI<br>
system, or something that is just different about how Windows works<br>
from other platforms. (Sorry I don't know the right answer here.)<br>
<br>
Robby<br>
<div><div><br>
On Wed, Nov 21, 2012 at 12:29 PM, Clement Erik Ferguson<br>
<<a href="mailto:clementraphael@gmail.com" target="_blank">clementraphael@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I'm a newcomer to Racket and I ran into a problem with the text/font<br>
> function in 2htdp/image. stamourv on #racket helped me diagnose this, and it<br>
> seems to be a problem confined to Windows XP. When using text/font with a<br>
> symbol font like Wingdings or Symbol (standard symbol fonts included with<br>
> Windows) the character is not rendered. Instead, I get whatever the<br>
> equivalent Roman character would be.<br>
><br>
> For instance:<br>
><br>
> (define testingfont<br>
> (text/font "012abc" 36 "black"<br>
> "Wingdings" 'default 'normal 'normal #f))<br>
><br>
> If I then type testingfont into the interactions window, instead of<br>
> rendering a series of symbols I get the input string 012abc instead. I also<br>
> tried using 'symbol instead of 'default. We tried the same code on Debian<br>
> (stamourv) and Ubuntu (me) and it worked fine on those platforms.<br>
><br>
> I'm running Windows XP 32-bit, and I am using Racket 5.3.1.<br>
><br>
> Thanks!<br>
><br>
</div></div>> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>