Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34181
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2017-10-24 10:58 -0700 |
| References | <5964102f-f51f-4d54-8a22-90b57523fcc2@googlegroups.com> <cceb9f51-ce80-4587-a264-80ea3599c9f7@googlegroups.com> |
| Message-ID | <8a07e5fc-73cf-4b05-ba78-eac142ab092b@googlegroups.com> (permalink) |
| Subject | Re: CTX filltext "positioning" |
| From | jonas.thornvall@gmail.com |
Den tisdag 24 oktober 2017 kl. 19:46:39 UTC+2 skrev jonas.t...@gmail.com: > Den tisdag 24 oktober 2017 kl. 19:33:31 UTC+2 skrev jonas.t...@gmail.com: > > Is there a generic way to get the correct offset positioning doing filltext by character by character? > > > > Since javascript is able to do it when writing out filltext strings on canvas, one would think it would be possible to get the position but there probably is no such attribute. > > > > > > I wonder since i echo out the characters as i write them to keylistener, i try make a command driven app, where you also can change interface featurs like font etc. > > > > But i do not know if there is a way to get the offset for the font in use? > > I rephrase that can you get CTX filltext endposition? I guess i go with the ugly way paint over rectangle and buffer up next character ;), time after time.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CTX filltext "positioning" jonas.thornvall@gmail.com - 2017-10-24 10:33 -0700
Re: CTX filltext "positioning" jonas.thornvall@gmail.com - 2017-10-24 10:46 -0700
Re: CTX filltext "positioning" jonas.thornvall@gmail.com - 2017-10-24 10:58 -0700
Re: CTX filltext "positioning" "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-10-24 11:00 -0700
Re: CTX filltext "positioning" "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-10-24 10:56 -0700
Re: CTX filltext "positioning" jonas.thornvall@gmail.com - 2017-10-24 11:00 -0700
csiph-web