You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/04/18 16:17:01 UTC

DO NOT REPLY [Bug 51076] New: Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

           Summary: Underline and Highlight do not have the correct
                    spacing when PCL is generated for non monospaced fonts
           Product: Fop
           Version: 1.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pcl
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: dorothy.weil@thomsonreuters.com


Created an attachment (id=26893)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26893)
I have attached the pcl with underline issue from linux OS 

While the PCL underlining and highlighting generation works fine when generated
on a windows OS, the same generation in a Linux environment produces
underlining and highlighting that does not account for non monospaced fonts.
Note that other formats such as RTF does produce the correct spacing.  I have
picked up a later version to see if the problem is still happening and it is.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 51076] use of base 14 fonts with text-rendering 'auto' (use native pcl fonts) produces ipd misalignment due to metrics mismatch

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|Other                       |All
                 OS|Linux                       |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #4 from Divakar P <di...@thomsonreuters.com> 2012-04-25 06:46:41 UTC ---
Created attachment 28673
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28673
PCL, FO for Space issue

Please find the attached FO and corresponding PCL, RTF and  PDF documents.

Issue details:
We are getting extra  trailing and leading spaces, when the text is 
Underlined/Bold/Highlighted/Italic and the font-family is like Times New Roman,
Arial etc. (Native fonts).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Glenn Adams <gl...@skynav.com> 2012-04-08 05:10:19 UTC ---
please provide a minimal input FO file that corresponds to the attached PCL
output file; also provide a PDF output file that demonstrates lack of problem

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #11 from Glenn Adams <ga...@apache.org> ---
Created attachment 28794
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28794&action=edit
maximally minimal test FO and output files

this attachment contains a maximally minimal test input file and resulting
output PDF and PCL files (using current dev trunk build); it is clear from this
test that the problem pertains to the handling ipd of a generated inline area,
irrespective of the additional styling applied to that inline

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #7 from Dorothy Weil <do...@thomsonreuters.com> 2012-04-25 12:14:03 UTC ---
Is there a way to remove me from this bug and give ownership to
troy.cleasby@thomsonreuters.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 51076] use of base 14 fonts with text-rendering 'auto' (use native pcl fonts) produces ipd misalignment due to metrics mismatch

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Underline and Highlight do  |use of base 14 fonts with
                   |not have the correct        |text-rendering 'auto' (use
                   |spacing when PCL is         |native pcl fonts) produces
                   |generated for non           |ipd misalignment due to
                   |monospaced fonts            |metrics mismatch

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #3 from Glenn Adams <ga...@apache.org> 2012-04-24 05:38:19 UTC ---
(In reply to comment #2)
> please provide a minimal input FO file that corresponds to the attached PCL
> output file; also provide a PDF output file that demonstrates lack of problem

Dorothy, I am still awaiting your input as requested above. if I see no further
input by April 30, I will close this bug due to lack of requested information.
Regards, Glenn

P.S. I realize you or someone in your firm forwarded some data files, but I
need you to attach them to this bug before I can move forward with it.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |divakar.p@thomsonreuters.co
                   |                            |m

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #9 from Divakar P <di...@thomsonreuters.com> ---
Created attachment 28788
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28788&action=edit
minimal FO and respective PCl and PDF documents

Please find the attached minimal FO and corresponding PCL and PDF documents.

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #6 from Glenn Adams <ga...@apache.org> 2012-04-25 07:01:52 UTC ---
(In reply to comment #5)
> A maximally minimal input FO test file is one from which nothing cannot be
> removed without either removing the problem or invalidating the file.

s/nothing cannot/nothing can/

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #5 from Glenn Adams <ga...@apache.org> 2012-04-25 06:59:54 UTC ---
(In reply to comment #4)
> Created attachment 28673 [details]
> PCL, FO for Space issue
> 
> Please find the attached FO and corresponding PCL, RTF and  PDF documents.
> 
> Issue details:
> We are getting extra  trailing and leading spaces, when the text is 
> Underlined/Bold/Highlighted/Italic and the font-family is like Times New Roman,
> Arial etc. (Native fonts).

I need the input FO file to be pared down to be "maximally minimal". A
maximally minimal input FO test file is one from which nothing cannot be
removed without either removing the problem or invalidating the file.

Once you do this, regenerate the output files you have attached using the pared
down input file.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #12 from Glenn Adams <ga...@apache.org> ---
initial investigation indicates that the problem is related to differences
between font metrics used for the 14 base PDF fonts and use of built-in
(native) PCL fonts;

if the fop.xconf is configured as follows:

    <renderer mime="application/x-pcl">
      ...
      <text-rendering>bitmap</text-rendering>
      ...
    </renderer>

then no extra space appears

n.b. that the current FOP documentation at [1] incorrectly says to use MIME
type

application/vnd.hp-PCL

however, this doesn't work; instead, you must use

application/x-pcl

[1] http://xmlgraphics.apache.org/fop/trunk/output.html#pcl

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #10 from Glenn Adams <ga...@apache.org> ---
(In reply to comment #9)
> Created attachment 28788 [details]
> minimal FO and respective PCl and PDF documents
> 
> Please find the attached minimal FO and corresponding PCL and PDF documents.

please attach the fop.xconf file you are using

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 51076] use of base 14 fonts with text-rendering 'auto' (use native pcl fonts) produces ipd misalignment due to metrics mismatch

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #13 from Divakar P <di...@thomsonreuters.com> ---
Created attachment 28798
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28798&action=edit
test files with/without "bitmap" text-rendering configuration

We have tested your FO with "bitmap" text-rendering configuration. The Document
looks good, in the sense it resolves the spacing issues. but it will increase
the size of PCl document(~10+ times high) and it affects our download
performance. 

Please find the atttached FO and respective PCL documents with/without "bitmap"
text-rendering configuration.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 51076] use of base 14 fonts with text-rendering 'auto' (use native pcl fonts) produces ipd misalignment due to metrics mismatch

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #14 from Glenn Adams <ga...@apache.org> ---
(In reply to comment #13)
> Created attachment 28798 [details]
> test files with/without "bitmap" text-rendering configuration
> 
> We have tested your FO with "bitmap" text-rendering configuration. The
> Document looks good, in the sense it resolves the spacing issues. but it
> will increase the size of PCl document(~10+ times high) and it affects our
> download performance. 

yes, i'm aware of this negative side effect, but at least it solves the
immediate problem;

i cannot predict when the underlying problem (of making use of correct pcl
native font metrics) will be addressed; in fact, it will probably wait for an
interested party to perform the work and submit a patch; if your organization
can do this work (or sponsor someone else to do it), then it would accelerate
providing a full fix that does not rely on use of bitmap renderings;

> Please find the atttached FO and respective PCL documents with/without
> "bitmap" text-rendering configuration.

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #1 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:43:02 UTC ---
resetting P2 open bugs to P3 pending further review

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

--- Comment #8 from Glenn Adams <ga...@apache.org> 2012-04-25 14:06:24 UTC ---
(In reply to comment #7)
> Is there a way to remove me from this bug and give ownership to
> troy.cleasby@thomsonreuters.com

i can't change the "reporter" field, so i can't remove you; however, troy can
add himself to the CC list (he will need to create a bugzilla account to add)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 51076] Underline and Highlight do not have the correct spacing when PCL is generated for non monospaced fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51076

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

-- 
You are receiving this mail because:
You are the assignee for the bug.