From ede4b8593dac96e97e6623150f3aeb6867dc0fa0 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 13 Sep 2024 09:21:52 -0400 Subject: [PATCH] ? --- mccs-it/thermal/modules/Thermal.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mccs-it/thermal/modules/Thermal.js b/mccs-it/thermal/modules/Thermal.js index 3ee5062..1a2ff11 100644 --- a/mccs-it/thermal/modules/Thermal.js +++ b/mccs-it/thermal/modules/Thermal.js @@ -23,12 +23,12 @@ module.exports = { credentials(username, studentId) { // Create the output text const infoArray = [ - { font: 'public/RobotoMono-Regular.ttf', text: `Username: ${username}` }, + { font: 'Courier-Bold', text: `Username: ${username}` }, { font: 'public/Outfit-Regular.ttf', text: '' }, { font: 'public/Outfit-Regular.ttf', text: 'Email:' }, - { font: 'public/RobotoMono-Regular.ttf', text: `${username}@kvcc.me.edu` }, + { font: 'Courier-Bold', text: `${username}@kvcc.me.edu` }, { font: 'public/Outfit-Regular.ttf', text: '' }, - { font: 'public/RobotoMono-Regular.ttf', text: `Student ID: ${studentId}` }, + { font: 'Courier-Bold', text: `Student ID: ${studentId}` }, { font: 'public/Outfit-Regular.ttf', text: '' }, { font: 'public/Outfit-Regular.ttf', text: 'Note: the MyKV Portal uses your username to sign in, not email.' }, ] @@ -90,7 +90,11 @@ module.exports = { doc.moveDown(); // Write the text from infoString - doc.fontSize(12) + doc.fontSize(12) + doc.font('public/Outfit-Regular.ttf').text(infoString, { + align: 'left', + }); + for (row of infoArray) { doc.moveDown(); doc.font(row.font).text(row.text, {