<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Neil,<br><br>Thanks for the help, the report is submitted.<br><br>Deren<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Apr 25, 2014 at 9:12 PM, Neil Toronto <span dir="ltr"><<a href="mailto:neil.toronto@gmail.com" target="_blank">neil.toronto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you submit a bug report from DrRacket? (Use "Submit Bug Report..." in the Help menu.) That way, we'll have your system information automatically attached to the PR in the bug database. Make the title something like "Drawing rotated unicode text breaks device contexts on Windows 7."<br>
<br>
Thanks for being patient. I'm sure Matthew will push a fix very soon. ;)<br>
<br>
Neil ⊥<div><div class="h5"><br>
<br>
On 04/25/2014 06:48 PM, Deren Dohoda wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi Neil,<br>
<br>
I have the 32-bit version installed on my Win7 machine at home, too. I<br>
was able to reproduce my own problem here as well.<br>
<br>
When I run your example, the first plot looks like I'd expect. The<br>
second one does not have the circle. If I remove the \circ from the<br>
text-extent it doesn't change anything. If I remove \circ from the<br>
text-extent and the draw-text, then the circle appears. If I remove<br>
\circ from only draw-text (leaving it in text-extent), the circle also<br>
appears. I did take a screenshot if you want to see it. Otherwise, the<br>
numbers are<br>
<br>
39.0<br>
13.5<br>
2.5<br>
0.0<br>
31.0<br>
13.5<br>
2.5<br>
0.0<br>
<br>
I then uninstalled the 32-bit version, downloaded and installed the<br>
x86_64 version, and reran your example. The same thing happened again.<br>
<br>
Something maybe helpful: when the \circ is in the string for draw-text<br>
the text is NOT rotated 90 degrees counter-clockwise. When the \circ is<br>
removed, the text is drawn rotated 90 degrees counter-clockwise.<br>
<br>
...Ah, I see Kieron has uploaded an image to show. That is exactly what<br>
I see.<br>
<br>
Deren<br>
<br>
<br>
On Fri, Apr 25, 2014 at 6:39 PM, Neil Toronto <<a href="mailto:neil.toronto@gmail.com" target="_blank">neil.toronto@gmail.com</a><br></div></div><div><div class="h5">
<mailto:<a href="mailto:neil.toronto@gmail.com" target="_blank">neil.toronto@gmail.com</a><u></u>>> wrote:<br>
<br>
I can't replicate this problem on my machine, so I'll need more<br>
information. Can you run the following program and reply with what<br>
you see?<br>
<br>
<br>
#lang racket<br>
<br>
(require racket/draw plot)<br>
<br>
(plot (function sin #e1e-157 #e1e-156))<br>
<br>
(define bm (make-bitmap 400 400))<br>
(define dc (make-object bitmap-dc% bm))<br>
(send dc set-smoothing 'smoothed)<br>
(send dc set-scale 2 2)<br>
(send dc set-font (make-font #:size (plot-font-size)<br>
#:family (plot-font-family)<br>
#:size-in-pixels? #t))<br>
(send dc get-text-extent "X (⇑∘C)" #f #t 0)<br>
(send dc draw-text "X (⇑∘C)" 80 180 #t 0 0)<br>
(send dc get-text-extent "Y (∘C)" #f #t 0)<br>
(send dc draw-text "Y (∘C)" 10 120 #t 0 (/ pi 2))<br>
(send dc draw-ellipse 30 30 140 140)<br>
bm<br>
<br>
<br>
It should produce a simple plot with tick labels on both axes with<br>
the superscripted exponent "-157", a collection of numbers that<br>
looks something like this:<br>
<br>
110.0<br>
13.5<br>
3.0<br>
0.0<br>
34.0<br>
13.5<br>
3.0<br>
0.0<br>
<br>
and a bitmap with a circle and the X and Y axis labels you expect,<br>
with approximately the placement and orientation you expect them on<br>
a plot (though bigger).<br>
<br>
Neil ⊥<br>
<br>
<br>
On 04/25/2014 03:39 PM, Deren Dohoda wrote:<br>
<br>
Short story: put a \circ in the y-label and plotting fails?<br>
<br>
Racket 6.0 32-bit on 64-bit Windows 7. Using DrRacket. The plot<br>
frame is<br>
generated, the plot title and x-label appear, the tick marks on<br>
the axes<br>
appear, but the y-label doesn't appear and neither (points ...) nor<br>
(function ...) appear.<br>
<br>
Example code (hopefully the extra characters come through email<br>
correctly):<br>
<br>
#lang racket<br>
(require plot)<br>
<br>
(define (make-p title y-label)<br>
(plot (function (λ(x) x))<br>
#:x-min 0 #:x-max 50<br>
#:y-min 0 #:y-max 50<br>
#:x-label "X (⇑∘C)"<br>
#:y-label y-label<br>
#:title title))<br>
<br>
(define-values (works doesnt-work)<br>
(values (make-p "Works (⇓∘C)" "Y (C)")<br>
(make-p "Doesn't Work (⇓∘C)" "Y (∘C)")))<br>
<br>
works<br>
doesnt-work<br>
;;;;;;;;;;;;;;;;;;;;;<br>
<br>
<br>
It's not just arbitrary character substitutions, for instance<br>
all the<br>
\left|right|up|downarrow don't cause any problems, but<br>
\Down|Up|etc.arrow causes the same problem as \circ. I threw<br>
some in the<br>
title and x-label to show that they didn't cause any failures. I've<br>
attached an image of what appears in case it helps.<br>
<br>
Deren<br>
<br>
<br>
____________________<br>
Racket Users list:<br></div></div>
<a href="http://lists.racket-lang.org/__users" target="_blank">http://lists.racket-lang.org/_<u></u>_users</a><div class=""><br>
<<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/<u></u>users</a>><br>
<br>
<br>
____________________<br>
Racket Users list:<br></div>
<a href="http://lists.racket-lang.org/__users" target="_blank">http://lists.racket-lang.org/_<u></u>_users</a><br>
<<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/<u></u>users</a>><br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>