You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bitmap% object must be supplied at initialization or installed into a bitmap DC using set-bitmap before any other method of the DC is called, except get-text-extent, get-char-height, or get-char-width. If any other bitmap-dc% method is called before a bitmap is selected, the method call is ignored.
After trying to patch this locally I was able to narrow it down it a little further. I took out the check-ok, which of course got rid of the error but led to some unsatisfactory results.
It looks like what I'm running into is that the cr used here
Hi! 👋
Found an inconsistency with current behavior and the docs, thought it was worth making an issue.
Per the documentation at https://docs.racket-lang.org/draw/bitmap-dc_.html
Also in the docs for
get-text-extent
However, when I try:
I get an error:
Which probably comes from here:
draw/draw-lib/racket/draw/private/dc.rkt
Line 1363 in 01e00ba
The other two methods, get-char-width and get-char-height work fine, its just this one :/
I'm using Racket v8.4 on a MacBook Pro (2019).
The text was updated successfully, but these errors were encountered: