view correctly, bu print garbledly

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

view correctly, bu print garbledly

Postby loogle » Wed Jan 08, 2014 6:22 am

Hi everyone,
I use CEF 3.1650.1544 Demo App to open http://www.sap.com/solution/sme.html, it seems very nice.
But when I click the "Print" command in context menu, some words are garbled in the print result.
The Google Chrome browser can print this web page correctly.

------------------

PrintByCEFDemoApp.png
Print by CEF Demo app
PrintByCEFDemoApp.png (51.65 KiB) Viewed 10038 times

PrintByChrome.png
Print by Google Chrome
PrintByChrome.png (80.63 KiB) Viewed 10038 times
loogle
Techie
 
Posts: 16
Joined: Tue Oct 15, 2013 4:30 am

Re: view correctly, bu print garbledly

Postby magreenblatt » Wed Jan 08, 2014 11:20 am

What OS? What did you print to?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: view correctly, bu print garbledly

Postby loogle » Thu Jan 09, 2014 2:15 am

Hi magreenblatt,
My OS is Windows 7 Enterprise SP1 64bit.
I use CEF demo app and Google Chrome to print the same web page to Microsoft XPS document writer, which is a virtual printer of Microsoft Office.
Google Chrome print it corretly, while CEF demo app(I do not change any code) shows a little garbled.
loogle
Techie
 
Posts: 16
Joined: Tue Oct 15, 2013 4:30 am

Re: view correctly, bu print garbledly

Postby magreenblatt » Thu Jan 09, 2014 10:47 am

It seems like the header font might be missing in XPS. Can you try printing to pdf or an actual printer?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: view correctly, bu print garbledly

Postby loogle » Mon Jan 13, 2014 10:42 pm

magreenblatt wrote:It seems like the header font might be missing in XPS. Can you try printing to pdf or an actual printer?

I print it to actural printer, and still have the problem.
BTW, Chrome and IE can print the same URL to the same XPS printer properly, I don't think there is anything missing in XPS.
loogle
Techie
 
Posts: 16
Joined: Tue Oct 15, 2013 4:30 am

Re: view correctly, bu print garbledly

Postby magreenblatt » Tue Jan 14, 2014 2:51 pm

I'm not sure what exactly is causing the issue, but it's definitely a problem with the selected font. This is the CSS style applied to the header:
Code: Select all
font-family: "BentonSansRegular", Arial, sans-serif;

Removing "BentonSansRegular" using DevTools causes it to print correctly.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 194 guests