8 lines
541 KiB
JavaScript
8 lines
541 KiB
JavaScript
|
import { jsPDF } from "jspdf"
|
|||
|
var font = 'AAEAAAAVAQAABABQRFNJRzsUE3MABj4sAAAZFEdQT1P0tI2/AAUFPAABA15HU1VCyc1MfQAGCJwAADWQTFRTSNCPq08AABX4AAAE9E9TLzKIyveCAAAB2AAAAGBWRE1Y7Jz0oQAAGuwAABbWY21hcMM7eZAAALx8AAAF2mN2dCAXNwr8AADKfAAAAhRmcGdtdr1ExAAAwlgAAAYjZ2FzcAAhAAkABQUsAAAAEGdseWZJEmPuAADgVAADdxhoZG14YtfVggAAMcQAAIq4aGVhZAee0+cAAAFcAAAANmhoZWEQ5xFPAAABlAAAACRobXR4aMHW3QAAAjgAABPAa2VybjUUcQYABFdsAAB09GxvY2EI71xIAADMkAAAE8RtYXhwCpcI0QAAAbgAAAAgbmFtZWXSo8sABMxgAAAMEXBvc3RY2NSGAATYdAAALLVwcmVwc9BrRQAAyHwAAAH/AAEAAAAA1HtH+sD0Xw889QAZA+gAAAAAyYq2WAAAAADRwwUz/2P/PA3BA74AAAAJAAIAAQAAAAAAAQAAA6T/QwAcDbf/Y/9kDcEAAQAAAAAAAAAAAAAAAAAABPAAAQAABPABAgAOAKQACgACABAALwBZAAAFIAb5AAUAAQADAk0BLAAFAAACvAKKAAAAjAK8AooAAAHdADgA+gAAAgsDBAMGAgMCBOAAAv9QACBbAAAAAAAAAABEQU1BAEAAAPsEAwj/RwA4A6QAvSAAAJ9WAQAAAgUCtQAAACAAAwH0ADIAAAAAAOQAAADkAAABEgBSAYgAVAKNAC8CNABLAz8AOwKIADIA8ABUATYAUwE2AAkB2AAnAjQAOAD2ADEBGgAcAPYARAFn/+kCNAA7AjQAawI0AEUCNABDAjQAMgI0AEgCNABNAjQARQI0AEICNAA/APYARAD2ADECNAA3AjQAOAI0ADcBfAAUA6wASAKBAAoCdgBaAmEAPgK+AFoCKwBaAggAWgKSAD4CtABaAPgAWgHnAAgCVwBaAfYAWgNhAEkCx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wFnAC0BZwAhAWcAMQFnAC4BZwAtAWcAKgFnACgBeACdAXgAYgF4AJQBeACdATYAUwE2AAkBGgAcAWf/6QOsAEgBNgBkAWf/6QE2AAgBPwArAT8ACAETACQBaAA8AfD//gPk//4BEwAuARIAUgHEACQBxAAuAXwAHgJHAAYCyAAUAmQAWgJHAFYCRwAXAloAHgJcAB0CewA+AeoANwLMABgDEAAUAmQAMAJHADcCPAA3AisAJwK2ADwCKAA3Agj/5wKXAD4CcAAKA3QAVgFqAFgBNAAYAooAWgHvAFYBBAARAewAEwPFAFcCxf/nAjgAVgMGAD4DBgA+AksANwPqAD4DHwA3AqMAFAJHAFYCagBaAgUAJAGsACgCKAAmASv/wAGDAFICMwAUAYMAUgIkABICtQBXAkgAUAMMADgCqQBXAo4ACgIpAAECMAAmAccAJgIhABwCIgAxAcsAKQHEAA0CDQAsAhsAIwHqACYBwQAzAjYAVgEGAGQBvgBkAjkAMgESAFIE7gBaBIUAWgQOADcD+QBaAuMAWgHsAFUErABaA7IAWgMmAFYCgQAKAf0AMAD4//kA7f/zAwYAPgJGADcCqABXAjkAUAKoAFcCOQBQAqgAVwI5AFACqABXAjkAUAKoAFcCOQBQAiQAOwKBAAoB/QAwAoEACgH9ADADkwAGA1YAMAKyAD4CSwA3ApIAPgI9ADcCVwBaAe8ALQMGAD4CRgA3AwYAPgJGADcCIQAcAcYAAADt/8EE7gBaBIUAWgQOADcCkgA+Aj0ANwQXAFoCdgBaAsUAWgI5AFYCgQAKAf0AMAOTAAYDVgAwAwYAPgJGADcCgQAKAf0AMAKBAAoB/QAwAisAUAIkADcCKwBaAiQANwD4/6sA7f+lAPg
|
|||
|
var callAddFont = function () {
|
|||
|
this.addFileToVFS('Ubuntu-L-normal.ttf', font);
|
|||
|
this.addFont('Ubuntu-L-normal.ttf', 'Ubuntu', 'normal');
|
|||
|
};
|
|||
|
jsPDF.API.events.push(['addFonts', callAddFont])
|