nanogui: Thread: GRText and the current cursor position.


[<<] [<] Page 1 of 1 [>] [>>]
Subject: GRText and the current cursor position.
From: David Siebert ####@####.####
Date: 5 Aug 2007 23:46:52 +0100
Message-Id: <46B65331.5030507@aretoo.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can you quickly find out where a string that GrText renders ends?
I could alway do a GrGetGcTextsize but that takes to much time on my
system. What I want to do is render the string and find out where it
ends in one fast operation.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBRrZTMeLnn4qAcbUGAQLNqgf9HzJHp1TJSxn1QGK/SwKaAxCJGjCZFefF
9W3cN4XYPJO3bzpBgTCuWXNTPIZSQ+MMR/naTwPte87VNjwGrRbnv21xJst/ZciP
Yk1Ugip4lBLxHmT/eQNArBCniW94PLiOgBAPAmnIkMkAGQYT9JmxC0syv7zL77GJ
nyIot5DzpuLTePj0cenfq4p7nX6vfr1EeVHyLNOijWNjDU0D+eCRx9wF0NJLEAyX
NLToGeGEM+hmvlTuHHs7iz5BIO1opzmuLQg21y46n/Vw6pA7u5vu2W6o57KmKAu5
a56Us6Ho7CnIzxMOIFIF7agF2KQIxOiEHSohzqsGs0xtTTPn+P7bLQ==
=u9nN
-----END PGP SIGNATURE-----
Subject: Re: GRText and the current cursor position.
From: "Aaron J. Grier" ####@####.####
Date: 6 Aug 2007 18:17:28 +0100
Message-Id: <20070806171722.GZ22036@mordor.unix.fryenet>

On Sun, Aug 05, 2007 at 06:46:09PM -0400, David Siebert wrote:
> Can you quickly find out where a string that GrText renders ends?  I
> could alway do a GrGetGcTextsize but that takes to much time on my
> system. What I want to do is render the string and find out where it
> ends in one fast operation.

cheat, and use a monospace font?  (:

better to figure out why GrGetGcTextsize() is taking excessive time.
are you able to profile it?

-- 
  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  ####@####.####
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.