wkhtmltopdf custom font letter spacing

<img src="https://i.stack.imgur.com/XLzxz.png" alt="enter image description here">I'm running wkhtmltopdf on linux server (centos.10.x86_64). I'm trying to add "Times New Roman" font to the page. I see the fonts but on some font sizes it adds <strong>spaces between the letters</strong>. I tried setting the font by installing it on the machine (ttf) or by calling an external odf that I converted from the ttf or by adding it with base64 (css). It looks good on all, but it inserts spaces between the laters. I also tried to the dpi parameter but still the spaces are generated. Generating the same pdf over MAC works perfectly (probably because the font comes with the machine)

Why does it happen and how can it be fixed ?


The image attached describes the bug. No spaces added in each of the fonts group. The following the image text

abcdefg hijklmno pqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ


Was resolved using "svg" font format


  • IE9 Refusing to Load custom font?
  • Including data files with setup.py
  • Creating new docker-machine instance always fails validating certs using openstack driver
  • How can i use same custom fonts for both android and ios using react native
  • AngularJS - ngBind and Bootstrap Switch
  • python struct.pack(): pack multiple datas in a list or a tuple
  • How to autoplay video in angularjs?
  • Font Awesome in Viewpager Previous Next
  • SOAP with Attachment / MIME content
  • Ruby regex to remove all consecutive letters from string
  • Is a .txt file created in VB different than one I'd randomly create?
  • Add spaces between words in spaceless string
  • Is it safe to accept URL parameters for populating the `url_for` method?
  • Updating and removing unique join relationships in CakePHP
  • Layout design help Android
  • Convert RSA pem key String to der byte[]
  • Serve file to user over http via php
  • Merge Module leaving files during uninstall
  • Installing Perl6 and Panda on Ubuntu 15.10. Problems with bootstrap.pl
  • Validate jQuery plugin, field not required
  • Default parameter as generic type
  • How do I include a SWC in an AS2 Flash project?
  • Ember.js model to be organised as a tree structure
  • How to add a focus style to an editable ComboBox in WPF
  • Reading a file into a multidimensional array
  • Graphics.CopyFromScreen [Web application] + The handle is invalid
  • How does document.ready work with angular element directives?
  • How do I superscript characters in a UIButton?
  • ADO and msqli connections very slow
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • preg_replace Double Spaces to tab (\\t) at the beginning of a line
  • Paperclip, set path outside of rails root folder
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • javaw.exe and eclipse startup problems
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Font Awesome Showing Box instead of Icons
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • Akka Routing: Reply's send to router ends up as dead letters
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Linking SubReports Without LinkChild/LinkMaster