Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-28 Thread Robby Findler
On Wed, Nov 28, 2012 at 5:42 PM, Clement Erik Ferguson wrote: > Using that dll fixed the problem on Windows XP 32bit! > > Using the 64-bit one on Windows 7 64-bit didn't work, though. > > Also, I was able to test out text/font with a symbol font on OS X 10.8.2, > and it also would not render the s

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-28 Thread Clement Erik Ferguson
Using that dll fixed the problem on Windows XP 32bit! Using the 64-bit one on Windows 7 64-bit didn't work, though. Also, I was able to test out text/font with a symbol font on OS X 10.8.2, and it also would not render the symbol font. I found somebody who had made TeX fonts for byzantine neumes

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-27 Thread Matthew Flatt
At Sat, 24 Nov 2012 10:44:36 -0600, Robby Findler wrote: > On Sat, Nov 24, 2012 at 10:10 AM, Matthew Flatt wrote: > > Unfortunately, patching Pango means compiling it myself for Windows, > > which is a tedious task that I had so far avoided. Maybe it's > > unavoidable, though. > > Does it make se

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-27 Thread Clement Erik Ferguson
I just built Racket under Ubuntu 64-bit but I'm still having the same problem. Like Matthew, I also experienced the font installer crashing on these fonts, so I copied them into /usr/share/fonts/truetype/myfonts and regenerated the font cache. I was then able to use them in LibreOffice Writer. I'm

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-24 Thread Robby Findler
On Sat, Nov 24, 2012 at 10:10 AM, Matthew Flatt wrote: > Unfortunately, patching Pango means compiling it myself for Windows, > which is a tedious task that I had so far avoided. Maybe it's > unavoidable, though. Does it make sense to try to leverage Eli's nightly build setup to automate this tas

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-24 Thread Robby Findler
I see. Sigh. Thanks, Robby On Sat, Nov 24, 2012 at 10:17 AM, Matthew Flatt wrote: > From 2008: > > https://bugzilla.gnome.org/show_bug.cgi?id=533426 > > I think you can find more recent discussion that also goes nowhere. > > At Sat, 24 Nov 2012 10:14:05 -0600, Robby Findler wrote: >> Is it wort

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-24 Thread Matthew Flatt
From 2008: https://bugzilla.gnome.org/show_bug.cgi?id=533426 I think you can find more recent discussion that also goes nowhere. At Sat, 24 Nov 2012 10:14:05 -0600, Robby Findler wrote: > Is it worth raising this point on a pango mailing list and see if what > their take is? > > Robby > > On

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-24 Thread Robby Findler
Is it worth raising this point on a pango mailing list and see if what their take is? Robby On Sat, Nov 24, 2012 at 10:10 AM, Matthew Flatt wrote: > Robby's answer is in principle right: `racket/draw' really wants to > work with Unicode characters, and the right way to access dingbat-like > glyp

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-24 Thread Matthew Flatt
Robby's answer is in principle right: `racket/draw' really wants to work with Unicode characters, and the right way to access dingbat-like glyphs is to use the corresponding Unicode code point. The `racket/draw' library mostly inherits this policy from Pango. Under Windows, Pango ignores "Wingding

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Neil Toronto
To submit a PR, in DrRacket, click on the Help menu, choose "Submit Bug Report...", fill out the form, then click "Submit". It may help Robby and/or Matthew figure out what the problem is if you do this on one of the computers that doesn't render the chants properly. BTW, as a musician, I thin

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Robby Findler
You could submit a PR. I'm the maintainer of the image library and the maintainer of the lower-level libraries that it depends on (which seem to be the ones where there might be a hope of finding a fix) also reads these messages. Robby On Fri, Nov 23, 2012 at 6:37 PM, Clement Erik Ferguson wrote

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
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... On Fri, Nov 23, 2012 at 4:32 PM, Robby Findler wrote: > Oh, I see. I'm sorry I don't know what is g

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Robby Findler
Oh, I see. I'm sorry I don't know what is going wrong. Different versions of cairo/pango could be relevant, possibly. I doubt it is going to matter, but if you change the expression on line 932 in collects/mrlib/image-core.rkt: (send dc draw-text (text-string np-atomic-shape)

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
I'm sorry, I don't think I've explained the problem I'm having clearly. I have fonts that I'm using that map latin characters to neumes for byzantine chant music. So pressing "1" gives me a particular musical symbol, and "a" gives me another symbol. I am trying to use text/font to render those sym

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Robby Findler
If you want to use, say, α, then you need an actual α in the string, not an "a". I don't know how the dingbats work, but certainly that's how it works for characters that are in the unicode character set. (You can type those characters by using their LaTeX equivalents and then hitting control-\ o

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
Oops, replace FONT-SIZE with whatever size font you want... sorry, I pasted that from code in something I'm working on! On Fri, Nov 23, 2012 at 3:02 PM, Clement Erik Ferguson < clementraph...@gmail.com> wrote: > Now I'm experiencing the same problem in Ubuntu 12.10. No symbol fonts > render when

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
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 wor

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-21 Thread Robby Findler
The text/font function ultimately just calls find-or-create-font with the font details and then draw-string on the dc<%> with the string, so I guess that this is either a problem at that level of the Racket GUI system, or something that is just different about how Windows works from other platforms

[racket] text/font not rendering symbol fonts on WinXP

2012-11-21 Thread Clement Erik Ferguson
Hi all, I'm a newcomer to Racket and I ran into a problem with the text/font function in 2htdp/image. stamourv on #racket helped me diagnose this, and it seems to be a problem confined to Windows XP. When using text/font with a symbol font like Wingdings or Symbol (standard symbol fonts included w