pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandro Martini (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-964) Changes in SVG viewBox attribute causes SVG not to render.
Date Wed, 18 Feb 2015 00:37:11 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325204#comment-14325204
] 

Sandro Martini commented on PIVOT-964:
--------------------------------------

Hi and sorry for the delay ... now I have an eclipse workspace with Pivot-2.0.x sources and
your project.
But when I run FL-Client main application (org.fullthrust.client.Client) on a JDK 7 under
Windows 7, I get this:
[ERROR] Problem reading font data/font/Monkirta Pursuit NC.ttf. Defaulting to Arial.
[DEBUG] EventManager(org.fullthrust.core.events.state.ErrorMsgEvent@7b1c661c)
java.lang.NullPointerException
	at org.fullthrust.client.Options.init(Options.java:38)
	at org.fullthrust.client.Client.startup(Client.java:70)
	at org.apache.pivot.wtk.DesktopApplicationContext$2.run(DesktopApplicationContext.java:666)
because f = Font.getFont("Arial"); in my environment returns null, but changing it using Font.decode
(like in Pivot) it works ... but after this I get another NPE because all data/ folder is
missing from sources, so I have to stop now:
[ERROR] Could not load data/bxml/Window.bxml
Ok, just found the trick to make it work in eclipse: copy your data folder to a new one (mine
is "other") and add it as Linked folder in eclipse project, but probably it would be better
to move it in a near-empty eclipse project with the data folder inside src (or like Maven,
a resources source folder with data/... inside), and make FL-Client dependent on it.
But after this I see that for example here:
window = (Window)bxmlSerializer.readObject(new FileInputStream(new File("data/bxml/Window.bxml")));
you use the base version of that Pivot API but in this case it would be better at least in
my dev env):
window = (Window)bxmlSerializer.readObject(this.getClass(), "/data/bxml/Window.bxml");
and then the same for data/bxml/Login.bxml and ConnectDialog.bxml ...
After this of course ow I get a Connection error to the server (not started) ... but to simplify
my test (I have very few time and still didn't see the error) can I skip this, or can you
set a mock for the connection that i can enable only for my tests ?

I downloaded your projects with git, so tell me when you push some update :-) .



> Changes in SVG viewBox attribute causes SVG not to render.
> ----------------------------------------------------------
>
>                 Key: PIVOT-964
>                 URL: https://issues.apache.org/jira/browse/PIVOT-964
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: Windows 7, Java 1.7, Eclipse, Pivot 2.0.4, svgSalamander
>            Reporter: João Martins
>            Assignee: Sandro Martini
>              Labels: svgSalamander
>             Fix For: 2.1, 2.0.5
>
>         Attachments: TestClient2.java, TestClient3.java
>
>
> We try to display a simple SVG file with a rect of width 2000 and height 1000. This is
done using an ImageView.
> We have two values of viewBox, both of which capture at least part of the rectangle.
For one of them, the rectangle is rendered. For the other, it isn't (but should).
> The exact same scenario, using svgSalamander & Java Swing, works. With Pivot instead
of Swing, it does not.
> Here is a Swing minimal example: http://pastebin.com/i0xJbUTg
> Here is a Pivot minimal example: http://pastebin.com/tpgnVe0c



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message