Bug 690652 - VisualBrush.Visual with Glyph fill
Summary: VisualBrush.Visual with Glyph fill
Status: NOTIFIED FIXED
Alias: None
Product: GhostXPS
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: PC Windows XP
: P2 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 05:06 UTC by norbert.janssen
Modified: 2009-10-05 23:28 UTC (History)
0 users

See Also:
Customer: 661
Word Size: ---


Attachments
ResourceDictionary.xps (51.86 KB, application/octet-stream)
2009-07-24 05:07 UTC, norbert.janssen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description norbert.janssen 2009-07-24 05:06:28 UTC
When sending attached testfile ResourceDictionary.xps the last rectangle should
be filled with a 'E' (using a glyph as fill in a VisualBrush.Visual).
The rectangle however is not visible (second page shows what is expected).
It looks like the pattern is not correctly created (i.e. not using the 'E' as tile).
Comment 1 norbert.janssen 2009-07-24 05:07:41 UTC
Created attachment 5240 [details]
ResourceDictionary.xps

xps testfile (second page shows expected output). 'E' filled box is missing on
1th page.
Comment 2 Ray Johnston 2009-07-24 08:30:25 UTC
Setting customer priority.
Comment 3 Masaki Ushizaka 2009-08-14 03:16:25 UTC
Reproduced with ghostpdl r9973 + gs r9980 on Mac OS X.
During execution, gxps made some complaints.

$ xps/obj/gxps ResourceDictionary.xps 
+ ../xps/xpscolor.c:178: xps_parse_color(): cannot parse color ({StaticResource Fill2})

+ ../xps/xpscolor.c:178: xps_parse_color(): cannot parse color ({StaticResource Fill1})

+ ../xps/xpscolor.c:178: xps_parse_color(): cannot parse color ({StaticResource Fill1})

+ ../xps/xpscolor.c:178: xps_parse_color(): cannot parse color ({StaticResource Fill})

xps: page /Documents/1/Pages/1.fpage has transparency
+ ../xps/xpsglyphs.c:577: xps_parse_glyphs(): cannot find font resource part 
'/Documents/1/Pages/f250f83a-158c-4a2b-93ab-213c7e7bb5b6.ODTTF'
End of page 1, press <enter> to continue.

xps: page /Documents/1/Pages/2.fpage does not have transparency
GPL Ghostscript SVN PRE-RELEASE 8.71: Some glyphs of the font ArialMT requires a patented True Type 
interpreter.
End of page 2, press <enter> to continue.

$ 
Comment 4 norbert.janssen 2009-08-18 01:24:11 UTC
The complaints come from the function xps_parse_color() being used during
determining if a color is transparant (i.e. it decodes the color into 4 bytes,
highest byte is then checked for being < 0xff (transparancy).
During processing of the page the StaticResource is handled correctly.
Comment 5 Tor Andersson 2009-09-01 09:26:09 UTC
The "cannot parse color {StaticResource}" warnings during analysis are irrelevant when scanning for 
transparency; the resource dictionary is scanned separately and any transparency in referenced resources 
is going to be found there.
Comment 6 norbert.janssen 2009-09-02 06:51:08 UTC
Note that the problem (comment #1) is still not fixed. The 'warning' messages as
mentioned in comment #3 have no priority.
Comment 7 Tor Andersson 2009-09-24 08:42:18 UTC
+ ../xps/xpsglyphs.c:577: xps_parse_glyphs(): cannot find font resource part 
'/Documents/1/Pages/f250f83a-158c-4a2b-93ab-213c7e7bb5b6.ODTTF'

It looks like we're using the wrong path for resolving relative paths in this instance,
where the font is being referenced from an external resource dictionary.
Comment 8 Tor Andersson 2009-10-01 08:06:12 UTC
r10107: Thread base_uri argument to fixed page parsing functions so that resources specified with relative 
paths can be resolved in the right context.