Examples
Typography
Explore text decoration, font sizes, color, character spacing, superscript, subscript, line height, and alignment in the Nuxt pdfMake module.
Fonts used on this page
The font families in section 9 come from @nuxt/fonts through the
nuxtFonts option. They are not embedded in the bundle: the browser loads them when a PDF is created, and Nitro packages them as server assets.nuxt.config.ts
export default defineNuxtConfig({
modules: ["@nuxt/fonts", "nuxt-pdfmake"],
fonts: {
families: [
{ name: "Inter", global: true },
{ name: "Playfair Display", global: true },
],
},
pdfmake: {
fonts: { nuxtFonts: true },
},
});