This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 174231 - Character exportation is not correct
Summary: Character exportation is not correct
Status: RESOLVED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-09 14:04 UTC by pbenes
Modified: 2010-02-10 02:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (194.62 KB, application/octet-stream)
2009-10-09 14:09 UTC, pbenes
Details
fxz file (764 bytes, text/plain)
2009-10-09 14:09 UTC, pbenes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pbenes 2009-10-09 14:04:43 UTC
moved from http://javafx-jira.kenai.com/browse/RT-4728

Open simpleText2.fxz file

open the file in viewer,
now open the same file in netbeans , you will notice that some character are exported incorrect.

See screen shot

Pavel Benes added a comment - May, 19 2009 08:17 AM
Decreasing priority since it affects only some characters and appears only in development tool; runtime environment
works fine.

Pavel Benes added a comment - May, 19 2009 08:18 AM
Fabi, please attach the fxz sample file that gives you the problem. Thanks.

fabiola Rios added a comment - May, 21 2009 12:22 PM
FXZ file attached

Andrey Korostelev added a comment - Jun, 2 2009 02:17 PM
This problem cannon be related to NetBeans FXD composer only.
In "JavaFX Export Options" dialog select 'Show Preview' and deselect 'Rasterize Image' checkbox - preview will be the
same as the result shown in NB FXD Composer.

And it can't be shown in another way in runtime, because text line that in PSD file is formatted with several different
fonts, in generated fxd file will have only one font specified for the whole line (the first that was mention in PSD).
e.g.: on attached screenshot ps_to_fx_fonts_export there is a text line with four fonts specified (Arial is the first).
In generated FX it is text with font "Arial" and content "HOLA; \n\n\nHELLO: \n\n\nhi*();\n\n\nPro("NEW")\n\n\n"

Pavel Benes added a comment - Oct, 8 2009 01:01 PM
I have verified that the file is displayed correctly in the ViewerFX with the JavaFX SDK #118. So the issue is no longer
applicable or is related to FXDComposer. Changing as FXDComposer bug.
Comment 1 pbenes 2009-10-09 14:09:07 UTC
Created attachment 89187 [details]
screenshot
Comment 2 pbenes 2009-10-09 14:09:29 UTC
Created attachment 89188 [details]
fxz file
Comment 3 pbenes 2009-10-09 14:11:14 UTC
Please verify that the quotes are displayed correctly in FXDComposer. The problem with lost fonts will be tracked in
original JIRA issue.
Comment 4 Andrew Korostelev 2009-11-02 11:18:15 UTC
Attached simpleText2.fxz is displayed in NetBeans as expected.

Quotes view depends on NetBeans project encoding.
By default it is ok - FXD files are generated in unicode and default project encoding is UTF-8.
If project encoding is changed, quotes are displayed incorrectly. 
But approach to selecting view/save fxd files encoding is tracked in issue 174081.