Results 1 to 8 of 8

Thread: Weird Cross Platform Printing Problems

  1. #1
    Join Date
    Jan 2007
    Posts
    30
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    MacOS X

    Unhappy Weird Cross Platform Printing Problems

    I am trying to write a simple calendar generator to print out two pages for a calendar month.
    My primary platform is Mac, but I am trying to write portable code that could be compiled on Windows as well.

    I am using a Parallels VM with Windows XP and the Qt-Win-MinGW setup to test the Windows version.

    The same code, compiled on each platform, produces very different results.

    Here are PDF captures of the output of each
    Mac.pdf
    Windows.pdf

    On the right hand page of the Windows version, the boxes with the day numbers are solid grey

    Here's my source.
    DIY_Two_Page_Month.zip

    Here's a static Mac application
    DIY_Two_Page_Month.Mac.zip

    Here's a static Windows executable
    DIY_Two_Page_Month.Win.zip

    Any clues would be appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird Cross Platform Printing Problems

    Is that Blue Highway font available on your windows machine?

    PS. Please use attachments instead of external sites.

  3. #3
    Join Date
    Jan 2007
    Posts
    30
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    MacOS X

    Default Re: Weird Cross Platform Printing Problems

    Quote Originally Posted by jacek View Post
    Is that Blue Highway font available on your windows machine?
    Yes, and here's a link to it so you can use it, too

    Blue Highway font

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird Cross Platform Printing Problems

    Quote Originally Posted by igor View Post
    Yes, and here's a link to it so you can use it, too

    Blue Highway font
    What does QFont( "Blue Highway").exactMatch() return?

  5. #5
    Join Date
    Jan 2007
    Posts
    30
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    MacOS X

    Default Re: Weird Cross Platform Printing Problems

    Quote Originally Posted by jacek View Post
    What does QFont( "Blue Highway").exactMatch() return?
    I have no idea.

    Why do you ask ?

    How does this relate to my question ?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird Cross Platform Printing Problems

    Quote Originally Posted by igor View Post
    I have no idea.
    Then check it.

    Quote Originally Posted by igor View Post
    Why do you ask ?

    How does this relate to my question ?
    I want you to check if that font was properly installed on your system. If you compare "y" or "g" from those PDFs, you'll see that they're different, which might mean that Qt uses different font on windows.

  7. #7
    Join Date
    Jan 2007
    Posts
    30
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    MacOS X

    Default Re: Weird Cross Platform Printing Problems


    You miss the point of the original question.
    The problem I am experiencing has nothing to do with fonts.
    The line setting the font can be removed without problem.

  8. #8
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird Cross Platform Printing Problems

    Well, if you look in QPdfBaseEnginePrivate::drawTextItem, you will see that a substituted font can have an unpleasant effect.

    I've seen the two pdf's and I am not sure if this is a
    font problem. The only way to see what's wrong is to take Acrobat Professional and PdfCan opener and examine/compare the page streams and resource dictionaries.
    I would do that, but I'm on vacation( meaning I don't have Acrobat Pro at home ).

    It looks more like when an unhandled exception occurs in code .

    Regards

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.