octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bounds on position for text()


From: Michael D Godfrey
Subject: Re: bounds on position for text()
Date: Wed, 09 Feb 2011 14:21:49 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 02/09/2011 02:17 PM, John W. Eaton wrote:
On  9-Feb-2011, Michael D Godfrey wrote:

| On 02/09/2011 02:00 PM, bpabbott wrote:
| 
|     It just occurred to me that all we need to do is ..
| 
|     set (0, "defaulttextclipping", "off")
| 
|     Can that be done before ~/.octaverc is run?
| 
|     Ben
| 
| 
| 
| VERY good. That works when I put it in my .octaverc file.   There should be
| someplace
| where that can be compiled in.

How about the following change:

diff --git a/src/graphics.h.in b/src/graphics.h.in
--- a/src/graphics.h.in
+++ b/src/graphics.h.in
@@ -3737,6 +3737,7 @@
   text (const graphics_handle& mh, const graphics_handle& p)
     : base_graphics_object (), xproperties (mh, p)
   {
+    xproperties.set_clipping ("off");
     xproperties.override_defaults (*this);
   }
 
This will make the default value of the clipping property for text
objects "off", will still allow

  set (0, 'defaulttextclipping', 'on')

to set the default to 'on', but will not add anything to the structure
displayed by

  get (0, 'default')

as would happen if we found a place to insert

  set (0, 'defaulttextclipping', 'off')

prior to executing the startup files.

jwe
Sounds exactly right to me :-)

Michael

reply via email to

[Prev in Thread] Current Thread [Next in Thread]