KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Export to PDF and strange font kerning issue #1966

Open Matt Jacobson opened this topic on on Mar 11, 2021 - 2 comments

Matt Jacobson commented on Mar 11, 2021

I have been experiencing very strange font kerning issues (see example). In my view file, I have the following:

<html>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans&display=swap">
<link rel="stylesheet" href="../inc/koolreport/bootstrap3/assets/core/css/bootstrap.min.css" />
<link rel="stylesheet" href="../inc/koolreport/bootstrap3/assets/core/css/bootstrap-theme.min.css" />
<style>
	@media print {
		*, table {
			font-family: 'PT Sans', sans-serif !important;
			letter-spacing: normal !important;
			font-kerning: auto !important;
			-webkit-transform: scaleX(1.0);
			-webkit-transform: scaleY(1.0);
			transform: scaleX(1.0) !important;
			transform: scaleY(1.0) !important;
		}
	}
</style>
<body style="margin:0.5in 1in 0.5in 1in;font-family: 'PT Sans', sans-serif !important;">

But I also had the same issues when I stripped out the google font, and used just the bootstrap css files as in:

<html>
<link rel="stylesheet" href="../inc/koolreport/bootstrap3/assets/core/css/bootstrap.min.css" />
<link rel="stylesheet" href="../inc/koolreport/bootstrap3/assets/core/css/bootstrap-theme.min.css" />
<body style="margin:0.5in 1in 0.5in 1in;">

Here is an example of the strange kerning…

Sebastian Morales commented on Mar 12, 2021

Matt, pls take a look at this issue thread:

https://github.com/ariya/phantomjs/issues/11413

Depending on your OS and environment pls apply some solution there and let us know if they have any effect. Tks,

Matt Jacobson commented on Mar 12, 2021

Thank you! Fixed.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

Export