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

John Hewson edited comment on PDFBOX-2966 at 10/20/15 2:41 PM:
---------------------------------------------------------------

That occurred when I was adding the ability to use the embedded font's widths 
in cases where W and/or DW are missing. I can see a couple of potential issues; 
added as comments:

{code}
if (widths.containsKey(cid))
{
  Float w = widths.get(cid);
  if (w != null)   // can w actually be null?
  {
    return w;
  }
  else
  {
    return getDefaultWidth(); // if w != null is always true this will never 
get called
  }
}
else
{
  return getWidthFromFont(code);   // we forgot to check DW before falling back 
to the embedded width
}
{code}


was (Author: jahewson):
That occurred when I was adding the ability to use the embedded font's widths 
in cases where W and/or DW are missing. I can see a couple of potential issues; 
added as comments:

{code}
if (widths.containsKey(cid))
{
  Float w = widths.get(cid);
  if (w != null)   // can w actually be null?
  {
    return w;
  }
  else
  {
    return getDefaultWidth();
  }
}
else
{
  return getWidthFromFont(code);   // we forgot to check DW before falling back 
to the embedded width
}
{code}

> Glyphs overlapping in rendering
> -------------------------------
>
>                 Key: PDFBOX-2966
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2966
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: John Hewson
>             Fix For: 2.0.0
>
>         Attachments: gs-bugzilla694570-reduced.pdf
>
>
> See attachment, this is reduced (but uncompressed) from the original pdf. All 
> the glyphs render at about the same position. I did some tracing, the widths 
> of the glyphs are about the same as the values within TJ.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to