DO NOT REPLY [Bug 44993] New: getPostScriptName() returns wrong name

View: New views
3 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 44993] New: getPostScriptName() returns wrong name

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

           Summary: getPostScriptName() returns wrong name
           Product: Fop
           Version: 0.94
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@...
        ReportedBy: fsickert@...


I am trying to use TTFFile.getPostScriptName() on Arialbd.ttf. It is returning
Arial,Bold which is incorrect. If I use printStuff (which looks like it just
calls getPostScriptName()), it prints the correct name of Arial-BoldMT as the
Font Name.


--
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 44993] getPostScriptName() returns wrong name

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #1 from Fred Sickert <fsickert@...>  2008-05-13 16:31:46 PST ---
Here is the example

import org.apache.fop.fonts.truetype.*;
 import java.io.*;
 class TTFName
{
        public static void main(String[] args)
        {
 try {
        TTFFile ttf = new TTFFile();
        FontFileReader reader = new
FontFileReader("c:\\windows\\fonts\\Arialbd.ttf");
        ttf.readFont(reader);
        ttf.printStuff();
        System.out.println(ttf.getPostScriptName());
   } catch (Exception e) {
            e.printStackTrace();
            }


        }
}


--
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 44993] getPostScriptName() returns wrong name

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Jeremias Maerki <jeremias@...> changed:

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




--- Comment #2 from Jeremias Maerki <jeremias@...>  2008-06-02 08:25:46 PST ---
This has been fixed as part of the various improvements in font support after
0.94 and works as expected in FOP 0.95beta.


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