Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #34181

Re: CTX filltext "positioning"

X-Received by 10.36.3.195 with SMTP id e186mr9009986ite.36.1508867890372; Tue, 24 Oct 2017 10:58:10 -0700 (PDT)
X-Received by 10.157.23.167 with SMTP id j36mr636860otj.7.1508867890328; Tue, 24 Oct 2017 10:58:10 -0700 (PDT)
Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!k70no5018276itk.0!news-out.google.com!p6ni406itp.0!nntp.google.com!k70no5018272itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.javascript
Date Tue, 24 Oct 2017 10:58:10 -0700 (PDT)
In-Reply-To <cceb9f51-ce80-4587-a264-80ea3599c9f7@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=84.217.164.78; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host 84.217.164.78
References <5964102f-f51f-4d54-8a22-90b57523fcc2@googlegroups.com> <cceb9f51-ce80-4587-a264-80ea3599c9f7@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <8a07e5fc-73cf-4b05-ba78-eac142ab092b@googlegroups.com> (permalink)
Subject Re: CTX filltext "positioning"
From jonas.thornvall@gmail.com
Injection-Date Tue, 24 Oct 2017 17:58:10 +0000
Content-Type text/plain; charset="UTF-8"
Lines 13
Xref csiph.com comp.lang.javascript:34181

Show key headers only | View raw


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


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