Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

315
Views
PptxGenJS : How to add font in PptxGenJS

I am creating PPT from a HTML table using PptxGenJS. While exporting it is taking default font. How i can change font in PPT. I need to know how i can pass font family property while i am generating PPT from HTML table.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

use "fontFace".

slide.addText("Arial, 32pt, green, bold, underline, 0 inset", {
    x: 0.5,
    y: 5.0,
    w: "90%",
    margin: 0.5,
    fontFace: "Arial",
    fontSize: 32,
    color: "00CC00",
    bold: true,
    underline: true,
    isTextBox: true,
});

note: You cannot just add a custom font without that font first being loaded to whichever presentation software you are using. If you really need to use a special font and have no access to the presentation sotware then you can consider taking a screenshot of the div or text container of the text - save it to base64 and load to your generated ppt as an image.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!