Skip to content

Commit

Permalink
chore: improve playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Aug 8, 2023
1 parent a0ea637 commit 1cb55da
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
import { useNuxtApp } from '#app';
import IconGithub from './icons/IconGithub.vue';
const raw = ref(`$pdf.add([
{ raw: 'Hello PDFEasy!' },
const raw = ref(`$pdf.addFonts([{
name: 'Roboto',
normal: 'https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxPKTU1Kg.ttf',
bold: 'https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxPKTU1Kg.ttf',
italic: 'https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxPKTU1Kg.ttf',
bolditalic: 'https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxPKTU1Kg.ttf',
}])
$pdf.add([
{ raw: 'Hello PDFEasy!', text: { font: 'Roboto' }},
{ stack: [
{ raw: 'A ', text: {} },
{ raw: 'Simple', text: { bold: true, italic: true } },
Expand Down

0 comments on commit 1cb55da

Please sign in to comment.