Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

313
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda