qooxdoo SVG text ignoring most parameters

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

qooxdoo SVG text ignoring most parameters

Kenneth Tilton-3
I just started playing with the qooxdoo SVG contrib and so far everything looks great.

My first hiccup came with the svg.text.Text element. The element appears with the right text and in the right position and the font color matches the fill color (not exactly what I expected) but none of the other parameters seem to be being honored: font size, weight, family, style, stretch.

This, btw, reminds me of what happened when I tried just putting SVG in a normal index.html as a baby step: it actually worked except the text came out un-parameterized. I then went with the index.html from the actual example which had the necessary namespacing (sorry if that is not quite right) and then the text got rendered according to the parameters.

I tried doing something in the playground -- http://tiny.cc/0m48rx -- but of course the SVG contrib is not present so it just dies on svg being null.

Q1: is there a way to load the SVG contrib in the playground?
Q2: does anyone have a working example of svg.text.Text?
Q3: does anyone see anything wrong with my example? FWIW, I did get all the shapes to work.

Cheers, Ken

ps. I am loading SVG dynamically from the contrib library so should have the latest/greatest. Otherwise I am on version 4.0.1 and building a desktop application.

--
Kenneth Tilton
54 Isle of Venice Dr
Fort Lauderdale, FL 33301


"In a class by itself." -Macworld



------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qooxdoo SVG text ignoring most parameters

Sanne Peters
Hi Kenneth,

I happen to know the person who developed this contrib (a former colleague) and most likely he will not be answering your question. He moved on to greener pastures and is not really involved in Qooxdoo anymore.

I did use the contrib a little bit to create a widget containing an empty svg element. From there I filled in the svg using d3.js (http://www.d3js.org/). Personally I think this is easier way to go, because d3 stays close to the javascript SVG API, yet abstracting away the difficult parts. Personally I think it is a nice complementary tool set to qooxdoo.

If you have any questions concerning using d3 in Qooxdoo or d3 in general, just ask. I have been using it for 2.5 years now and its been a blast!

kind regards,

Sanne

On 10/01/15 15:54, Kenneth Tilton wrote:
I just started playing with the qooxdoo SVG contrib and so far everything looks great.

My first hiccup came with the svg.text.Text element. The element appears with the right text and in the right position and the font color matches the fill color (not exactly what I expected) but none of the other parameters seem to be being honored: font size, weight, family, style, stretch.

This, btw, reminds me of what happened when I tried just putting SVG in a normal index.html as a baby step: it actually worked except the text came out un-parameterized. I then went with the index.html from the actual example which had the necessary namespacing (sorry if that is not quite right) and then the text got rendered according to the parameters.

I tried doing something in the playground -- http://tiny.cc/0m48rx -- but of course the SVG contrib is not present so it just dies on svg being null.

Q1: is there a way to load the SVG contrib in the playground?
Q2: does anyone have a working example of svg.text.Text?
Q3: does anyone see anything wrong with my example? FWIW, I did get all the shapes to work.

Cheers, Ken

ps. I am loading SVG dynamically from the contrib library so should have the latest/greatest. Otherwise I am on version 4.0.1 and building a desktop application.

--
Kenneth Tilton
54 Isle of Venice Dr
Fort Lauderdale, FL 33301


"In a class by itself." -Macworld




------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net


_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
vanity: www.gigenet.com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel