8 lines
445 KiB
JavaScript
8 lines
445 KiB
JavaScript
|
import { jsPDF } from "jspdf"
|
|||
|
var font = 'AAEAAAAVAQAABABQRFNJR3qbR/EABRw4AAAZFEdQT1Pow1D1AAOtDAABOHpHU1VCbUPrdgAE5YgAADawTFRTSKR3gbEAABX4AAAE809TLzKJkvqiAAAB2AAAAGBWRE1Y8UL5LAAAGuwAABbWY21hcMM6eZEAALx8AAAF2mN2dCAeaBIjAADKOAAAAhRmcGdtdr1ExAAAwlgAAAYjZ2FzcAATAAkAA6z8AAAAEGdseWbWU/ZrAADgEAACEmxoZG14NO0K2AAAMcQAAIq4aGVhZAOpfC4AAAFcAAAANmhoZWEM8hFFAAABlAAAACRobXR45OmT6AAAAjgAABPAa2VyboPOSJkAAvJ8AACBnGxvY2EFkCxMAADMTAAAE8RtYXhwCpcIwwAAAbgAAAAgbmFtZZfVoSAAA3QYAAAMK3Bvc3RTeyxbAAOARAAALLVwcmVwbScMigAAyHwAAAG5AAEAAAAA1HtPJmCbXw889QAZA+gAAAAAyYleigAAAADRwwUz+5f/Mw2YA9wAAQAJAAIAAQAAAAAAAQAAA6T/QwAcDbf7l/9aDZgAAQAAAAAAAAAAAAAAAAAABPAAAQAABPABAgAOAJYACgACABAALwBZAAAFIAb5AAUAAQADAmYB9AAFAAACvAKKAAAAjAK8AooAAAHdAFkA+gAAAgsGBAMGAgMCBOAAAv9QACBbAAAAAAAAAABEQU1BACAAAPsEAwj/RwA4A6QAvSAAAJ9WAQAAAgsCtQAAACAAAwH0ADIAAAAAAOkAAADpAAABMgBJAckARQKfAC4COAAzA4EALwKsACsBBABFAVMASwFTAAQB4gAiAjgANAEMACMBOwAXAQoANQGg/+UCOAArAjgAWgI4AC0COAAwAjgAIQI4ADkCOAA0AjgANQI4ADACOAArAQoANQEIACMCOAA0AjgANAI4ADQBqAAQA8sAPgKsAAUCkQBTAn4AOQLWAFMCSgBTAicAUwKrADcCzwBTASQAUwIBAAUCiwBTAhYAUwN0AEAC5ABTAw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AMALPAFMCRgA4AusAEAJGAAkBJP/kART/zQEk//sBFP/kASQABAEU/+gBJAAbARQADwEkAEcBFABOARQAPwMpAFMCJAA/AgEABQET/7wCiwBTAicATQMUAFMCMABNAhYAUAEpADICFgBTASkALAIWAFMBZwBLAhYAUwGxAEsCKv/7AUQAAALkAFMCSQBNAuQAUwJJAE0C5ABTAkkATQNhAAUCVv/7AuQAUwJJAE0DDgA3AlYAMAMOADcCVgAwAw4ANwJWADACgABTAZMATQKAAFMBkwARAoAAUwGTAE0CHAAeAckAJQIcAB4ByQAlAhwAHgHJACUCQwANAaIARwJDAA0BogBHAkMADQGiAEcCvwBOAkcARwK/AE4CRwBHAr8ATgJHAEcCvwBOAkcARwK/AE4CRwBHAr8ATgJHAEcDqgAZAwwADwJxAAMCB///AkwAHgHkACECTAAeAeQAIQJMAB4B5AAhASQATQIcAB4ByQAlAkMADQGiAEcBE/+8AYMAcQGGADEBhQArAY8ANwGPAH0BgQBSAYoARAGXACEDqgAZAwwADwOqABkDDAAPA6oAGQMMAA8CcQADAgf//wCY/1gBawAXAWsAFgFrACUBawAjAWsAIQFrABsBawAeAWsAFwFrAC8BawAcAWsAIAFrABYBawAlAWsAIwFrACEBawAbAWsAHgHZAAMDqABDA24AJANuABkDbgAkA24AHQNuACMDbgAcA24AJANuABkDbgAdA24AFwNuACQDbgAjA24AJANuABkDbgAdA24AFwNuACMDbgAjA24AJANuABkDbgAXA24AIwNuABwDbgAbAlMAJgKYAAUCyQBTAg0AEgMVADECOAA0AJj/WADSABoCRQAJAl4AGwF+AAUCOAAhAjgANAI4ADQCOAA0AicAGwMkAE0CqABNAqgATQK/AE0CvwBNBDwATQR+AE0CQAAvAYwADQIBABcCCQAXAiEAFwILABgCMgAwAecADQIyAC8CNAAsAWsAFwFrAC8BawAcAWsAIAFrABYBawAlAWsAIwFrACEBawAbAWsAHgFrABcBawAvAWsAHAFrACABawAWAWsAJQFrACMBawAhAWsAGwFrAB4BiACTAQYAEQEGAD0BiACMAVMASwFTAAQBOwAXAaD/5QPLAD4BWgBdAaD/7wFaAAUBXAAlAVwABQE5ABsBcgAxAfQAAAPoAAABOQAlATIASQIoABsCKAAlAagAGAJOAAMDBgAMAnUAUwJUAE0CXAAHAn4AEQJ4ABgCrAA3AgcAMALkABADSwAMAnsAKwJXADACSwAvAkoAIgLOADUCTQAvAjX/5QKxADcCpQAFA3kATQGMAFMBXQALAqgAUwInAE0BNQALAhUADQPXAFMC5P/aAkkATQMOADcDDQA3AlUAMAQaADYDTgAwAuQADAJUAE0CgABTAhwAHAHJACQCPgAeAUb/oQGiAEcCZwAMAaIARwJDAA0C0QBOAloARwMVADECzQBOAq8AAwJEAAACTAAeAeQAIQJJABYCSQAvAeMAJQHlAAUCOQAlAiYAFwH6ABkB1wAsAkUATQEsAF0CCQBdAkEAKQEyAEkFDwBTBLIAUwQ3ADAEIwBTAy0AUwI5AEsE6gBTA/YAUwNaAE0CrAAFAhYAKAEkAAEBFP/2Aw4ANwJWADACvwBOAkcARwK/AE4CRwBHAr8ATgJHAEcCvwBOAkcARwK/AE4CRwBHAjsAMAKsAAUCFgAoAqwABQIWACgDvQADA2UAKALKADcCUQAwAqsANwJKADACiwBTAicANgMOADcCVgAwAw4ANwJWADACSQAWAe8AAgET/7wFDwBTBLIAUwQ3ADACqwA3AkoAMAQqAFMCkgBTAuQAUwJJAE0CrAAFAhYAKAO9AAMDZQAoAw4ANwJWADACrAAFAhYAJgKsAAUCFgAoAkoAUwI7ADACSgBTAjsAMAEk/60BFP+XAST
|
|||
|
var callAddFont = function () {
|
|||
|
this.addFileToVFS('Ubuntu-M-normal.ttf', font);
|
|||
|
this.addFont('Ubuntu-M-normal.ttf', 'Ubuntu', 'bold');
|
|||
|
};
|
|||
|
jsPDF.API.events.push(['addFonts', callAddFont])
|