I think, line numbers are likely displayed in another canvas.
The current implementation of text% does not support advanced font
features, the line height therefore is always the same. Displaying the line
numbers just consists of a bit of arithmetic.

On Thu, Mar 9, 2017 at 8:31 AM, 武晓宇 <guluguluc...@gmail.com> wrote:

>   I want to implement a text% object. And display the line number when
> string is inserted the text/canvas area.
>   Like the DrRacket IDE in "show line number" mode.
>   I read the source code of DrRacket but do not find the answer. Could
> anyone give a hand?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to