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/11/16 09:53:53 UTC

DO NOT REPLY [Bug 52192] New: [PATCH] TTFFontLoader ignores the useKerning attribute used with fonts

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

             Bug #: 52192
           Summary: [PATCH] TTFFontLoader ignores the useKerning attribute
                    used with fonts
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: med1985@gmail.com
    Classification: Unclassified


Created attachment 27947
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27947
TTFFontLoader patch

This is a simple mistake, a parameter is ignored, test included

-- 
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 52192] [PATCH] TTFFontLoader ignores the useKerning attribute used with fonts

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

Chris Bowditch <bo...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Chris Bowditch <bo...@hotmail.com> 2011-11-17 12:11:07 UTC ---
Thanks Mehdi. Patch applied in revision 1203163

-- 
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 52192] [PATCH] TTFFontLoader ignores the useKerning attribute used with fonts

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

--- Comment #1 from Chris Bowditch <bo...@hotmail.com> 2011-11-17 11:20:50 UTC ---
Hi Mehdi,

Your test case contains a bug. You try to build the URL manually:

       File url = new File("test/resources/fonts/DejaVuLGCSerif.ttf");
        String absoluteFilePath = "file://" + url.getAbsolutePath();

This fails to run on Windows with the following error:

   [junit] java.net.UnknownHostException: C
   [junit]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
   [junit]     at java.net.Socket.connect(Socket.java:524)
   [junit]     at java.net.Socket.connect(Socket.java:474)

Why not just get the String version of the URL instead of trying to build the
URL through String concatenation?

Thanks,

Chris

-- 
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 52192] [PATCH] TTFFontLoader ignores the useKerning attribute used with fonts

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

Mehdi Houshmand <me...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

-- 
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 52192] [PATCH] TTFFontLoader ignores the useKerning attribute used with fonts

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

Mehdi Houshmand <me...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #27947|0                           |1
        is obsolete|                            |

--- Comment #2 from Mehdi Houshmand <me...@gmail.com> 2011-11-17 11:25:35 UTC ---
Created attachment 27962
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27962
changed URL retrieval mechanism

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