Thank you for the suggestion, but that didn't work on XP or Ubuntu. Should I submit the issue to Racket's github? I'm new to programming and don't know what the protocol is for things like this...<br><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 4:32 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Oh, I see. I'm sorry I don't know what is going wrong. Different<br>
versions of cairo/pango could be relevant, possibly.<br>
<br>
I doubt it is going to matter, but if you change the expression on<br>
line 932 in collects/mrlib/image-core.rkt:<br>
<br>
(send dc draw-text (text-string np-atomic-shape)<br>
(real-part p)<br>
(imag-part p)<br>
#f 0 θ)<br>
<br>
by turning the #f into a #t, does that change anything?<br>
<br>
Robby<br>
<br>
<br>
On Fri, Nov 23, 2012 at 2:55 PM, Clement Erik Ferguson<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:clementraphael@gmail.com">clementraphael@gmail.com</a>> wrote:<br>
> I'm sorry, I don't think I've explained the problem I'm having clearly.<br>
><br>
> I have fonts that I'm using that map latin characters to neumes for<br>
> byzantine chant music. So pressing "1" gives me a particular musical symbol,<br>
> and "a" gives me another symbol. I am trying to use text/font to render<br>
> those symbols, so I call it with a "1" but I'm getting a "1" instead of the<br>
> musical symbol on certain platforms. This method works fine on Ubuntu 12.04<br>
> 32bit and a Debian system that another user tested it on (I'm not sure of<br>
> the version info), but it isn't working on Windows XP and on Ubuntu 12.10<br>
> 64bit.<br>
><br>
> If you go to <a href="https://github.com/muraiki/byzscribe" target="_blank">https://github.com/muraiki/byzscribe</a> and scroll down to the<br>
> picture, you can see what the output should look like. On platforms where it<br>
> doesn't work, instead of getting the musical symbols I simply get the<br>
> textual string that should map to those symbols, such as 01a.<br>
><br>
> You can download the font package, which includes a PDF with a character<br>
> table, from here: <a href="http://www.stanthonysmonastery.org/music/ByzMusicFonts.zip" target="_blank">http://www.stanthonysmonastery.org/music/ByzMusicFonts.zip</a><br>
> The character table is EZ-CharacterTables.pdf<br>
><br>
> The other symbol fonts that I've tried work in the same way, although<br>
> instead of musical symbols they have other things like snowflakes and<br>
> shapes. Those aren't the fonts that I need to use, but I wanted to make sure<br>
> that the problem didn't lie in the byzantine chant fonts. On platforms where<br>
> the byzantine chant fonts don't work as expected, no other symbol fonts<br>
> work, either.<br>
><br>
> I'm sorry if this is a bit confusing. Thank you for your help!<br>
><br>
><br>
><br>
> On Fri, Nov 23, 2012 at 3:38 PM, Robby Findler <<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>><br>
> wrote:<br>
>><br>
>> If you want to use, say, α, then you need an actual α in the string, not<br>
>> an "a".<br>
>><br>
>> I don't know how the dingbats work, but certainly that's how it works<br>
>> for characters that are in the unicode character set.<br>
>><br>
>> (You can type those characters by using their LaTeX equivalents and<br>
>> then hitting control-\ or alt-\ (depending on the platform).)<br>
>><br>
>> Robby<br>
>><br>
>> On Fri, Nov 23, 2012 at 2:02 PM, Clement Erik Ferguson<br>
>> <<a href="mailto:clementraphael@gmail.com">clementraphael@gmail.com</a>> wrote:<br>
>> > Now I'm experiencing the same problem in Ubuntu 12.10. No symbol fonts<br>
>> > render when using text/font; I only get the latin text equivalent. I<br>
>> > tried<br>
>> > this using the Dingbats font built into Ubuntu along with custom symbol<br>
>> > fonts I had downloaded. Both Dingbats and the other symbol fonts I<br>
>> > downloaded work fine in other programs.<br>
>> ><br>
>> > The system where this did work correctly was an Ubuntu 12.04 machine<br>
>> > (running under a VM). The Ubuntu 12.10 machine I'm using now is a fresh<br>
>> > OS<br>
>> > 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<br>
>> > code?<br>
>> ><br>
>> > (require 2htdp/image)<br>
>> > (text/font "test" FONT-SIZE "black" "Dingbats" 'symbol 'normal 'normal<br>
>> > #f)<br>
>> ><br>
>> > This should render some triangles and a snowflake, not "test".<br>
>> ><br>
>> > Thanks!<br>
>> ><br>
>> ><br>
>> > On Wed, Nov 21, 2012 at 1:54 PM, Robby Findler<br>
>> > <<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>><br>
>> > wrote:<br>
>> >><br>
>> >> 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>
>> >><br>
>> >> On Wed, Nov 21, 2012 at 12:29 PM, Clement Erik Ferguson<br>
>> >> <<a href="mailto:clementraphael@gmail.com">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,<br>
>> >> > and it<br>
>> >> > seems to be a problem confined to Windows XP. When using text/font<br>
>> >> > with<br>
>> >> > a<br>
>> >> > symbol font like Wingdings or Symbol (standard symbol fonts included<br>
>> >> > 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.<br>
>> >> > I<br>
>> >> > also<br>
>> >> > tried using 'symbol instead of 'default. We tried the same code on<br>
>> >> > 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>
>> >> > ____________________<br>
>> >> > Racket Users list:<br>
>> >> > <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
>> >> ><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>