OS X Calligraphy

Bug #224290 reported by peepo
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

as per GIMP http://bugzilla.gnome.org/show_bug.cgi?id=152690

OS X X11 xInput now supports pressure and tilt at least for testing.
however this is not working in gimp or inkscape...

http://lists.macosforge.org/mailman/listinfo/xquartz-dev

please join discussion & follow instructions in threads from 23rd April
onwards:

You need to decompress Xquartz-1.4.0-apple4 and install it over /usr/
X11/bin/Xquartz after installing X11-2.2.1_rc1 (this part is very
important. 2.2.0.1 doesn't have the newer libpixman).

$ xinput test 2
motion a[0]=655 a[1]=148 a[2]=0 a[3]=0 a[4]=0
motion a[0]=655 a[1]=148 a[2]=1715037696 a[3]=603932672 a[4]=134156288
motion a[0]=655 a[1]=148 a[2]=1920758400 a[3]=603932672 a[4]=201267200
motion a[0]=655 a[1]=148 a[2]=2071886720 a[3]=637488128 a[4]=268378112

further background:
in inkscape the calligraphy error dialogue no longer appears, but strokes are
transient and not fixed to screen..

Revision history for this message
peepo (j-chetwynd) wrote :

this bug is in respect of pressure and tilt support

Revision history for this message
Martin Andersen (msandersen) wrote :

My understanding is that it is not specifically XInput, it has to do with the GTK folk not telling the X11 for Mac (XQuartz) folk what input they need to make it work. XQuartz actually has some support for pressure and tilt, but it does not seem to work with GTK, on which Inkscape and Gimp rely.

To quote Jeremy Huddleston from the X11 users list:
"It doesn't actually have much to do with XInput. XInput has more to do with direct access to the hardware. We have Quartz between us and the hardware, so it doesn't make sense to actually implement XInput.
Tablet support is partially implemented in 2.3.0, but there are some bugs with it that I can't debug because I don't have a tablet (I loaned mine to Ben, so hopefully he'll be able to take a look at these issues). Additionally, GTK doesn't seem to like the way we send information about pressure, tilt, etc to it, and nobody over in GTKland has responded to our questions about tablets in X11, so we're mostly waiting for a GTK developer to step up and point to what they need from us."

A question of communication in more ways than one, it seems.

I've commented on the GTK bugs here (Tablet support for OSX is broken):
http://bugzilla.gnome.org/show_bug.cgi?id=360958
and here (Xinput support not working for mac):
http://bugzilla.gnome.org/show_bug.cgi?id=152690

Revision history for this message
Jeremy Sequoia (jeremyhu) wrote :

I verified that the tablet support in X11.app works when using gimp running on Linux. The problem isn't that we don't have XInput support for the tablets. It's that the versions of libgdk that you're linkinging against were configured without xinput support. If you add '--with-xinput' to your list of options when you configure gtk2, you should get this to "just work"

Revision history for this message
peepo (j-chetwynd) wrote :

Jeremy, yup that sounds right for linux, XInput has worked on that os for many years.
though the method may have changed with time.

the problem remains with os x, cannot find a prebuilt or regular simple instructions for what is necessary.

eg: http://library.gnome.org/devel/gtk/unstable/gtk-building.html

--with-xinput. Controls whether GTK+ is built with support for the XInput extension. The XInput extension provides an interface to extended input devices such as graphics tablets. When this support is compiled in, specially written GTK+ programs can get access to subpixel positions, multiple simultaneous input devices, and extra "axes" provided by the device such as pressure and tilt information. This is only known to work well on XFree86 systems, though other systems do have this extension.

but does XFree86 include X11, guess not?
where are the gtk build or install instructions for os x? I dont remember installing gtk itself....
will search a little further.

Revision history for this message
peepo (j-chetwynd) wrote :

Jeremy, sorry to be ignorant, but is it possible os x doesn't use gtk?
eg: http://www.gtk.org/download.html
>>Coming soon! We're currently working hard to produce a native gtk framework for Mac OSX.

have no idea where to take this further.
apologies

Revision history for this message
JiHO (jiho) wrote : Re: [Bug 224290] Re: OS X Calligraphy

On 2008-September-04 , at 11:01 , peepo wrote:

> Jeremy, sorry to be ignorant, but is it possible os x doesn't use gtk?
> eg: http://www.gtk.org/download.html
>>> Coming soon! We're currently working hard to produce a native gtk
>>> framework for Mac OSX.
>
> have no idea where to take this further.
> apologies

Inkscape on OS X uses GTK, as it does on other platforms. If you
install Inkscape from the dmg (drag and drop the Inkscape icon), GTK
is contained inside it, so indeed, you never install GTK separately.

When you compile Inkscape however, you need to compile GTK from
MacPorts:
 http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX
and at that step, the configuration option for xinput may be set. The
thing is that most of the OS X related effort in GTK is probably
directed towards having it "native" on OS X, which means that it won't
use X11 anymore. Therefore there is no xinput option (or other X11
specific tuning) in MacPorts right now. Adding one is only a matter of
properly editing the port file:
 sudo port edit gtk2
What we need now for Inkscape is someone stepping up, building
development builds from SVN and compiling GTK with the proper options.
I did that before. I haven't had time for it in months and would be
glad to see someone else do it.

JiHO
---
http://jo.irisson.free.fr/

Revision history for this message
Jeremy Sequoia (jeremyhu) wrote :

MP's gtk has been built with xinput support for a while now... and users have been using gimp and inkscape with tablets successfully... this is probably "fixed" unless you want to keep it open until you make another binary release...

Revision history for this message
peepo (j-chetwynd) wrote :

Jeremy,

could you post instructions and links?
it's been almost a year since I last tried this.

MP's gtk means nothing to me,

regards

Revision history for this message
peepo (j-chetwynd) wrote :

X11 2.3.3 OS-X Requirements
OS-X 10.5.7 or later is required to install this package.

notice this includes xinput 1.4.1
but as 10.5.7 has not been released yet,

I remain confused as to how
"users have been using gimp and inkscape with tablets successfully"

installed the latest Gimp and Inkscape
but wfm they did not...

quite possibly I need to install something, but what?

Revision history for this message
peepo (j-chetwynd) wrote :

Who to kick?

Gimp has had this for a while now...
who is building the .dmgs?
Please could someone ask them to ensure that releases have gtk built with -xinput enabled?

Revision history for this message
su_v (suv-lp) wrote :

As OS X has now updated to 10.5.8 and the newer versions of X11/XQuartz have been installed with the update from Apple:

Do you still see the same issue with a lack of xinput support by X11/XQuartz?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
peepo (j-chetwynd) wrote :

XQuartz has provided pressure sensitivity for many months and works fine see comment #10
inkscape 0.46 file/input devices reports no extended input devices, though the intuos2 tablet is connected and pen being used on latest os x 10.5.8

Revision history for this message
su_v (suv-lp) wrote :

Did you try a recent prerelease build from <http://sourceforge.net/projects/inkscape/files/inkscape/0.47pre1/>?

Revision history for this message
peepo (j-chetwynd) wrote :

wfm

congrats,

dont normally get to mark bugs as fixed.

had there been no code change where is wfm option?

Changed in inkscape:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.