What are all the fonts that need to be available on Linux

Hello team,
is there a list of all the fonts that need to be installed on Linux? We see different behavior on Win than Linux based systems, with the same code, while printing pdf.
Thanks

@MariaPacin

To ensure consistent behavior when printing PDFs on Linux compared to Windows, it is essential to have the necessary fonts installed on your Linux system. The absence of these fonts can lead to discrepancies in document appearance and formatting.

Cause: Different operating systems may use different default fonts, which can result in variations when rendering PDFs.

Solution: To mitigate this issue, consider installing the following commonly used fonts on your Linux system:

  1. Liberation Fonts: Designed to be metric-compatible with Arial, Times New Roman, and Courier New.
  2. DejaVu Fonts: A comprehensive font family that covers a wide range of Unicode characters.
  3. Noto Fonts: Developed by Google, these fonts aim to support all languages and scripts.
  4. FreeSerif and FreeSans: Part of the FreeFont project, these fonts provide good coverage for various languages.

You can install these fonts using your package manager. For example, on Ubuntu, you can use the following command:

sudo apt-get install fonts-liberation fonts-dejavu fonts-noto fonts-freefont-ttf

Next Steps: After installing the fonts, restart any applications that may be using them to ensure the changes take effect. This will help achieve consistent PDF rendering and printing behavior across different operating systems.

If you have any further questions or need additional assistance, feel free to ask!

@MariaPacin,

It appears you’re utilizing the Aspose.PDF API, please correct us if we’re mistaken. I’ll transfer your thread to the appropriate category so that a member of the Aspose.PDF team can soon provide you with better assistance there.

@MariaPacin

All MS Core Fonts are recommended to be present and installed in the system where Aspose.PDF is being utilized. For instance, you can copy all fonts from Windows Font Folder and paste them into Linux into /usr/share/fonts/truetype/msttcorefonts directory because Aspose.PDF scans this directory to find fonts by default.