Bug 34867 - windows: Error: Couldn't create a font for 'Times-Bold'
Summary: windows: Error: Couldn't create a font for 'Times-Bold'
Status: RESOLVED NOTABUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 06:41 UTC by sandeep
Modified: 2011-03-11 10:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
sample pdf file ("delhi works contract form 4.pdf") (12.69 KB, application/pdf)
2011-03-01 06:41 UTC, sandeep
Details

Description sandeep 2011-03-01 06:41:38 UTC
Created attachment 43963 [details]
sample pdf file ("delhi works contract form 4.pdf")

I compiled poppler 0.16.2 using mingw (part of QT4). It builds fine but when I ran poppler_qt4viewer and opens any pdf, it fails to render it. The error comes on the console is 
""Error: Couldn't create a font for 'Times-Bold'"
"Error: Couldn't create a font for 'Times-Roman'"

The sample pdf is attached here for your reference. Is something wrong with the compiler settings? Please resolve.

-Sandeep
Comment 1 Albert Astals Cid 2011-03-01 11:56:19 UTC
This is in no way critical and this is in no way a bug. If you don't know how to compile stuff in windows is not our fault. Go to the mailing list and ask for help and maybe someone will be able of helping you.
Comment 2 sandeep 2011-03-02 09:40:28 UTC
As I mentioned already, I was able to build all of the binaries succesfully. I am able to use poppler-qt4 DLL apis successfully in my application except the rendering issue. I tried qt4 demo and test binaries under qt4 folder. Both reported same issue "couldn't create Font...". In fact I searched mailing list before filing this bug. Now it is going cyclic. :) Please reconsider. 

If you have poppler_qt4viewer.exe win32 binary , just confirm the attached pdf gets rendered properly. This little help will suffice.
Comment 3 Albert Astals Cid 2011-03-02 10:40:34 UTC
I don't use windows (and i don't think anyone reading bugzilla bugs does), if you send me a computer with windows installed i might help you, or you might do as i say and mail the mailing list.
Comment 4 sandeep 2011-03-11 03:02:14 UTC
Resolved the issue. You need fontconfig, expat and freetype libraries to render the fonts on windows. It is worth to document it in poppler build notes for windows os. Build scripts (config) should take care of this.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.